Returns a specific date in the advertiser’s time zone. Often specified as a date
parameter in for_date_range().
Syntax
date(year, month, day)
-
year
: 4 digits.
For example, 2012 -
month
: 2 digits.
For example, 01 or 12 -
date
: 2 digits.
For example, 01 or 30
Examples
- If today is October 1, 2015 the following function returns Oct 1, 2015 when viewed from an advertiser with a US time zone:
date(2015, 10, 01)
-
The following function returns the number of clicks on October 1:
Clicks.for_date_range(date(2015, 10, 01))