רוצים לשתף משוב על Google Ads API?
נרשמים כדי שנוכל להזמין אתכם להשתתף במחקר על התנהגות משתמשים.
שרת Proxy
אם יש לך צורך להתחבר ל-Google Ads API באמצעות שרת proxy, אפשר לעשות זאת כך:
הגדרה של המאפיין proxy
בקטע CONNECTION
של
google_ads_php.ini
file:
[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 ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-20 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-20 (שעון 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."]]],[]]