AdSense Management API . accounts

Instance Methods

adclients()

Returns the adclients Resource.

adunits()

Returns the adunits Resource.

alerts()

Returns the alerts Resource.

customchannels()

Returns the customchannels Resource.

payments()

Returns the payments Resource.

reports()

Returns the reports Resource.

savedadstyles()

Returns the savedadstyles Resource.

urlchannels()

Returns the urlchannels Resource.

close()

Close httplib2 connections.

get(accountId, tree=None)

Get information about the selected AdSense account.

list(maxResults=None, pageToken=None)

List all accounts available to this AdSense account.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(accountId, tree=None)
Get information about the selected AdSense account.

Args:
  accountId: string, Account to get information about. (required)
  tree: boolean, Whether the tree of sub accounts should be returned.

Returns:
  An object of the form:

    {
    "timezone": "A String", # AdSense timezone of this account.
    "kind": "adsense#account", # Kind of resource this is, in this case adsense#account.
    "subAccounts": [ # Sub accounts of the this account.
      # Object with schema name: Account
    ],
    "id": "A String", # Unique identifier of this account.
    "premium": True or False, # Whether this account is premium.
    "creation_time": "A String",
    "name": "A String", # Name of this account.
  }
list(maxResults=None, pageToken=None)
List all accounts available to this AdSense account.

Args:
  maxResults: integer, The maximum number of accounts to include in the response, used for paging.
  pageToken: string, A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.

Returns:
  An object of the form:

    {
    "kind": "adsense#accounts", # Kind of list this is, in this case adsense#accounts.
    "nextPageToken": "A String", # Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this.
    "items": [ # The accounts returned in this list response.
      {
        "timezone": "A String", # AdSense timezone of this account.
        "kind": "adsense#account", # Kind of resource this is, in this case adsense#account.
        "subAccounts": [ # Sub accounts of the this account.
          # Object with schema name: Account
        ],
        "id": "A String", # Unique identifier of this account.
        "premium": True or False, # Whether this account is premium.
        "creation_time": "A String",
        "name": "A String", # Name of this account.
      },
    ],
    "etag": "A String", # ETag of this response for caching purposes.
  }
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.