רוצים לשתף משוב על Google Ads API?
נרשמים כדי שנוכל להזמין אתכם להשתתף במחקר על התנהגות משתמשים.
שרת 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();
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-03-04 (שעון UTC).
[null,null,["עדכון אחרון: 2025-03-04 (שעון 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."]]],[]]