プロキシ

プロキシ経由で Google Ads API に接続する必要がある場合は、googleads.properties ファイルの Network Connection セクションで proxy プロパティを設定します。

### 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

たとえば、http://user:pass@localhost:8082 をプロキシとして指定できます。また、他の構成設定と同様に、プロキシ設定をプログラムで構成することもできます。

my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
  proxy   => "INSERT_PROXY_HERE"
});