Hide
DoubleClick Ad Exchange Buyer REST API

Libraries and Samples

The Google API client libraries, which are available in a number of popular programming languages, make it easy to use the Ad Exchange Buyer REST API and offer benefits including 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 libraries include:

Client library Documentation All client library samples Examples
Google APIs Client Library for .NET Google APIs Client Library for .NET .NET Samples ListAccounts.cs
InsertCreative.cs
ListDirectDeals.cs
InsertPretargetingConfig.cs
Google APIs Client Library for Java (rc) Google APIs Client Library for Java Java samples GetAllAccounts.java
SubmitCreative.java
GetAllDirectDeals.java
InsertPretargetingConfig.java
Google APIs Client Library for JavaScript (beta) Google APIs Client Library for JavaScript
Google APIs Client Library for Objective-C Google APIs Client Library for Objective-C
Google APIs Client Library for PHP (beta) Google APIs Client Library for PHP PHP samples GetAllAccounts.php
SubmitCreative.php
GetDirectDeals.php
InsertPretargetingConfig.php
Google APIs Client Library for Python Google APIs Client Library for Python Python samples list_accounts.py
insert_creative.py
list_direct_deals.py
insert_pretargeting_config.py
Google APIs Client Library for Ruby (alpha) Google APIs Client Library for Ruby Ruby samples list_accounts.rb
insert_creative.rb
list_direct_deals.rb
insert_pretargeting_config.rb

Things to keep in mind when working with the sample code:

  • The Ad Exchange Buyer REST API is built on HTTP and JSON, and any standard web stack can read data from it.
  • All operations through this API require authorization. The Google APIs client libraries described above make this easy to achieve.

Snippet status report generator

You can use the Snippet Status Report Generator to generate Snippet Status Reports.