v1.4 of the AdSense Management API is now deprecated. This version will stop returning data on October 12, 2021. Please migrate to v2 as soon as possible.

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.