Google 애널리틱스용 MCP 서버를 사용해 보세요.
GitHub에서 설치하고
공지사항에서 자세한 내용을 확인하세요.
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-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eLists all CustomMetrics on a specified Google Analytics 4 property.\u003c/p\u003e\n"],["\u003cp\u003eAllows pagination to retrieve large result sets via \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes a list of CustomMetrics and a token for retrieving subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific authorization scopes for access, either \u003ccode\u003eanalytics.readonly\u003c/code\u003e or \u003ccode\u003eanalytics.edit\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty and the endpoint is accessed using an HTTP GET request.\u003c/p\u003e\n"]]],["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"],null,["# Method: properties.customMetrics.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListCustomMetricsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists CustomMetrics on a property.\n\n### HTTP request\n\n`GET https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|----------------------------------------------------|\n| `parent` | `string` Required. Example format: properties/1234 |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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). |\n| `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. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for customMetrics.list RPC.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"customMetrics\": [ { object (/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#CustomMetric) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `customMetrics[]` | `object (`[CustomMetric](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#CustomMetric)`)` List of CustomMetrics. |\n| `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. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/analytics.readonly`\n- `https://www.googleapis.com/auth/analytics.edit`"]]