Google Ads API に関するフィードバックをお寄せいただけますか?
登録して、ユーザー調査へのご参加をお待ちください。
プロキシ
プロキシ経由で Google Ads API に接続する必要がある場合は、次の方法を使用できます。
プロジェクトの CONNECTION
セクションで proxy
プロパティを
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 および関連会社の登録商標です。
最終更新日 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."]]],[]]