พร็อกซี

หากต้องการเชื่อมต่อกับ 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"
});