AI-generated Key Takeaways
-
This page provides links to sample code and convenient ways to access the AdMob API.
-
Using Google APIs Client Libraries is recommended over manual HTTP requests for better integration, security, and authorization support.
-
The provided tables list various client libraries, their documentation, and links to available AdMob API samples.
-
Some client libraries and their AdMob API samples are still in early stages of development.
-
If an AdMob API sample is not available for a specific library, existing samples can be adapted for use.
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 AdMob API.
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 Java | https://developers.google.com/api-client-library/java/ | Java samples | |
Google API Client Library for JavaScript | Google API Client Library for JavaScript | ||
Google API Client Library for Objective-C for REST | https://github.com/google/google-api-objectivec-client-for-rest | ||
Google API Client Library for PHP () | Google API Client Library for PHP | PHP samples | |
Google API Client Library for Python (v1/v2) | Google API Client Library for Python (v1/v2) | Python samples |