Method: properties.customMetrics.list
속성의 CustomMetrics를 나열합니다.
HTTP 요청
GET https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
parent |
string
필수 항목입니다. 예시 형식: properties/1234
|
쿼리 매개변수
매개변수 |
pageSize |
integer
반환할 최대 리소스 수입니다. 지정하지 않으면 최대 50개의 리소스가 반환됩니다. 최대값은 200입니다. 이보다 큰 값은 최대값으로 강제 변환됩니다.
|
pageToken |
string
이전 customMetrics.list 호출에서 받은 페이지 토큰입니다. 후속 페이지를 검색하려면 이를 입력합니다. 페이지를 매길 때 customMetrics.list 에 제공된 다른 모든 매개변수는 페이지 토큰을 제공한 호출과 일치해야 합니다.
|
응답 본문
customMetrics.list RPC의 응답 메시지입니다.
성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.
JSON 표현 |
{
"customMetrics": [
{
object (CustomMetric )
}
],
"nextPageToken": string
} |
필드 |
customMetrics[] |
object (CustomMetric )
CustomMetrics 목록입니다.
|
nextPageToken |
string
다음 페이지를 검색하기 위해 pageToken 으로 전송할 수 있는 토큰입니다. 이 필드를 생략하면 후속 페이지가 표시되지 않습니다.
|
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-01-14(UTC)
[null,null,["최종 업데이트: 2025-01-14(UTC)"],[[["Lists all CustomMetrics on a specified Google Analytics 4 property."],["Allows pagination to retrieve large result sets via `pageSize` and `pageToken` parameters."],["Response includes a list of CustomMetrics and a token for retrieving subsequent pages."],["Requires specific authorization scopes for access, either `analytics.readonly` or `analytics.edit`."],["The request body should be empty and the endpoint is accessed using an HTTP GET request."]]],["This document outlines the process for listing CustomMetrics on a property via an HTTP GET request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics`. The `parent` path parameter (e.g., `properties/1234`) is required. Optional query parameters `pageSize` and `pageToken` allow for pagination. The request body must be empty. The response includes a list of `customMetrics` and a `nextPageToken` for retrieving subsequent pages, all in JSON format. Authentication requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]