Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::CohortsRange.
Configures the extended reporting date range for a cohort report. Specifies
an offset duration to follow the cohorts over.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#end_offset
defend_offset()->::Integer
Returns
(::Integer) — Required. endOffset specifies the end date of the extended reporting date
range for a cohort report. endOffset can be any positive integer but is
commonly set to 5 to 10 so that reports contain data on the cohort for the
next several granularity time periods.
If granularity is DAILY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset days.
If granularity is WEEKLY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset * 7 days.
If granularity is MONTHLY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset * 30 days.
#end_offset=
defend_offset=(value)->::Integer
Parameter
value (::Integer) — Required. endOffset specifies the end date of the extended reporting date
range for a cohort report. endOffset can be any positive integer but is
commonly set to 5 to 10 so that reports contain data on the cohort for the
next several granularity time periods.
If granularity is DAILY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset days.
If granularity is WEEKLY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset * 7 days.
If granularity is MONTHLY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset * 30 days.
Returns
(::Integer) — Required. endOffset specifies the end date of the extended reporting date
range for a cohort report. endOffset can be any positive integer but is
commonly set to 5 to 10 so that reports contain data on the cohort for the
next several granularity time periods.
If granularity is DAILY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset days.
If granularity is WEEKLY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset * 7 days.
If granularity is MONTHLY, the endDate of the extended reporting date
range is endDate of the cohort plus endOffset * 30 days.
(::Integer) — startOffset specifies the start date of the extended reporting date range
for a cohort report. startOffset is commonly set to 0 so that reports
contain data from the acquisition of the cohort forward.
If granularity is DAILY, the startDate of the extended reporting date
range is startDate of the cohort plus startOffset days.
If granularity is WEEKLY, the startDate of the extended reporting
date range is startDate of the cohort plus startOffset * 7 days.
If granularity is MONTHLY, the startDate of the extended reporting
date range is startDate of the cohort plus startOffset * 30 days.
#start_offset=
defstart_offset=(value)->::Integer
Parameter
value (::Integer) — startOffset specifies the start date of the extended reporting date range
for a cohort report. startOffset is commonly set to 0 so that reports
contain data from the acquisition of the cohort forward.
If granularity is DAILY, the startDate of the extended reporting date
range is startDate of the cohort plus startOffset days.
If granularity is WEEKLY, the startDate of the extended reporting
date range is startDate of the cohort plus startOffset * 7 days.
If granularity is MONTHLY, the startDate of the extended reporting
date range is startDate of the cohort plus startOffset * 30 days.
Returns
(::Integer) — startOffset specifies the start date of the extended reporting date range
for a cohort report. startOffset is commonly set to 0 so that reports
contain data from the acquisition of the cohort forward.
If granularity is DAILY, the startDate of the extended reporting date
range is startDate of the cohort plus startOffset days.
If granularity is WEEKLY, the startDate of the extended reporting
date range is startDate of the cohort plus startOffset * 7 days.
If granularity is MONTHLY, the startDate of the extended reporting
date range is startDate of the cohort plus startOffset * 30 days.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::CohortsRange (v0.4.3)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.3 (latest)](/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-CohortsRange)\n- [0.4.2](/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-CohortsRange) \nReference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::CohortsRange.\n\nConfigures the extended reporting date range for a cohort report. Specifies\nan offset duration to follow the cohorts over. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #end_offset\n\n def end_offset() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Required. `endOffset` specifies the end date of the extended reporting date range for a cohort report. `endOffset` can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods.\n\n\n If `granularity` is `DAILY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset` days.\n\n If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset * 7` days.\n\n If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset * 30` days.\n\n### #end_offset=\n\n def end_offset=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Required. `endOffset` specifies the end date of the extended reporting date range for a cohort report. `endOffset` can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods.\n\n\n If `granularity` is `DAILY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset` days.\n\n If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset * 7` days.\n\n If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date\nrange is `endDate` of the cohort plus `endOffset * 30` days. \n**Returns**\n\n- (::Integer) --- Required. `endOffset` specifies the end date of the extended reporting date range for a cohort report. `endOffset` can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods.\n\n\n If `granularity` is `DAILY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset` days.\n\n If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset * 7` days.\n\n If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date\n range is `endDate` of the cohort plus `endOffset * 30` days.\n\n### #granularity\n\n def granularity() -\u003e ::Google::Analytics::Data::V1beta::CohortsRange::Granularity\n\n**Returns**\n\n- ([::Google::Analytics::Data::V1beta::CohortsRange::Granularity](./Google-Analytics-Data-V1beta-CohortsRange-Granularity)) --- Required. The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report.\n\n### #granularity=\n\n def granularity=(value) -\u003e ::Google::Analytics::Data::V1beta::CohortsRange::Granularity\n\n**Parameter**\n\n- **value** ([::Google::Analytics::Data::V1beta::CohortsRange::Granularity](./Google-Analytics-Data-V1beta-CohortsRange-Granularity)) --- Required. The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report. \n**Returns**\n\n- ([::Google::Analytics::Data::V1beta::CohortsRange::Granularity](./Google-Analytics-Data-V1beta-CohortsRange-Granularity)) --- Required. The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report.\n\n### #start_offset\n\n def start_offset() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- `startOffset` specifies the start date of the extended reporting date range for a cohort report. `startOffset` is commonly set to 0 so that reports contain data from the acquisition of the cohort forward.\n\n\n If `granularity` is `DAILY`, the `startDate` of the extended reporting date\n range is `startDate` of the cohort plus `startOffset` days.\n\n If `granularity` is `WEEKLY`, the `startDate` of the extended reporting\n date range is `startDate` of the cohort plus `startOffset * 7` days.\n\n If `granularity` is `MONTHLY`, the `startDate` of the extended reporting\n date range is `startDate` of the cohort plus `startOffset * 30` days.\n\n### #start_offset=\n\n def start_offset=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- `startOffset` specifies the start date of the extended reporting date range for a cohort report. `startOffset` is commonly set to 0 so that reports contain data from the acquisition of the cohort forward.\n\n\n If `granularity` is `DAILY`, the `startDate` of the extended reporting date\n range is `startDate` of the cohort plus `startOffset` days.\n\n If `granularity` is `WEEKLY`, the `startDate` of the extended reporting\n date range is `startDate` of the cohort plus `startOffset * 7` days.\n\n If `granularity` is `MONTHLY`, the `startDate` of the extended reporting\ndate range is `startDate` of the cohort plus `startOffset * 30` days. \n**Returns**\n\n- (::Integer) --- `startOffset` specifies the start date of the extended reporting date range for a cohort report. `startOffset` is commonly set to 0 so that reports contain data from the acquisition of the cohort forward.\n\n\n If `granularity` is `DAILY`, the `startDate` of the extended reporting date\n range is `startDate` of the cohort plus `startOffset` days.\n\n If `granularity` is `WEEKLY`, the `startDate` of the extended reporting\n date range is `startDate` of the cohort plus `startOffset * 7` days.\n\n If `granularity` is `MONTHLY`, the `startDate` of the extended reporting\n date range is `startDate` of the cohort plus `startOffset * 30` days."]]