Proxy
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Jika perlu terhubung ke Google Ads API melalui proxy, Anda dapat melakukannya dengan
menetapkan properti proxy
di bagian Network Connection
pada file
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
Misalnya, Anda dapat menentukan http://user:pass@localhost:8082
sebagai proxy.
Atau, Anda dapat mengonfigurasi setelan proxy secara terprogram seperti
setelan konfigurasi lainnya:
my $api_client = Google::Ads::GoogleAds::GoogleAdsClient->new({
proxy => "INSERT_PROXY_HERE"
});
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-27 UTC.
[null,null,["Terakhir diperbarui pada 2025-08-27 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 });"]]