AdSense Platform API . accounts . platforms

Instance Methods

childAccounts()

Returns the childAccounts Resource.

groups()

Returns the groups Resource.

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets a platform.

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Lists platforms for a specified account.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets a platform.

Args:
  name: string, Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform} (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Representation of a Transparent Platform.
  "defaultPlatformGroup": "A String", # Default platform group for the platform.
  "description": "A String", # Output only. Description of the platform.
  "name": "A String", # Identifier. Resource name of a platform. Format: accounts/{account}/platforms/{platform}
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists platforms for a specified account.

Args:
  parent: string, Required. The account which owns the platforms. Format: accounts/{account} (required)
  pageSize: integer, Optional. The maximum number of platforms to include in the response, used for paging. If unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
  pageToken: string, Optional. A page token, received from a previous `ListPlatforms` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPlatforms` must match the call that provided the page token.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response definition for the platform list rpc.
  "nextPageToken": "A String", # Continuation token used to page through platforms. To retrieve the next page of the results, set the next request's "page_token" value to this.
  "platforms": [ # The platforms returned in this list response.
    { # Representation of a Transparent Platform.
      "defaultPlatformGroup": "A String", # Default platform group for the platform.
      "description": "A String", # Output only. Description of the platform.
      "name": "A String", # Identifier. Resource name of a platform. Format: accounts/{account}/platforms/{platform}
    },
  ],
}
list_next()
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.