Prueba el servidor de MCP para Google Analytics. Instala desde
GitHub y consulta el
anuncio para obtener más detalles.
Row
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Informa los datos de cada fila. Por ejemplo, si RunReportRequest contiene lo siguiente:
"dimensions": [
{
"name": "eventName"
},
{
"name": "countryId"
}
],
"metrics": [
{
"name": "eventCount"
}
]
Una fila con "in_app_purchase" como eventName, "JP" como countryId y 15 como eventCount sería:
"dimensionValues": [
{
"value": "in_app_purchase"
},
{
"value": "JP"
}
],
"metricValues": [
{
"value": "15"
}
]
Campos |
dimensionValues[] |
object (DimensionValue )
Es la lista de valores de dimensión solicitados. En un PivotReport, los dimensionValues solo se enumeran para las dimensiones incluidas en un pivote.
|
metricValues[] |
object (MetricValue )
Es la lista de valores de métricas visibles solicitados.
|
DimensionValue
Es el valor de una dimensión.
Representación 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 .
} |
Campos |
Campo de unión one_value . Un tipo de valor de dimensión one_value puede ser solo uno de los siguientes: |
value |
string
Es el valor como una cadena si el tipo de dimensión es una cadena.
|
MetricValue
Es el valor de una métrica.
Representación 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 .
} |
Campos |
Campo de unión one_value . Uno de los valores de métrica one_value puede ser uno de los siguientes: |
value |
string
Valor de la medición. Consulta MetricHeader para conocer el tipo.
|
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\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. |"]]