Wenn Sie über einen Proxy eine Verbindung zur Google Ads API herstellen müssen, führen Sie folgende Schritte aus:
Festlegen des Attributs proxy im Abschnitt Network Connection Ihres
googleads.properties
Datei:
### 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
Beispielsweise können Sie http://user:pass@localhost:8082 als Proxy angeben.
Alternativ können Sie die Proxy-Einstellung wie
jede andere Konfigurationseinstellung:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});