ReportingDateRange

  • This content describes standard date ranges used for report generation.

  • The date ranges are represented by enums such as CUSTOM, TODAY, YESTERDAY, MONTH_TO_DATE, YEAR_TO_DATE, LAST_7_DAYS, and LAST_30_DAYS.

  • CUSTOM is the default date range when none is provided and is specified using startDate and endDate fields.

  • Each enum represents a specific period, such as the current day, yesterday, the last 7 or 30 days excluding the current day, or periods from the start of the current month or year to the current day.

  • REPORTING_DATE_RANGE_UNSPECIFIED is an enum representing an unspecified date range.

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.