ReportingDateRange
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eStandard date ranges are used in report generation and are specified using enums.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCUSTOM\u003c/code\u003e is the default range if no ReportingDateRange is provided and uses \u003ccode\u003estartDate\u003c/code\u003e and \u003ccode\u003eendDate\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003ePredefined ranges include \u003ccode\u003eTODAY\u003c/code\u003e, \u003ccode\u003eYESTERDAY\u003c/code\u003e, \u003ccode\u003eMONTH_TO_DATE\u003c/code\u003e, \u003ccode\u003eYEAR_TO_DATE\u003c/code\u003e, \u003ccode\u003eLAST_7_DAYS\u003c/code\u003e, and \u003ccode\u003eLAST_30_DAYS\u003c/code\u003e with specific start and end points.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMONTH_TO_DATE\u003c/code\u003e and \u003ccode\u003eYEAR_TO_DATE\u003c/code\u003e ranges include the current day.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLAST_7_DAYS\u003c/code\u003e and \u003ccode\u003eLAST_30_DAYS\u003c/code\u003e ranges exclude the current day.\u003c/p\u003e\n"]]],["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"],null,["# ReportingDateRange\n\nStandard date ranges used in report generation.\n\n| Enums ||\n|------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| `REPORTING_DATE_RANGE_UNSPECIFIED` | Unspecified date range. |\n| `CUSTOM` | A custom date range specified using the `startDate` and `endDate` fields. This is the default if no ReportingDateRange is provided. |\n| `TODAY` | Current day. |\n| `YESTERDAY` | Yesterday. |\n| `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\\]. |\n| `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\\]. |\n| `LAST_7_DAYS` | Last 7 days, excluding current day. |\n| `LAST_30_DAYS` | Last 30 days, excluding current day. |"]]