Czy chcesz podzielić się opinią na temat interfejsu Google Ads API?
Zarejestruj się, aby otrzymać zaproszenie do udziału w badaniach opinii użytkowników.
Proxy (Serwer proxy)
Jeśli chcesz połączyć się z interfejsem Google Ads API przez serwer proxy, możesz to zrobić, ustawiając właściwość proxy
w sekcji CONNECTION
w pliku 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"
Możesz na przykład ustawić http://user:pass@localhost:8082
jako serwer proxy.
Możesz też skonfigurować ustawienie proxy programowo tak samo jak dowolne inne ustawienie konfiguracji:
$googleAdsClient = (new GoogleAdsClientBuilder())
...
->withProxy('protocol://user:pass@host:port')
->build();
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-03-04 UTC.
[null,null,["Ostatnia aktualizacja: 2025-03-04 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."]]],[]]