프록시

프록시를 통해 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();