Google Affiliate Network API (Deprecated)

Libraries and 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 Google Affiliate Network API.

Google Affiliate Network API samples

The Google Affiliate Network API is built on HTTP and JSON, and any standard web stack can read data from it.

If you want to add or modify data, your application needs to get user authorization for those calls; the Google APIs client libraries make it easy to do this.

Here are some of the available Google Affiliate Network API samples:

Type Language Sample description Client library API version
Command line Python
Google Affiliate Network API Sample
Python sample that queries Google Affiliate Network for data. Demonstrates the use of OAuth 2.0, use of pagination, and a separate client_secrets.json file for storing credentials.
Google APIs Client Library for Python 1.0
Command line Java
Google Affiliate Network API Sample
Java sample that queries Google Affiliate Network for data. Demonstrates the use of OAuth 2.0.
Google APIs Client Library for Java 1.0

Google APIs client libraries

When you use the Google APIs Client Libraries, you benefit from 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 APIs Client Library for .NET Google APIs Client Library for .NET .NET samples
Google APIs Client Library for Java (rc) google-api-java-client/ Java samples
Google APIs Client Library for JavaScript (beta) Google APIs Client Library for JavaScript JavaScript samples
Google APIs Client Library for Objective-C google-api-objectivec-client/ Objective-C samples
Google APIs Client Library for PHP (beta) google-api-php-client PHP samples
Google APIs Client Library for Python Google APIs Client Library for Python Python samples

These early-stage libraries are also available:

Client library Documentation All client library samples
Google APIs Client Library for Go (alpha) google-api-go-client/ Go samples
Google API Libraries for Google Web Toolkit (alpha) gwt-google-apis/ GWT samples
Google APIs Client Library for Node.js (alpha) google-api-nodejs-client/ Node.js samples
Google APIs Client Library for Ruby (alpha) Google APIs Client Library for Ruby Ruby samples

In addition to the Google-supported client libraries listed in the table above, a set of third-party Dart libraries (with samples) is available for the Dart language.


Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.