هل يهمّك مشاركة ملاحظاتك حول 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();
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-03-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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."]]],[]]