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 customMetrics.list call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to customMetrics.list must match the call that provided the page token.
Request body
The request body must be empty.
Response body
Response message for customMetrics.list RPC.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Lists all the CustomMetrics defined for a Google Analytics 4 property."],["The API request requires specifying the parent property ID and supports pagination for retrieving large result sets."],["The response includes a list of CustomMetrics objects and a token for accessing the next page of results, if available."],["Requires authorization with either read-only or edit access to Google Analytics."]]],["This document details how to list custom metrics for a property using the Google Analytics Admin API. A `GET` HTTP request is sent to a specific URL, including a required `parent` path parameter (e.g., \"properties/1234\"). Optional query parameters `pageSize` (max 200) and `pageToken` are used for pagination. The request body must be empty. A successful response returns a JSON object containing an array of `customMetrics` and an optional `nextPageToken` for retrieving subsequent pages. Authorization requires specific OAuth scopes.\n"]]