Reference documentation and code samples for the Google Analytics Data V1alpha API class Google::Analytics::Data::V1alpha::DateRange.
A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#end_date
def end_date() -> ::String
Returns
-
(::String) — The inclusive end date for the query in the format
YYYY-MM-DD
. Cannot be beforestart_date
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the property's reporting time zone.
#end_date=
def end_date=(value) -> ::String
Parameter
-
value (::String) — The inclusive end date for the query in the format
YYYY-MM-DD
. Cannot be beforestart_date
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the property's reporting time zone.
Returns
-
(::String) — The inclusive end date for the query in the format
YYYY-MM-DD
. Cannot be beforestart_date
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the property's reporting time zone.
#name
def name() -> ::String
Returns
-
(::String) — Assigns a name to this date range. The dimension
dateRange
is valued to this name in a report response. If set, cannot begin withdate_range_
orRESERVED_
. If not set, date ranges are named by their zero based index in the request:date_range_0
,date_range_1
, etc.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Assigns a name to this date range. The dimension
dateRange
is valued to this name in a report response. If set, cannot begin withdate_range_
orRESERVED_
. If not set, date ranges are named by their zero based index in the request:date_range_0
,date_range_1
, etc.
Returns
-
(::String) — Assigns a name to this date range. The dimension
dateRange
is valued to this name in a report response. If set, cannot begin withdate_range_
orRESERVED_
. If not set, date ranges are named by their zero based index in the request:date_range_0
,date_range_1
, etc.
#start_date
def start_date() -> ::String
Returns
-
(::String) — The inclusive start date for the query in the format
YYYY-MM-DD
. Cannot be afterend_date
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the property's reporting time zone.
#start_date=
def start_date=(value) -> ::String
Parameter
-
value (::String) — The inclusive start date for the query in the format
YYYY-MM-DD
. Cannot be afterend_date
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the property's reporting time zone.
Returns
-
(::String) — The inclusive start date for the query in the format
YYYY-MM-DD
. Cannot be afterend_date
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the property's reporting time zone.