Proxy

如要透過 Proxy 連線至 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 指定為 Proxy。您也可以按照程式的其他配置設定,透過程式配置 Proxy 設定:

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