If you need to connect to the Google Ads API through a proxy, you can do so by
setting the proxy
property in the Network Connection
section of your
googleads.properties
file:
### 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
For example, you can specify http://user:pass@localhost:8082
as a proxy.
Alternatively, you can configure the proxy setting programmatically just like
any other configuration setting:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});