שרת Proxy

אם אתם צריכים להתחבר ל-Google Ads API דרך שרת proxy, אתם יכולים לעשות זאת על ידי הגדרת המאפיין 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 כשרת proxy. אפשר גם להגדיר את הגדרות ה-proxy באופן פרוגרמטי, כמו כל הגדרת תצורה אחרת:

$googleAdsClient = (new GoogleAdsClientBuilder())
    ...
    ->withProxy('protocol://user:pass@host:port')
    ->build();