Wenn Sie sich mit anderen Nutzern über unsere Produkte austauschen und Feedback geben möchten, können Sie dem offiziellen Google Ads-Discord-Kanal auf dem Server der
Google Advertising and Measurement Community beitreten.
Proxykonfiguration
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Die Java-Clientbibliothek unterstützt Proxy-Einstellungen für die Verbindung mit der API.
Einstellungen
Die Bibliothek unterstützt die Verwendung des
Standard-Proxy-Einstellungen für Java
Legen Sie für den HTTPS-Proxy die Proxy-Konfiguration so fest:
-Dhttps.proxyHost=HOST -Dhttps.proxyPort=PORT
Für den HTTP-Proxy (nicht empfohlen, es sei denn, Sie stellen Ihren eigenen HTTP-Endpunkt bereit)
Legen Sie die Proxy-Konfiguration so fest:
-Dhttp.proxyHost=HOST -Dhttp.proxyPort=PORT
Es ist möglich, sowohl den HTTP- als auch den HTTPS-Proxy zur Laufzeit zu konfigurieren.
System.setProperty("https.proxyHost", HOST);
System.setProperty("https.proxyPort", PORT);
Wenn Sie diese Einstellung ändern, müssen Sie alle bereitgestellten Dienstclients neu erstellen
von GoogleAdsClient.getVersionX().createYServiceClient()
.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-08-21 (UTC)."],[[["\u003cp\u003eThe Java client library enables connections to the API through proxy settings, utilizing standard Java proxy configurations.\u003c/p\u003e\n"],["\u003cp\u003eFor HTTPS proxy connections, use \u003ccode\u003e-Dhttps.proxyHost=HOST -Dhttps.proxyPort=PORT\u003c/code\u003e, while HTTP proxy (less secure) uses \u003ccode\u003e-Dhttp.proxyHost=HOST -Dhttp.proxyPort=PORT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBoth HTTP and HTTPS proxy settings can be dynamically configured at runtime using \u003ccode\u003eSystem.setProperty()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAny changes to the proxy settings require recreating service clients via \u003ccode\u003eGoogleAdsClient.getVersionX().createYServiceClient()\u003c/code\u003e to apply the new configuration.\u003c/p\u003e\n"]]],[],null,["# Proxy configuration\n\nThe Java client library supports proxy settings for connecting to the API.\n\nSettings\n--------\n\nThe library supports using the\n[standard proxy settings for Java](//docs.oracle.com/en/java/javase/12/docs/api/java.base/java/net/doc-files/net-properties.html).\n\nFor HTTPS proxy set the proxy configuration as: \n\n -Dhttps.proxyHost=HOST -Dhttps.proxyPort=PORT\n\nFor HTTP proxy (not recommended unless you're providing your own HTTP endpoint),\nset the proxy configuration as: \n\n -Dhttp.proxyHost=HOST -Dhttp.proxyPort=PORT\n\nIt is possible to configure both HTTP and HTTPS proxy at runtime. \n\n System.setProperty(\"https.proxyHost\", HOST);\n System.setProperty(\"https.proxyPort\", PORT);\n\nIf you change this setting then you must recreate any service clients provided\nby `GoogleAdsClient.getVersionX().createYServiceClient()`."]]