We’ll soon be sunsetting v1.0 and v1.1 of the AdSense Management API so we encourage you to migrate to v1.2 as soon as possible. To get you started, follow this simple guide.
If you don't use the client libraries you need to replace the version on the base URL that you are using:
If you don't use the client libraries you need to replace the version on the base URL that you are using:
https://www.googleapis.com/adsense/v1.1/with
https://www.googleapis.com/adsense/v1.2/That will allow you to continue using the API as you were and should require no further modifications to your code.
If you use the client libraries, what you need to do depends on the language you use:
- Java
Download the latest client libraries and replace your project dependencies. - PHP
Make sure you get the latest files from the trunk of the repository. You may only need to replacetrunk/src/contrib/Google_AdSenseService.php
but you should update all the files you use. - Python
Good news for you! No need to download any libraries, the discovery service knows what to do. Create the service as follows:http = httplib2.Http()
service = build("adsense", "v1.2", http=http) - C#
Download the latest client libraries and replace your project dependencies.
To learn about the AdSense Management API read the docs and post your questions on the AdSense API Forum and we’ll do our best to help you! Also, follow our Google Ads Developers G+ page to receive important announcements and tips.