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.
DailySubEntityType
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eDailySubEntityType encompasses the possible subentity types associated with DailyMetrics, which can be either dayOfWeek or timeOfDay.\u003c/p\u003e\n"],["\u003cp\u003edayOfWeek is represented by an enum indicating the day, like MONDAY or TUESDAY, and is not currently supported for any DailyMetrics.\u003c/p\u003e\n"],["\u003cp\u003etimeOfDay is represented by an object containing hours, minutes, seconds, and nanoseconds in 24-hour format, also not currently supported for any DailyMetrics.\u003c/p\u003e\n"],["\u003cp\u003eNeither dayOfWeek nor timeOfDay subentity types are currently supported for any DailyMetrics.\u003c/p\u003e\n"]]],["The core content describes `DailySubEntityType`, which can represent either a `DayOfWeek` or a `TimeOfDay`. `DayOfWeek` uses enums for each day (e.g., MONDAY, TUESDAY). `TimeOfDay` uses a JSON format with fields for hours (0-23), minutes (0-59), seconds (0-59, or 60 for leap-seconds), and nanoseconds (0-999,999,999). Currently, no `DailyMetrics` are supported for `dayOfWeek` and `timeOfDay`. The structure supports only one type at once.\n"],null,["# DailySubEntityType\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DayOfWeek](#DayOfWeek)\n- [TimeOfDay](#TimeOfDay)\n - [JSON representation](#TimeOfDay.SCHEMA_REPRESENTATION)\n\nRepresents all possible subentity types that are associated with DailyMetrics.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `Type` can be only one of the following: \"dayOfWeek\": enum (/my-business/reference/performance/rest/v1/DailySubEntityType#DayOfWeek), \"timeOfDay\": { object (/my-business/reference/performance/rest/v1/DailySubEntityType#TimeOfDay) } // End of list of possible types for union field `Type`. } ``` |\n\n| Fields ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `Type`. Represents that only one of the following proto fields must be present. The DailySubEntityType is not available for all metrics. `Type` can be only one of the following: ||\n| `dayOfWeek` | `enum (`[DayOfWeek](/my-business/reference/performance/rest/v1/DailySubEntityType#DayOfWeek)`)` Represents the day of the week. Eg: MONDAY. Currently supported DailyMetrics = NONE. |\n| `timeOfDay` | `object (`[TimeOfDay](/my-business/reference/performance/rest/v1/DailySubEntityType#TimeOfDay)`)` Represents the time of the day in 24 hour format. Eg: 13:34:20 Currently supported DailyMetrics = NONE. |\n\nDayOfWeek\n---------\n\nRepresents a day of the week.\n\n| Enums ||\n|---------------------------|-------------------------------------|\n| `DAY_OF_WEEK_UNSPECIFIED` | The day of the week is unspecified. |\n| `MONDAY` | Monday |\n| `TUESDAY` | Tuesday |\n| `WEDNESDAY` | Wednesday |\n| `THURSDAY` | Thursday |\n| `FRIDAY` | Friday |\n| `SATURDAY` | Saturday |\n| `SUNDAY` | Sunday |\n\nTimeOfDay\n---------\n\nRepresents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are [google.type.Date](/my-business/reference/performance/rest/v1/Date) and `google.protobuf.Timestamp`.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"hours\": integer, \"minutes\": integer, \"seconds\": integer, \"nanos\": integer } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `hours` | `integer` Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time. |\n| `minutes` | `integer` Minutes of hour of day. Must be from 0 to 59. |\n| `seconds` | `integer` Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. |\n| `nanos` | `integer` Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |"]]