Like Google Adsense Javascript workspace

AdSense Management API

The AdSense Management API allows publishers to access their inventory and run earnings and performance reports.

Service: adsense.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

    REST Resource: v2.accounts

    Methods

    Gets information about the selected AdSense account.

    Lists all accounts available to this user.

    Lists all accounts directly managed by the given AdSense account.

    REST Resource: v2.accounts.adclients

    Methods

    Gets the AdSense code for a given ad client.

    Lists all the ad clients available in an account.

    REST Resource: v2.accounts.adclients.adunits

    Methods

    Gets an ad unit from a specified account and ad client.

    Gets the AdSense code for a given ad unit.

    Lists all ad units under a specified account and ad client.

    Lists all the custom channels available for an ad unit.

    REST Resource: v2.accounts.adclients.customchannels

    Methods

    Gets information about the selected custom channel.

    Lists all the custom channels available in an ad client.

    Lists all the ad units available for a custom channel.

    REST Resource: v2.accounts.adclients.urlchannels

    Methods

    Lists active url channels.

    REST Resource: v2.accounts.alerts

    Methods

    Lists all the alerts available in an account.

    REST Resource: v2.accounts.payments

    Methods

    Lists all the payments available for an account.

    REST Resource: v2.accounts.reports

    Methods

    Generates an ad hoc report.

    Generates a csv formatted ad hoc report.

    REST Resource: v2.accounts.reports.saved

    Methods

    Generates a saved report.

    Generates a csv formatted saved report.

    Lists saved reports.

    REST Resource: v2.accounts.sites

    Methods

    Gets information about the selected site.

    Lists all the sites available in an account.

    Service: adsense.googleapis.com

    To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

    Discovery document

    A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

    Service endpoint

    A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

      REST Resource: v1.4.accounts

      Methods

      Get information about the selected AdSense account.

      List all accounts available to this AdSense account.

      REST Resource: v1.4.accounts.adclients

      Methods

      Get Auto ad code for a given ad client.

      List all ad clients in the specified account.

      REST Resource: v1.4.accounts.adunits

      Methods

      Gets the specified ad unit in the specified ad client for the specified account.

      Get ad code for the specified ad unit.

      List all ad units in the specified ad client for the specified account.

      REST Resource: v1.4.accounts.adunits.customchannels

      Methods

      List all custom channels which the specified ad unit belongs to.

      REST Resource: v1.4.accounts.alerts

      Methods

      Dismiss (delete) the specified alert from the specified publisher AdSense account.

      List the alerts for the specified AdSense account.

      REST Resource: v1.4.accounts.customchannels

      Methods

      Get the specified custom channel from the specified ad client for the specified account.

      List all custom channels in the specified ad client for the specified account.

      REST Resource: v1.4.accounts.customchannels.adunits

      Methods

      List all ad units in the specified custom channel.

      REST Resource: v1.4.accounts.payments

      Methods

      List the payments for the specified AdSense account.

      REST Resource: v1.4.accounts.reports

      Methods

      Generate an AdSense report based on the report request sent in the query parameters.

      REST Resource: v1.4.accounts.reports.saved

      Methods

      Generate an AdSense report based on the saved report ID sent in the query parameters.

      List all saved reports in the specified AdSense account.

      REST Resource: v1.4.accounts.savedadstyles

      Methods

      List a specific saved ad style for the specified account.

      List all saved ad styles in the specified account.

      REST Resource: v1.4.accounts.urlchannels

      Methods

      List all URL channels in the specified ad client for the specified account.

      REST Resource: v1.4.adclients

      Methods

      List all ad clients in this AdSense account.

      REST Resource: v1.4.adunits

      Methods

      Gets the specified ad unit in the specified ad client.

      Get ad code for the specified ad unit.