AI-generated Key Takeaways
-
The
audiences.listmethod 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
parentpath parameter indicating the property. -
Optional query parameters include
pageSizeto control the number of resources returned andpageTokenfor 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.readonlyoranalytics.editOAuth scopes.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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 |
Required. Example format: properties/1234 |
Query parameters
| Parameters | |
|---|---|
pageSize |
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 |
A page token, received from a previous When paginating, all other parameters provided to |
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 ( |
| Fields | |
|---|---|
audiences[] |
List of Audiences. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/analytics.readonlyhttps://www.googleapis.com/auth/analytics.edit