AdSense Management API

API Reference

This API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.

Resource types

  1. Accounts
  2. Accounts.adclients
  3. Accounts.adunits
  4. Accounts.customchannels
  5. Accounts.customchannels.adunits
  6. Accounts.reports
  7. Accounts.reports.saved
  8. Accounts.savedadstyles
  9. Accounts.urlchannels

The following resource types and their methods are deprecated:

  1. Adclients
  2. Adunits
  3. Adunits.customchannels
  4. Customchannels
  5. Customchannels.adunits
  6. Reports
  7. Reports.saved
  8. Savedadstyles
  9. Urlchannels

Accounts

For Accounts Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /accounts/accountId Get information about the selected AdSense account.
list GET  /accounts List all accounts available to this AdSense account.

Accounts.adclients

For Accounts.adclients Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /accounts/accountId/adclients List all ad clients in the specified account.

Accounts.adunits

For Accounts.adunits Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /accounts/accountId/adclients/adClientId/adunits/adUnitId Gets the specified ad unit in the specified ad client for the specified account.
list GET  /accounts/accountId/adclients/adClientId/adunits List all ad units in the specified ad client for the specified account.

Accounts.customchannels

For Accounts.customchannels Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /accounts/accountId/adclients/adClientId/customchannels/customChannelId Get the specified custom channel from the specified ad client for the specified account.
list GET  /accounts/accountId/adclients/adClientId/customchannels List all custom channels in the specified ad client for the specified account.

Accounts.customchannels.adunits

For Accounts.customchannels.adunits Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /accounts/accountId/adclients/adClientId/customchannels/customChannelId/adunits List all ad units in the specified custom channel.

Accounts.reports

For Accounts.reports Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
generate GET  /accounts/accountId/reports Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.

Accounts.reports.saved

For Accounts.reports.saved Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
generate GET  /accounts/accountId/reports/savedReportId Generate an AdSense report based on the saved report ID sent in the query parameters.
list GET  /accounts/accountId/reports/saved List all saved reports in the specified AdSense account.

Accounts.savedadstyles

For Accounts.savedadstyles Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /accounts/accountId/savedadstyles/savedAdStyleId List a specific saved ad style for the specified account.
list GET  /accounts/accountId/savedadstyles List all saved ad styles in the specified account.

Accounts.urlchannels

For Accounts.urlchannels Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /accounts/accountId/adclients/adClientId/urlchannels List all URL channels in the specified ad client for the specified account.

Deprecated resource types

Adclients

For Adclients Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /adclients List all ad clients in this AdSense account.

Adunits

For Adunits Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /adclients/adClientId/adunits/adUnitId Gets the specified ad unit in the specified ad client.
list GET  /adclients/adClientId/adunits List all ad units in the specified ad client for this AdSense account.

Adunits.customchannels

For Adunits.customchannels Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /adclients/adClientId/adunits/adUnitId/customchannels List all custom channels which the specified ad unit belongs to.

Customchannels

For Customchannels Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /adclients/adClientId/customchannels/customChannelId Get the specified custom channel from the specified ad client.
list GET  /adclients/adClientId/customchannels List all custom channels in the specified ad client for this AdSense account.

Customchannels.adunits

For Customchannels.adunits Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /adclients/adClientId/customchannels/customChannelId/adunits List all ad units in the specified custom channel.

Reports

For Reports Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
generate GET  /reports Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.

Reports.saved

For Reports.saved Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
generate GET  /reports/savedReportId Generate an AdSense report based on the saved report ID sent in the query parameters.
list GET  /reports/saved List all saved reports in this AdSense account.

Savedadstyles

For Savedadstyles Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
get GET  /savedadstyles/savedAdStyleId Get a specific saved ad style from the user's account.
list GET  /savedadstyles List all saved ad styles in the user's account.

Urlchannels

For Urlchannels Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/adsense/v1.2
list GET  /adclients/adClientId/urlchannels List all URL channels in the specified ad client for this AdSense account.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.