AdSense Host API . accounts

Instance Methods

adclients()

Returns the adclients Resource.

adunits()

Returns the adunits Resource.

reports()

Returns the reports Resource.

close()

Close httplib2 connections.

get(accountId)

Get information about the selected associated AdSense account.

list(filterAdClientId)

List hosted accounts associated with this AdSense account by ad client id.

Method Details

close()
Close httplib2 connections.
get(accountId)
Get information about the selected associated AdSense account.

Args:
  accountId: string, Account to get information about. (required)

Returns:
  An object of the form:

    {
    "name": "A String", # Name of this account.
    "kind": "adsensehost#account", # Kind of resource this is, in this case adsensehost#account.
    "id": "A String", # Unique identifier of this account.
    "status": "A String", # Approval status of this account. One of: PENDING, APPROVED, DISABLED.
  }
list(filterAdClientId)
List hosted accounts associated with this AdSense account by ad client id.

Args:
  filterAdClientId: string, Ad clients to list accounts for. (required) (repeated)

Returns:
  An object of the form:

    {
    "items": [ # The accounts returned in this list response.
      {
        "name": "A String", # Name of this account.
        "kind": "adsensehost#account", # Kind of resource this is, in this case adsensehost#account.
        "id": "A String", # Unique identifier of this account.
        "status": "A String", # Approval status of this account. One of: PENDING, APPROVED, DISABLED.
      },
    ],
    "etag": "A String", # ETag of this response for caching purposes.
    "kind": "adsensehost#accounts", # Kind of list this is, in this case adsensehost#accounts.
  }