Class: Google::Analytics::Data::V1alpha::CohortsRange
- Inherits:
-
Object
- Object
- Google::Analytics::Data::V1alpha::CohortsRange
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/analytics/data/v1alpha/data.rb
Overview
Configures the extended reporting date range for a cohort report. Specifies an offset duration to follow the cohorts over.
Defined Under Namespace
Modules: Granularity
Instance Attribute Summary collapse
-
#end_offset ⇒ ::Integer
endOffset
specifies the end date of the extended reporting date range for a cohort report. -
#granularity ⇒ ::Google::Analytics::Data::V1alpha::CohortsRange::Granularity
The granularity used to interpret the
startOffset
andendOffset
for the extended reporting date range for a cohort report. -
#start_offset ⇒ ::Integer
startOffset
specifies the start date of the extended reporting date range for a cohort report.
Instance Attribute Details
#end_offset ⇒ ::Integer
Returns 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.
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 |
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 550 class CohortsRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The granularity used to interpret the `startOffset` and `endOffset` for the # extended reporting date range for a cohort report. module Granularity # Should never be specified. GRANULARITY_UNSPECIFIED = 0 # Daily granularity. Commonly used if the cohort's `dateRange` is a single # day and the request contains `cohortNthDay`. DAILY = 1 # Weekly granularity. Commonly used if the cohort's `dateRange` is a week # in duration (starting on Sunday and ending on Saturday) and the request # contains `cohortNthWeek`. WEEKLY = 2 # Monthly granularity. Commonly used if the cohort's `dateRange` is a month # in duration and the request contains `cohortNthMonth`. MONTHLY = 3 end end |
#granularity ⇒ ::Google::Analytics::Data::V1alpha::CohortsRange::Granularity
Returns The granularity used to interpret the startOffset
and endOffset
for the
extended reporting date range for a cohort report.
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 |
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 550 class CohortsRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The granularity used to interpret the `startOffset` and `endOffset` for the # extended reporting date range for a cohort report. module Granularity # Should never be specified. GRANULARITY_UNSPECIFIED = 0 # Daily granularity. Commonly used if the cohort's `dateRange` is a single # day and the request contains `cohortNthDay`. DAILY = 1 # Weekly granularity. Commonly used if the cohort's `dateRange` is a week # in duration (starting on Sunday and ending on Saturday) and the request # contains `cohortNthWeek`. WEEKLY = 2 # Monthly granularity. Commonly used if the cohort's `dateRange` is a month # in duration and the request contains `cohortNthMonth`. MONTHLY = 3 end end |
#start_offset ⇒ ::Integer
Returns 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.
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 |
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 550 class CohortsRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The granularity used to interpret the `startOffset` and `endOffset` for the # extended reporting date range for a cohort report. module Granularity # Should never be specified. GRANULARITY_UNSPECIFIED = 0 # Daily granularity. Commonly used if the cohort's `dateRange` is a single # day and the request contains `cohortNthDay`. DAILY = 1 # Weekly granularity. Commonly used if the cohort's `dateRange` is a week # in duration (starting on Sunday and ending on Saturday) and the request # contains `cohortNthWeek`. WEEKLY = 2 # Monthly granularity. Commonly used if the cohort's `dateRange` is a month # in duration and the request contains `cohortNthMonth`. MONTHLY = 3 end end |