Samples and Libraries

  • Sample code is the easiest way to learn how to use the Campaign Manager 360 API.

  • The Campaign Manager 360 API is built on HTTP and JSON and can be accessed using standard web stacks or Google APIs Client Libraries.

  • Google APIs Client Libraries provide better language integration, improved security, and support for authorized calls compared to manual HTTP requests.

  • Tables are provided linking to documentation and samples for various client libraries, categorized by their stage of development.

  • Samples for the Campaign Manager 360 API are available directly for some libraries, while others may require adapting existing samples.

Often, the easiest way to learn how to use an API can be to look at sample code. This page provides links to samples and a number of convenient ways to access the Campaign Manager 360 API.

Note: See Get Started for Data Transfer v2.0 examples.

The Campaign Manager 360 API is built on HTTP and JSON, so any standard web stack can send requests to it and parse the responses.

However, instead of creating HTTP requests and parsing responses manually, you may want to use the Google APIs Client Libraries. The client libraries provide better language integration, improved security, and support for making calls that require user authorization.

In the tables below, the first column shows each library's stage of development; note that some are still in early stages. The second column links to the main page for each library.

The set of mature libraries includes:

Client library Documentation All client library samples
Google API Client Library for .NET Google API Client Library for .NET .NET samples
Google API Client Library for Java https://developers.google.com/api-client-library/java/ Java samples
Google API Client Library for JavaScript Google API Client Library for JavaScript JavaScript samples
Google API Client Library for Objective-C for REST https://github.com/google/google-api-objectivec-client-for-rest Objective-C samples
Google API Client Library for PHP () https://github.com/google/google-api-php-client PHP samples
Google API Client Library for Python (v1/v2) Google API Client Library for Python (v1/v2) Python samples

These early-stage libraries are also available:

Client library Documentation All client library samples
Google API Client Library for Go https://github.com/google/google-api-go-client Go samples
Google API Client Library for Node.js (alpha) https://github.com/google/google-api-nodejs-client/ Node.js samples
Google API Client Library for Ruby (alpha) Google API Client Library for Ruby Ruby samples