Wenn Sie eine Verbindung zur Google Ads API über einen Proxy herstellen müssen, legen Sie dazu im Abschnitt Network Connection
der Datei googleads.properties
die Eigenschaft proxy
fest:
### 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
Sie können beispielsweise http://user:pass@localhost:8082
als Proxy angeben.
Alternativ können Sie die Proxyeinstellung wie jede andere Konfigurationseinstellung programmatisch konfigurieren:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});