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 Network Connection
w pliku googleads.properties
:
### Network Connection ###
# Optional proxy server URL to be used for internet connectivity.
# If your proxy connection requires authentication, make sure to include it in
# the URL, for example: http://user:password@proxy_hostname:8080
proxy=INSERT_PROXY_HERE
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:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});
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."],[[["Configure Google Ads API connections through a proxy by setting the `proxy` property in the `googleads.properties` file or programmatically within the `Google::Ads::GoogleAds::GoogleAdsClient` constructor."],["When using a proxy that requires authentication, include the credentials within the proxy URL in the format `http://user:password@proxy_hostname:8082`."]]],[]]