พร็อกซี

หากต้องการเชื่อมต่อกับ Google Ads API ผ่านพร็อกซี คุณสามารถทำได้โดย ตั้งค่าพร็อพเพอร์ตี้ proxy ในส่วน Network Connection ของไฟล์ 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

เช่น คุณระบุ http://user:pass@localhost:8082 เป็นพร็อกซีได้ หรือคุณจะกำหนดค่าการตั้งค่าพร็อกซีแบบเป็นโปรแกรมได้เช่นเดียวกับ การตั้งค่าการกำหนดค่าอื่นๆ

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