Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Spesso, il modo più semplice per imparare a utilizzare un'API può essere esaminare il codice di esempio. Questa pagina fornisce link ai sample e a una serie di pratici modi per accedere all'API Campaign Manager 360.
Nota:consulta la sezione Inizia per esempi della versione 2.0 di Data Transfer.
L'API Campaign Manager 360 si basa su HTTP e JSON, pertanto qualsiasi stack web standard può inviare richieste all'API e analizzare le risposte.
Tuttavia, anziché creare richieste HTTP e analizzare manualmente le risposte,
potresti utilizzare le librerie client delle API di Google. Le librerie client
offrono una migliore integrazione del linguaggio, una maggiore sicurezza e supporto per effettuare
chiamate che richiedono l'autorizzazione dell'utente.
Nelle tabelle seguenti, la prima colonna mostra lo stato di sviluppo di ogni libreria. Tieni presente che alcune sono ancora nelle fasi iniziali. La seconda colonna contiene i link alla pagina principale di ogni raccolta.
[null,null,["Ultimo aggiornamento 2025-08-31 UTC."],[[["\u003cp\u003eThis page offers resources for learning how to use the Campaign Manager 360 API, primarily through sample code and client libraries.\u003c/p\u003e\n"],["\u003cp\u003eThe Campaign Manager 360 API is built on HTTP and JSON, making it accessible to any standard web stack.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides client libraries in various programming languages (like Python, Java, .NET) to simplify API interaction and enhance security.\u003c/p\u003e\n"],["\u003cp\u003eThese client libraries offer different levels of maturity, with some in early stages of development but still usable by adapting existing samples.\u003c/p\u003e\n"],["\u003cp\u003eSample code is provided for most client libraries and can be accessed through the links in the tables on this page.\u003c/p\u003e\n"]]],[],null,["# Samples and Libraries\n\nOften, the easiest way to learn how to use an API can be to look at sample\ncode. This page provides links to samples and a number of convenient ways\nto access the Campaign Manager 360 API.\n\n**Note:** See [Get Started](/doubleclick-advertisers/dtv2/getting-started) for Data Transfer v2.0 examples.\n\nThe Campaign Manager 360 API is built on HTTP and JSON, so any standard web stack\ncan send requests to it and parse the responses.\n\nHowever, instead of creating HTTP requests and parsing responses manually,\nyou may want to use the Google APIs Client Libraries. The client libraries\nprovide better language integration, improved security, and support for making\ncalls that require user authorization.\n\nIn the tables below, the first column shows each library's stage of\ndevelopment; note that some are still in early stages. The second column\nlinks to the main page for each library.\n| **Note:** For libraries that have samples for the Campaign Manager 360 API, the third column in the table below links to them directly. If a library's samples page does not yet include a sample for this API, you can still use that library---simply adapt one of the existing samples as needed.\n\nThe set of mature libraries includes:\n\n| Client library | Documentation | All client library samples |\n|----------------------------------------------------|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| Google API Client Library for .NET | [Google API Client Library for .NET](/api-client-library/dotnet/get_started) | [.NET samples](//github.com/googleads/googleads-dfa-reporting-samples/tree/main/dotnet) |\n| Google API Client Library for Java | \u003chttps://developers.google.com/api-client-library/java/\u003e | [Java samples](//github.com/googleads/googleads-dfa-reporting-samples/tree/main/java) |\n| Google API Client Library for JavaScript | [Google API Client Library for JavaScript](/api-client-library/javascript/start/start-js) | [JavaScript samples](/api-client-library/javascript/samples/samples) |\n| Google API Client Library for Objective-C for REST | \u003chttps://github.com/google/google-api-objectivec-client-for-rest\u003e | [Objective-C samples](https://github.com/google/google-api-objectivec-client-for-rest/tree/master/Examples#Campaign_Manager_360_API) |\n| Google API Client Library for PHP () | [https://github.com/google/google-api-php-client](/api-client-library/php) | [PHP samples](//github.com/googleads/googleads-dfa-reporting-samples/tree/main/php) |\n| Google API Client Library for Python (v1/v2) | [Google API Client Library for Python (v1/v2)](/api-client-library/python) | [Python samples](//github.com/googleads/googleads-dfa-reporting-samples/tree/main/python) |\n\nThese early-stage libraries are also available:\n\n| Client library | Documentation | All client library samples |\n|-----------------------------------------------|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| Google API Client Library for Go () | \u003chttps://github.com/google/google-api-go-client\u003e | [Go samples](https://github.com/google/google-api-go-client/tree/master/examples#Campaign_Manager_360_API) |\n| Google API Client Library for Node.js (alpha) | \u003chttps://github.com/google/google-api-nodejs-client/\u003e | [Node.js samples](https://github.com/google/google-api-nodejs-client/tree/master/samples) |\n| Google API Client Library for Ruby (alpha) | [Google API Client Library for Ruby](/api-client-library/ruby/start/get_started) | [Ruby samples](//github.com/googleads/googleads-dfa-reporting-samples/tree/main/ruby) |"]]