Google Analytics Admin API . accountSummaries

Instance Methods

close()

Close httplib2 connections.

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

Returns summaries of all accounts accessible by the caller.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(pageSize=None, pageToken=None, x__xgafv=None)
Returns summaries of all accounts accessible by the caller.

Args:
  pageSize: integer, The maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
  pageToken: string, A page token, received from a previous `ListAccountSummaries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountSummaries` 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 message for ListAccountSummaries RPC.
  "accountSummaries": [ # Account summaries of all accounts the caller has access to.
    { # A virtual resource representing an overview of an account and all its child Google Analytics properties.
      "account": "A String", # Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000"
      "displayName": "A String", # Display name for the account referred to in this account summary.
      "name": "A String", # Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000"
      "propertySummaries": [ # List of summaries for child accounts of this account.
        { # A virtual resource representing metadata for a Google Analytics property.
          "displayName": "A String", # Display name for the property referred to in this property summary.
          "parent": "A String", # Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/200"
          "property": "A String", # Resource name of property referred to by this property summary Format: properties/{property_id} Example: "properties/1000"
          "propertyType": "A String", # The property's property type.
        },
      ],
    },
  ],
  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
}
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.