La API
Performance de Perfil de Empresa en Google tiene un
NUEVO método que permite obtener varios valores del parámetro "DailyMetrics" con una misma solicitud.
Consulta el
calendario de desactivación y las instrucciones para pasar del método reportInsights de la versión 4 de la API de Google My Business a la API Performance de Perfil de Empresa en Google.
MetricValue
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Un valor para una sola métrica desde una hora de inicio.
Campos |
metric |
enum (Metric )
La métrica para la que se aplica el valor.
|
totalValue |
object (DimensionalMetricValue )
Es el valor agregado total de esta métrica. Se establece para la opción AGGREGATED_TOTAL.
|
dimensionalValues[] |
object (DimensionalMetricValue )
Valores dimensionales de esta métrica.
|
DimensionalMetricValue
Es un valor para una sola métrica con una dimensión de tiempo determinada.
Campos |
metricOption |
enum (MetricOption )
Es la opción que solicitó este valor dimensional.
|
timeDimension |
object (TimeDimension )
Es la dimensión del valor.
|
value |
string (Int64Value format)
Es el valor. Si no se establece ningún valor, entonces faltan los datos solicitados.
|
TimeDimension
Es la dimensión para la que se dividen los datos.
Campos |
dayOfWeek |
enum (DayOfWeek )
El día de la semana ("MONDAY" a "SUNDAY") al que corresponde este valor. Se estableció para la opción BREAKDOWN_DAY_OF_WEEK.
|
timeOfDay |
object (TimeOfDay )
Es la hora del día (0 a 23) a la que corresponde este valor. Se estableció para la opción BREAKDOWN_HOUR_OF_DAY.
|
timeRange |
object (TimeRange )
Es el intervalo de tiempo que cubre este valor. Se establece para las opciones AGGREGATED_TOTAL y AGGREGATED_DAILY.
|
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-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\u003cp\u003eMetricValue represents a single metric's value starting from a specific time.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the metric, total aggregated value, and dimensional values.\u003c/p\u003e\n"],["\u003cp\u003eDimensionalMetricValue provides a metric value for a given time dimension.\u003c/p\u003e\n"],["\u003cp\u003eTimeDimension specifies how data is divided, like by day of the week, hour, or a time range.\u003c/p\u003e\n"]]],[],null,["# MetricValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DimensionalMetricValue](#DimensionalMetricValue)\n - [JSON representation](#DimensionalMetricValue.SCHEMA_REPRESENTATION)\n- [TimeDimension](#TimeDimension)\n - [JSON representation](#TimeDimension.SCHEMA_REPRESENTATION)\n\nA value for a single Metric from a starting time.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metric\": enum (/my-business/reference/rest/v4/Metric), \"totalValue\": { object (/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue) }, \"dimensionalValues\": [ { object (/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue) } ] } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metric` | `enum (`[Metric](/my-business/reference/rest/v4/Metric)`)` The metric for which the value applies. |\n| `totalValue` | `object (`[DimensionalMetricValue](/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue)`)` The total aggregated value for this metric. Set for the AGGREGATED_TOTAL option. |\n| `dimensionalValues[]` | `object (`[DimensionalMetricValue](/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue)`)` Dimensional values for this metric. |\n\nDimensionalMetricValue\n----------------------\n\nA value for a single metric with a given time dimension.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metricOption\": enum (/my-business/reference/rest/v4/MetricOption), \"timeDimension\": { object (/my-business/reference/rest/v4/MetricValue#TimeDimension) }, \"value\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metricOption` | `enum (`[MetricOption](/my-business/reference/rest/v4/MetricOption)`)` The option that requested this dimensional value. |\n| `timeDimension` | `object (`[TimeDimension](/my-business/reference/rest/v4/MetricValue#TimeDimension)`)` The dimension for the value. |\n| `value` | `string (`[Int64Value](https://developers.google.com/discovery/v1/type-format)` format)` The value. If no value is set, then the requested data is missing. |\n\nTimeDimension\n-------------\n\nThe dimension for which data is divided over.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"dayOfWeek\": enum (/my-business/reference/rest/v4/accounts.locations#Location.DayOfWeek), \"timeOfDay\": { object (/my-business/reference/rest/v4/accounts.locations.localPosts#TimeOfDay) }, \"timeRange\": { object (/my-business/reference/rest/v4/TimeRange) } } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dayOfWeek` | `enum (`[DayOfWeek](/my-business/reference/rest/v4/accounts.locations#Location.DayOfWeek)`)` The day of the week (\"MONDAY\" to \"SUNDAY\") this value corresponds to. Set for BREAKDOWN_DAY_OF_WEEK option. |\n| `timeOfDay` | `object (`[TimeOfDay](/my-business/reference/rest/v4/accounts.locations.localPosts#TimeOfDay)`)` The hour of the day (0 to 23) this value corresponds to. Set for BREAKDOWN_HOUR_OF_DAY option. |\n| `timeRange` | `object (`[TimeRange](/my-business/reference/rest/v4/TimeRange)`)` The range of time this value covers. Set for AGGREGATED_TOTAL and AGGREGATED_DAILY options. |"]]