Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::DateRange (v0.4.3)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::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
defend_date()->::String
Returns
-
(::String) — The inclusive end date for the query in the format
YYYY-MM-DD. Cannot be beforestart_date. The formatNdaysAgo,yesterday, ortodayis also accepted, and in that case, the date is inferred based on the property's reporting time zone.
#end_date=
defend_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, ortodayis 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, ortodayis also accepted, and in that case, the date is inferred based on the property's reporting time zone.
#name
defname()->::String
Returns
-
(::String) — Assigns a name to this date range. The dimension
dateRangeis 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=
defname=(value)->::String
Parameter
-
value (::String) — Assigns a name to this date range. The dimension
dateRangeis 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
dateRangeis 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
defstart_date()->::String
Returns
-
(::String) — The inclusive start date for the query in the format
YYYY-MM-DD. Cannot be afterend_date. The formatNdaysAgo,yesterday, ortodayis also accepted, and in that case, the date is inferred based on the property's reporting time zone.
#start_date=
defstart_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, ortodayis 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, ortodayis also accepted, and in that case, the date is inferred based on the property's reporting time zone.