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.
DailyRange
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\u003eTimeRange specifies a date range, including both the start and end dates.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation uses \u003ccode\u003estartDate\u003c/code\u003e and \u003ccode\u003eendDate\u003c/code\u003e fields, both of which are required and inclusive.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003estartDate\u003c/code\u003e and \u003ccode\u003eendDate\u003c/code\u003e utilize the \u003ccode\u003eDate\u003c/code\u003e object format for specifying the dates.\u003c/p\u003e\n"]]],["The content defines a time range using a JSON representation. This representation includes `startDate` and `endDate` fields, both of which are required objects referencing a `Date` schema. The `startDate` and `endDate` indicate the beginning and end of the range, respectively. Both dates are inclusive, meaning they are part of the specified time frame.\n"],null,["# DailyRange\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nTime range indicating a date range (both inclusive).\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"startDate\": { object (/my-business/reference/performance/rest/v1/Date) }, \"endDate\": { object (/my-business/reference/performance/rest/v1/Date) } } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------|\n| `startDate` | `object (`[Date](/my-business/reference/performance/rest/v1/Date)`)` Required. Inclusive |\n| `endDate` | `object (`[Date](/my-business/reference/performance/rest/v1/Date)`)` Required. Inclusive |"]]