Esempi e librerie
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'API AdSense Management si basa su HTTP e JSON, pertanto qualsiasi client HTTP standard può inviare richieste all'API e analizzare le risposte.
Tuttavia, le librerie client delle API di Google offrono una migliore integrazione del linguaggio, una maggiore sicurezza e supporto per effettuare chiamate che richiedono l'autorizzazione dell'utente. Le librerie client sono disponibili in più linguaggi di programmazione; utilizzandole puoi evitare di dover impostare le richieste HTTP e analizzare le risposte manualmente.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eThe AdSense Management API utilizes HTTP and JSON, allowing any standard HTTP client to interact with it.\u003c/p\u003e\n"],["\u003cp\u003eGoogle's client libraries offer enhanced security, language integration, and user authorization capabilities for easier interaction with the API.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are available in various programming languages like Java, .NET, PHP, Python, and Ruby, eliminating manual HTTP request setup.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find code examples for each client library on the provided GitHub links.\u003c/p\u003e\n"]]],["The AdSense Management API utilizes HTTP and JSON, allowing standard HTTP clients to interact with it. Google APIs client libraries enhance this interaction by offering better language integration, security, and user authorization support. These libraries, available in Java, .NET, PHP, Python, and Ruby, eliminate the need for manual HTTP request setup and response parsing. Example code is provided for each language on GitHub.\n"],null,["# Samples and Libraries\n\nThe AdSense Management API is built on HTTP and JSON, so any standard HTTP client\ncan send requests to it and parse the responses.\n\nHowever, the Google APIs client libraries provide better language\nintegration, improved security, and support for making calls that require user\nauthorization. The client libraries are available in a number of programming\nlanguages; by using them you can avoid the need to manually set up HTTP\nrequests and parse the responses.\n\n| Client Library | Code Examples |\n|:-------------------------------------|:---------------------------------------------------------------------------------------------|\n| [Java](/api-client-library/java) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/java) |\n| [.NET](/api-client-library/dotnet) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/dotnet) |\n| [PHP](/api-client-library/php) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/php) |\n| [Python](/api-client-library/python) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/python) |\n| [Ruby](/api-client-library/ruby) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/ruby) |"]]