ReportingDateRange
Standard date ranges used in report generation.
Enums |
REPORTING_DATE_RANGE_UNSPECIFIED |
Unspecified date range. |
CUSTOM |
A custom date range specified using the startDate and endDate fields. This is the default if no ReportingDateRange is provided. |
TODAY |
Current day. |
YESTERDAY |
Yesterday. |
MONTH_TO_DATE |
From the start of the current month to the current day. e.g. if the current date is 2020-03-12 then the range will be [2020-03-01, 2020-03-12]. |
YEAR_TO_DATE |
From the start of the current year to the current day. e.g. if the current date is 2020-03-12 then the range will be [2020-01-01, 2020-03-12]. |
LAST_7_DAYS |
Last 7 days, excluding current day. |
LAST_30_DAYS |
Last 30 days, excluding current day. |
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-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["Standard date ranges are used in report generation and are specified using enums."],["`CUSTOM` is the default range if no ReportingDateRange is provided and uses `startDate` and `endDate` fields."],["Predefined ranges include `TODAY`, `YESTERDAY`, `MONTH_TO_DATE`, `YEAR_TO_DATE`, `LAST_7_DAYS`, and `LAST_30_DAYS` with specific start and end points."],["`MONTH_TO_DATE` and `YEAR_TO_DATE` ranges include the current day."],["`LAST_7_DAYS` and `LAST_30_DAYS` ranges exclude the current day."]]],["The core content outlines standard date ranges for report generation. Options include: `CUSTOM` (using start/end dates), `TODAY`, `YESTERDAY`, `MONTH_TO_DATE` (from the start of the current month to today), `YEAR_TO_DATE` (from the start of the current year to today), `LAST_7_DAYS` (excluding today), and `LAST_30_DAYS` (excluding today). `REPORTING_DATE_RANGE_UNSPECIFIED` is for unspecified ranges. `CUSTOM` is the default range when no specific date range is provided.\n"]]