Method: properties.audiences.list

  • The audiences.list method lists Audiences on a property, though audiences created before 2020 may not be supported and default audiences will not show filter definitions.

  • The HTTP request uses a GET method to the specified URL, with a required parent path parameter indicating the property.

  • Optional query parameters include pageSize to control the number of resources returned and pageToken for pagination.

  • The request body for this method must be empty, and the response body contains a list of Audience objects and a token for the next page of results.

  • Authorization requires either the analytics.readonly or analytics.edit OAuth scopes.

Lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

HTTP request

GET https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/audiences

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Example format: properties/1234

Query parameters

Parameters
pageSize

integer

The maximum number of resources to return. 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 audiences.list call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to audiences.list must match the call that provided the page token.

Request body

The request body must be empty.

Response body

Response message for audiences.list RPC.

If successful, the response body contains data with the following structure:

JSON representation
{
  "audiences": [
    {
      object (Audience)
    }
  ],
  "nextPageToken": string
}
Fields
audiences[]

object (Audience)

List of Audiences.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit