|
Methods defined here:
- __init__(self)
- list = method(self, **kwargs)
- List all ad units in this AdSense account.
Args:
pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
includeInactive: boolean, Whether to include inactive ad units. Default: true.
adClientId: string, Ad client for which to list ad units. (required)
maxResults: integer, The maximum number of ad units to include in the response, used for paging.
Returns:
An object of the form
{
"nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
"items": [ # The ad units returned in this list response.
{
"status": "A String", # Status of this ad unit. Possible values are:
# NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
#
# ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
#
# INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
"kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
"code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
"id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
"name": "A String", # Name of this ad unit.
},
],
"kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
"etag": "A String", # ETag of this response for caching purposes.
}
- list_next = methodNext(self, previous_request, previous_response)
- Retrieves the next page of results.
Args:
previous_request: The request for the previous page.
previous_response: The response from the request for the previous page.
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.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|