试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
Row
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
报告每行的相关数据。例如,如果 RunReportRequest 包含:
"dimensions": [
{
"name": "eventName"
},
{
"name": "countryId"
}
],
"metrics": [
{
"name": "eventCount"
}
]
以下是将“in_app_purchase”作为 eventName、将“JP”作为 countryId 和将 15 作为 eventCount 的一行数据:
"dimensionValues": [
{
"value": "in_app_purchase"
},
{
"value": "JP"
}
],
"metricValues": [
{
"value": "15"
}
]
字段 |
dimensionValues[] |
object (DimensionValue )
请求的维度值列表。在数据透视报告中,只有数据透视中包含的维度才会列出 dimensionValues。
|
metricValues[] |
object (MetricValue )
请求的可见指标值的列表。
|
DimensionValue
JSON 表示法 |
{
// Union field one_value can be only one of the following:
"value": string
// End of list of possible types for union field one_value .
} |
字段 |
联合字段 one_value 。一种维度值 one_value 只能是以下任一值: |
value |
string
如果维度类型为字符串,则值为字符串。
|
MetricValue
JSON 表示法 |
{
// Union field one_value can be only one of the following:
"value": string
// End of list of possible types for union field one_value .
} |
字段 |
联合字段 one_value 。指标值 one_value 只能是以下任一值: |
value |
string
衡量价值。如需了解类型,请参阅 MetricHeader。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eData is structured in rows, each containing dimension values and metric values.\u003c/p\u003e\n"],["\u003cp\u003eDimension values represent categorical data like eventName or countryId, stored as strings.\u003c/p\u003e\n"],["\u003cp\u003eMetric values represent quantitative data like eventCount, also stored as strings, with their type specified in the MetricHeader.\u003c/p\u003e\n"],["\u003cp\u003eRows align with requested dimensions and metrics defined in the RunReportRequest.\u003c/p\u003e\n"],["\u003cp\u003ePivotReports only include dimension values for pivoted dimensions.\u003c/p\u003e\n"]]],["The content outlines the structure of report data, specifically `DimensionValue` and `MetricValue`. Report rows contain lists of `dimensionValues` and `metricValues`. `DimensionValue` represents a dimension's value (e.g., \"in_app_purchase\"), and `MetricValue` represents a metric's value (e.g., \"15\"). Both `DimensionValue` and `MetricValue` have a single field, `value`, which is a string. A JSON representation of a row shows the association between dimensions and metrics.\n"],null,["# Row\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DimensionValue](#DimensionValue)\n - [JSON representation](#DimensionValue.SCHEMA_REPRESENTATION)\n- [MetricValue](#MetricValue)\n - [JSON representation](#MetricValue.SCHEMA_REPRESENTATION)\n\nReport data for each row. For example if RunReportRequest contains: \n\n \"dimensions\": [\n {\n \"name\": \"eventName\"\n },\n {\n \"name\": \"countryId\"\n }\n ],\n \"metrics\": [\n {\n \"name\": \"eventCount\"\n }\n ]\n\nOne row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: \n\n \"dimensionValues\": [\n {\n \"value\": \"in_app_purchase\"\n },\n {\n \"value\": \"JP\"\n }\n ],\n \"metricValues\": [\n {\n \"value\": \"15\"\n }\n ]\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dimensionValues\": [ { object (/analytics/devguides/reporting/data/v1/rest/v1alpha/Row#DimensionValue) } ], \"metricValues\": [ { object (/analytics/devguides/reporting/data/v1/rest/v1alpha/Row#MetricValue) } ] } ``` |\n\n| Fields ||\n|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dimension``Values[]` | `object (`[DimensionValue](/analytics/devguides/reporting/data/v1/rest/v1alpha/Row#DimensionValue)`)` List of requested dimension values. In a PivotReport, dimensionValues are only listed for dimensions included in a pivot. |\n| `metric``Values[]` | `object (`[MetricValue](/analytics/devguides/reporting/data/v1/rest/v1alpha/Row#MetricValue)`)` List of requested visible metric values. |\n\nDimensionValue\n--------------\n\nThe value of a dimension.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `one_value` can be only one of the following: \"value\": string // End of list of possible types for union field `one_value`. } ``` |\n\n| Fields ||\n|---------|---------------------------------------------------------------|\n| Union field `one_value`. One kind of dimension value `one_value` can be only one of the following: ||\n| `value` | `string` Value as a string if the dimension type is a string. |\n\nMetricValue\n-----------\n\nThe value of a metric.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `one_value` can be only one of the following: \"value\": string // End of list of possible types for union field `one_value`. } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------|\n| Union field `one_value`. One of metric value `one_value` can be only one of the following: ||\n| `value` | `string` Measurement value. See MetricHeader for type. |"]]