หากสนใจแชร์ความคิดเห็นเกี่ยวกับ Google Ads API
ลงชื่อสมัครเพื่อรับคำเชิญให้เข้าร่วมการศึกษาวิจัยผู้ใช้
พร็อกซี
หากต้องการเชื่อมต่อกับ Google Ads API ผ่านพร็อกซี ให้ตั้งค่าพร็อพเพอร์ตี้ proxy
ในส่วน CONNECTION
ของไฟล์ google_ads_php.ini
ดังนี้
[CONNECTION]
; Optional proxy settings to be used by requests.
; If you don't have username and password, just specify host and port.
proxy = "protocol://user:pass@host:port"
เช่น คุณสามารถระบุ http://user:pass@localhost:8082
เป็นพร็อกซี
หรือจะกําหนดการตั้งค่าพร็อกซีแบบเป็นโปรแกรมก็ได้เช่นเดียวกับการตั้งค่าการกําหนดค่าอื่นๆ ดังนี้
$googleAdsClient = (new GoogleAdsClientBuilder())
...
->withProxy('protocol://user:pass@host:port')
->build();
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-02-28 UTC
[null,null,["อัปเดตล่าสุด 2025-02-28 UTC"],[[["The Google Ads API can be accessed through a proxy by configuring the `proxy` property in the `google_ads_php.ini` file or programmatically using the `withProxy()` method."],["The proxy configuration should follow the format `protocol://user:pass@host:port`, where username and password are optional if not required by the proxy server."]]],[]]