La API de
Google Business Performance tiene un método de API
NUEVO que permite recuperar varias métricas "DailyMetrics" en una sola solicitud a la API.
Revise el
programa de baja y las instrucciones para migrar del método de la API de reportInsights versión 4 a la API de rendimiento del Perfil de Negocio de Google.
TimeRange
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Un intervalo de tiempo. Los datos se extraerán del rango como un intervalo semiabierto (es decir, [startTime, endTime]).
Representación JSON |
{
"startTime": string,
"endTime": string
} |
Campos |
startTime |
string (Timestamp format)
Es la marca de tiempo de época para el inicio del rango (inclusive). Una marca de tiempo en formato RFC3339 UTC “Zulú”, con una resolución de nanosegundos y hasta nueve dígitos fraccionarios. Ejemplos: "2014-10-02T15:01:23Z" y "2014-10-02T15:01:23.045123456Z" .
|
endTime |
string (Timestamp format)
Es la marca de tiempo de época para el final del rango (exclusivo). Una marca de tiempo en formato RFC3339 UTC “Zulú”, con una resolución de nanosegundos y hasta nueve dígitos fraccionarios. Ejemplos: "2014-10-02T15:01:23Z" y "2014-10-02T15:01:23.045123456Z" .
|
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\u003eThe Time Range is defined by a start and end time, represented in JSON format using the \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eData is extracted within a half-open interval, including the \u003ccode\u003estartTime\u003c/code\u003e but excluding the \u003ccode\u003eendTime\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e utilize the RFC3339 UTC "Zulu" format with nanosecond resolution for precision.\u003c/p\u003e\n"],["\u003cp\u003eThe Time Range leverages Google Protocol Buffers' Timestamp format for consistent and standardized representation.\u003c/p\u003e\n"]]],["Data is retrieved over a time range defined by a half-open interval, \\[startTime, endTime). The JSON representation includes `startTime` and `endTime` fields, both strings in RFC3339 UTC \"Zulu\" timestamp format. `startTime` marks the inclusive beginning of the range, and `endTime` marks the exclusive end. These timestamps use nanosecond resolution with up to nine fractional digits, as demonstrated by the given examples.\n"],null,["# TimeRange\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA range of time. Data will be pulled over the range as a half-open inverval (that is, \\[startTime, endTime)).\n\n| JSON representation ||\n|----------------------------------------------------|---|\n| ``` { \"startTime\": string, \"endTime\": string } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Epoch timestamp for the start of the range (inclusive). A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `endTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Epoch timestamp for the end of the range (exclusive). A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |"]]