Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
Proxy
If you need to connect to the Google Ads API through a proxy, you can do so by
setting the proxy
property in the Network Connection
section of your
googleads.properties
file:
### 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
For example, you can specify http://user:pass@localhost:8082
as a proxy.
Alternatively, you can configure the proxy setting programmatically just like
any other configuration setting:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[null,null,["Last updated 2025-03-03 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`."]]],[]]