Proxy
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Se devi connetterti all'API Google Ads tramite un proxy, puoi farlo impostando la proprietà proxy
nella sezione Network Connection
del file googleads.properties
:
### Network Connection ###
# Optional proxy server URL to be used for internet connectivity.
# If your proxy connection requires authentication, make sure to include it in
# the URL, for example: http://user:password@proxy_hostname:8080
proxy=INSERT_PROXY_HERE
Ad esempio, puoi specificare http://user:pass@localhost:8082
come proxy.
In alternativa, puoi configurare l'impostazione del proxy a livello di programmazione proprio come
qualsiasi altra impostazione di configurazione:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-27 UTC.
[null,null,["Ultimo aggiornamento 2025-08-27 UTC."],[[["\u003cp\u003eConfigure Google Ads API connections through a proxy by setting the \u003ccode\u003eproxy\u003c/code\u003e property in the \u003ccode\u003egoogleads.properties\u003c/code\u003e file or programmatically within the \u003ccode\u003eGoogle::Ads::GoogleAds::GoogleAdsClient\u003c/code\u003e constructor.\u003c/p\u003e\n"],["\u003cp\u003eWhen using a proxy that requires authentication, include the credentials within the proxy URL in the format \u003ccode\u003ehttp://user:password@proxy_hostname:8082\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Proxy\n\nIf you need to connect to the Google Ads API through a proxy, you can do so by\nsetting the `proxy` property in the `Network Connection` section of your\n[`googleads.properties`](https://github.com/googleads/google-ads-perl/blob/HEAD/googleads.properties)\nfile: \n\n ### Network Connection ###\n\n # Optional proxy server URL to be used for internet connectivity.\n # If your proxy connection requires authentication, make sure to include it in\n # the URL, for example: http://user:password@proxy_hostname:8080\n proxy=INSERT_PROXY_HERE\n\nFor example, you can specify `http://user:pass@localhost:8082` as a proxy.\nAlternatively, you can configure the proxy setting programmatically just like\nany other configuration setting: \n\n my $api_client = Google::Ads::GoogleAds::GoogleAdsClient-\u003enew({\n proxy =\u003e \"INSERT_PROXY_HERE\"\n });"]]