Proxy
Stay organized with collections
Save and categorize content based on your preferences.
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-09-03 UTC.
[null,null,["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eConfigure Google Ads API connections through a proxy by setting the \u003ccode\u003eproxy\u003c/code\u003e property in the \u003ccode\u003egoogleads.properties\u003c/code\u003e file or programmatically within the \u003ccode\u003eGoogle::Ads::GoogleAds::GoogleAdsClient\u003c/code\u003e constructor.\u003c/p\u003e\n"],["\u003cp\u003eWhen using a proxy that requires authentication, include the credentials within the proxy URL in the format \u003ccode\u003ehttp://user:password@proxy_hostname:8082\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Proxy\n\nIf you need to connect to the Google Ads API through a proxy, you can do so by\nsetting the `proxy` property in the `Network Connection` section of your\n[`googleads.properties`](https://github.com/googleads/google-ads-perl/blob/HEAD/googleads.properties)\nfile: \n\n ### Network Connection ###\n\n # Optional proxy server URL to be used for internet connectivity.\n # If your proxy connection requires authentication, make sure to include it in\n # the URL, for example: http://user:password@proxy_hostname:8080\n proxy=INSERT_PROXY_HERE\n\nFor example, you can specify `http://user:pass@localhost:8082` as a proxy.\nAlternatively, you can configure the proxy setting programmatically just like\nany other configuration setting: \n\n my $api_client = Google::Ads::GoogleAds::GoogleAdsClient-\u003enew({\n proxy =\u003e \"INSERT_PROXY_HERE\"\n });"]]