dateRange property

DateRange? dateRange
getter/setter pair

This is used for FIRST_VISIT_DATE cohort, the cohort selects users whose first visit date is between start date and end date defined in the DateRange.

The date ranges should be aligned for cohort requests. If the request contains ga:cohortNthDay it should be exactly one day long, if ga:cohortNthWeek it should be aligned to the week boundary (starting at Sunday and ending Saturday), and for ga:cohortNthMonth the date range should be aligned to the month (starting at the first and ending on the last day of the month). For LTV requests there are no such restrictions. You do not need to supply a date range for the reportsRequest.dateRanges field.

Implementation

DateRange? dateRange;