프록시

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