Google 애널리틱스용 MCP 서버를 사용해 보세요.
GitHub에서 설치하고
공지사항에서 자세한 내용을 확인하세요.
Comparison
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
개별 비교를 정의합니다. 대부분의 요청에는 보고서에서 비교 간에 비교할 수 있도록 여러 비교가 포함됩니다.
JSON 표현 |
{
"name": string,
// Union field one_comparison can be only one of the following:
"dimensionFilter": {
object (FilterExpression )
},
"comparison": string
// End of list of possible types for union field one_comparison .
} |
필드 |
name |
string
각 비교는 응답에 별도의 행을 생성합니다. 응답에서 이 비교는 이 이름으로 식별됩니다. 이름을 지정하지 않으면 저장된 비교 표시 이름이 사용됩니다.
|
통합 필드 one_comparison . 비교 값 one_comparison 의 한 종류는 다음 중 하나여야 합니다. |
dimensionFilter |
object (FilterExpression )
기본 비교
|
comparison |
string
비교의 리소스 이름으로 식별되는 저장된 비교입니다. 예를 들어 'comparisons/1234'입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eJSON representation defines individual comparisons, often used in reports to compare multiple aspects.\u003c/p\u003e\n"],["\u003cp\u003eEach comparison has a name for identification and uses either a \u003ccode\u003edimensionFilter\u003c/code\u003e or a saved \u003ccode\u003ecomparison\u003c/code\u003e for defining the comparison logic.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edimensionFilter\u003c/code\u003e allows for basic comparisons using FilterExpression, while \u003ccode\u003ecomparison\u003c/code\u003e utilizes a saved comparison resource for complex scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThe response data will present each comparison in separate rows, identified by their respective names.\u003c/p\u003e\n"]]],["The content defines a comparison structure for reporting. Each comparison has a `name` for identification in the response. A comparison can be defined in one of two ways: by a `dimensionFilter` object, which specifies a basic filter criteria; or by referencing a pre-existing saved `comparison` via its resource name. Multiple comparisons are used together to create a report, each comparison generating separate rows in the output.\n"],null,["# Comparison\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDefines an individual comparison. Most requests will include multiple comparisons so that the report compares between the comparisons.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, // Union field `one_comparison` can be only one of the following: \"dimensionFilter\": { object (/analytics/devguides/reporting/data/v1/rest/v1beta/FilterExpression) }, \"comparison\": string // End of list of possible types for union field `one_comparison`. } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Each comparison produces separate rows in the response. In the response, this comparison is identified by this name. If name is unspecified, we will use the saved comparisons display name. |\n| Union field `one_comparison`. One kind of comparison value `one_comparison` can be only one of the following: ||\n| `dimension``Filter` | `object (`[FilterExpression](/analytics/devguides/reporting/data/v1/rest/v1beta/FilterExpression)`)` A basic comparison. |\n| `comparison` | `string` A saved comparison identified by the comparison's resource name. For example, 'comparisons/1234'. |"]]