Proxy

Nếu cần kết nối với API Google Ads thông qua một proxy, bạn có thể đặt thuộc tính proxy trong mục Network Connection của tệp googleads.properties:

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

Ví dụ: bạn có thể chỉ định http://user:pass@localhost:8082 làm proxy. Ngoài ra, bạn có thể định cấu hình chế độ cài đặt proxy theo phương thức lập trình giống như mọi chế độ cài đặt cấu hình khác:

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