Module: Google::Ads::AdManager::V1::Report::DateRange::RelativeDateRange

Defined in:
proto_docs/google/ads/admanager/v1/report_service.rb

Overview

Options for relative date ranges.

Constant Summary collapse

RELATIVE_DATE_RANGE_UNSPECIFIED =

Default value. This value is unused.

0
TODAY =

The date the report is run.

1
YESTERDAY =

The date a day before the date that the report is run.

2
THIS_WEEK =

The full week in which this report is run. Could include dates in the future.

3
THIS_WEEK_TO_DATE =

From the beginning of the calendar week (Monday to Sunday) in which the up to and including the day the report is run.

29
THIS_MONTH =

The full month in which this report is run. Could include dates in the future.

4
THIS_MONTH_TO_DATE =

From the beginning of the calendar month in which the report is run, to up to and including the day the report is run.

26
THIS_QUARTER =

The full quarter in which this report is run. Could include dates in the future.

5
THIS_QUARTER_TO_DATE =

From the beginning of the calendar quarter in which the report is run, up to and including the day the report is run.

27
THIS_YEAR =

The full year in which this report is run. Could include dates in the future.

6
THIS_YEAR_TO_DATE =

From the beginning of the calendar year in which the report is run, to up to and including the day the report is run.

28
LAST_WEEK =

The entire previous calendar week, Monday to Sunday (inclusive), preceding the calendar week the report is run.

7
LAST_MONTH =

The entire previous calendar month preceding the calendar month the report is run.

8
LAST_QUARTER =

The entire previous calendar quarter preceding the calendar quarter the report is run.

9
LAST_YEAR =

The entire previous calendar year preceding the calendar year the report is run.

10
LAST_7_DAYS =

The 7 days preceding the day the report is run.

11
LAST_30_DAYS =

The 30 days preceding the day the report is run.

12
LAST_60_DAYS =

The 60 days preceding the day the report is run.

13
LAST_90_DAYS =

The 90 days preceding the day the report is run.

14
LAST_180_DAYS =

The 180 days preceding the day the report is run.

15
LAST_360_DAYS =

The 360 days preceding the day the report is run.

16
LAST_365_DAYS =

The 365 days preceding the day the report is run.

17
LAST_3_MONTHS =

The entire previous 3 calendar months preceding the calendar month the report is run.

18
LAST_6_MONTHS =

The entire previous 6 calendar months preceding the calendar month the report is run.

19
LAST_12_MONTHS =

The entire previous 6 calendar months preceding the calendar month the report is run.

20
ALL_AVAILABLE =

From 3 years before the report is run, to the day before the report is run, inclusive.

21
PREVIOUS_PERIOD =

Only valid when used in the comparison_date_range field. The complete period preceding the date period provided in date_range.

In the case where date_range is a FixedDateRange of N days, this will be a period of N days where the end date is the date preceding the start date of the date_range.

In the case where date_range is a RelativeDateRange, this will be a period of the same time frame preceding the date_range. In the case where the date_range does not capture the full period because a report is run in the middle of that period, this will still be the full preceding period. For example, if date_range is THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but PREVIOUS_PERIOD will be Monday - Sunday.

22
SAME_PERIOD_PREVIOUS_YEAR =

Only valid when used in the comparison_date_range field. The period starting 1 year prior to the date period provided in date_range.

In the case where date_range is a FixedDateRange, this will be a date range starting 1 year prior to the date_range start date and ending 1 year prior to the date_range end date.

In the case where date_range is a RelativeDateRange, this will be a period of the same time frame exactly 1 year prior to the date_range. In the case where the date_range does not capture the full period because a report is run in the middle of that period, this will still be the full period 1 year prior. For example, if date range is THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - Sunday.

24