AdMob API . accounts

Instance Methods

mediationReport()

Returns the mediationReport Resource.

networkReport()

Returns the networkReport Resource.

get(name, x__xgafv=None)

Gets information about the specified AdMob publisher account.

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

Lists the AdMob publisher account accessible with the client credential.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

get(name, x__xgafv=None)
Gets information about the specified AdMob publisher account.

Args:
  name: string, Resource name of the publisher account to retrieve.
Example: accounts/pub-9876543210987654 (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A publisher account contains information relevant to the use of this API,
      # such as the time zone used for the reports.
    "name": "A String", # Resource name of this account.
        # Format is accounts/{publisher_id}.
    "publisherId": "A String", # The unique ID by which this publisher account can be identified
        # in the API requests (for example, pub-1234567890).
    "reportingTimeZone": "A String", # The time zone that is used in reports that are generated for this account.
        # The value is a time-zone ID as specified by the CLDR project,
        # for example, "America/Los_Angeles".
    "currencyCode": "A String", # Currency code of the earning-related metrics, which is the 3-letter code
        # defined in ISO 4217. The daily average rate is used for the currency
        # conversion.
  }
list(pageToken=None, pageSize=None, x__xgafv=None)
Lists the AdMob publisher account accessible with the client credential.
Currently, all credentials have access to at most one AdMob account.

Args:
  pageToken: string, The value returned by the last `ListPublisherAccountsResponse`; indicates
that this is a continuation of a prior `ListPublisherAccounts` call, and
that the system should return the next page of data.
  pageSize: integer, Maximum number of accounts to return.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for the publisher account list request.
    "nextPageToken": "A String", # If not empty, indicates that there might be more accounts for the request;
        # you must pass this value in a new `ListPublisherAccountsRequest`.
    "account": [ # Publisher that the client credentials can access.
      { # A publisher account contains information relevant to the use of this API,
          # such as the time zone used for the reports.
        "name": "A String", # Resource name of this account.
            # Format is accounts/{publisher_id}.
        "publisherId": "A String", # The unique ID by which this publisher account can be identified
            # in the API requests (for example, pub-1234567890).
        "reportingTimeZone": "A String", # The time zone that is used in reports that are generated for this account.
            # The value is a time-zone ID as specified by the CLDR project,
            # for example, "America/Los_Angeles".
        "currencyCode": "A String", # Currency code of the earning-related metrics, which is the 3-letter code
            # defined in ISO 4217. The daily average rate is used for the currency
            # conversion.
      },
    ],
  }
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.