Google Business Performance API has a
NEW API method that allows fetching multiple `DailyMetrics` in a single API request. Review the
deprecation schedule and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
TimeSeries
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[null,null,["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eTimeSeries represents a timeseries, comprised of a list of datapoints called \u003ccode\u003edatedValues\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003edatedValues\u003c/code\u003e datapoint is a \u003ccode\u003eDatedValue\u003c/code\u003e object, containing a \u003ccode\u003edate\u003c/code\u003e and a corresponding \u003ccode\u003evalue\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edate\u003c/code\u003e field in \u003ccode\u003eDatedValue\u003c/code\u003e can represent a month or a specific day, depending on whether the day field is set within the \u003ccode\u003eDate\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evalue\u003c/code\u003e field in \u003ccode\u003eDatedValue\u003c/code\u003e is a string representing an integer, and it will be omitted if the value is zero.\u003c/p\u003e\n"]]],["The content describes a `TimeSeries` data structure, represented in JSON, containing a list of `DatedValue` objects. Each `DatedValue` is a datapoint consisting of a `date` object and a `value` (integer represented as a string). The `date` indicates when the datapoint occurred, and the `value` signifies its corresponding numerical data. The `value` can be absent if zero. The `TimeSeries` structure represents a collection of these date-value pairs.\n"],null,["# TimeSeries\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DatedValue](#DatedValue)\n - [JSON representation](#DatedValue.SCHEMA_REPRESENTATION)\n\nRepresents a timeseries.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------|\n| ``` { \"datedValues\": [ { object (/my-business/reference/performance/rest/v1/TimeSeries#DatedValue) } ] } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `datedValues[]` | `object (`[DatedValue](/my-business/reference/performance/rest/v1/TimeSeries#DatedValue)`)` List of datapoints in the timeseries, where each datapoint is a date-value pair. |\n\nDatedValue\n----------\n\nRepresents a single datapoint in the timeseries, where each datapoint is a date-value pair.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------|\n| ``` { \"date\": { object (/my-business/reference/performance/rest/v1/Date) }, \"value\": string } ``` |\n\n| Fields ||\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `date` | `object (`[Date](/my-business/reference/performance/rest/v1/Date)`)` The date that the datapoint corresponds to. This represents a month value if the day field is not set. |\n| `value` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The value of the datapoint. This will not be present when the value is zero. |"]]