プロキシ

コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。

プロキシ経由で Google Ads API に接続する必要がある場合は、google_ads_php.ini ファイルの CONNECTION セクションで proxy プロパティを設定します。

[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();