Class: Google::Apis::AnalyticsdataV1beta::RunReportRequest
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::RunReportRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
The request to generate a report.
Instance Attribute Summary collapse
-
#cohort_spec ⇒ Google::Apis::AnalyticsdataV1beta::CohortSpec
The specification of cohorts for a cohort report.
-
#currency_code ⇒ String
A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-
#date_ranges ⇒ Array<Google::Apis::AnalyticsdataV1beta::DateRange>
Date ranges of data to read.
-
#dimension_filter ⇒ Google::Apis::AnalyticsdataV1beta::FilterExpression
To express dimension or metric filters.
-
#dimensions ⇒ Array<Google::Apis::AnalyticsdataV1beta::Dimension>
The dimensions requested and displayed.
-
#keep_empty_rows ⇒ Boolean
(also: #keep_empty_rows?)
If false or unspecified, each row with all metrics equal to 0 will not be returned.
-
#limit ⇒ Fixnum
The number of rows to return.
-
#metric_aggregations ⇒ Array<String>
Aggregation of metrics.
-
#metric_filter ⇒ Google::Apis::AnalyticsdataV1beta::FilterExpression
To express dimension or metric filters.
-
#metrics ⇒ Array<Google::Apis::AnalyticsdataV1beta::Metric>
The metrics requested and displayed.
-
#offset ⇒ Fixnum
The row count of the start row.
-
#order_bys ⇒ Array<Google::Apis::AnalyticsdataV1beta::OrderBy>
Specifies how rows are ordered in the response.
-
#property ⇒ String
A Google Analytics GA4 property identifier whose events are tracked.
-
#return_property_quota ⇒ Boolean
(also: #return_property_quota?)
Toggles whether to return the current state of this Analytics Property's quota.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RunReportRequest
constructor
A new instance of RunReportRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RunReportRequest
Returns a new instance of RunReportRequest.
2331 2332 2333 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2331 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cohort_spec ⇒ Google::Apis::AnalyticsdataV1beta::CohortSpec
The specification of cohorts for a cohort report. Cohort reports create a time
series of user retention for the cohort. For example, you could select the
cohort of users that were acquired in the first week of September and follow
that cohort for the next six weeks. Selecting the users acquired in the first
week of September cohort is specified in the cohort object. Following that
cohort for the next six weeks is specified in the cohortsRange object. For
examples, see Cohort Report Examples. The report
response could show a weekly time series where say your app has retained 60%
of this cohort after three weeks and 25% of this cohort after six weeks. These
two percentages can be calculated by the metric cohortActiveUsers/
cohortTotalUsers and will be separate rows in the report.
Corresponds to the JSON property cohortSpec
2228 2229 2230 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2228 def cohort_spec @cohort_spec end |
#currency_code ⇒ String
A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field
is empty, the report uses the property's default currency.
Corresponds to the JSON property currencyCode
2234 2235 2236 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2234 def currency_code @currency_code end |
#date_ranges ⇒ Array<Google::Apis::AnalyticsdataV1beta::DateRange>
Date ranges of data to read. If multiple date ranges are requested, each
response row will contain a zero based date range index. If two date ranges
overlap, the event data for the overlapping days is included in the response
rows for both date ranges. In a cohort request, this dateRanges must be
unspecified.
Corresponds to the JSON property dateRanges
2243 2244 2245 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2243 def date_ranges @date_ranges end |
#dimension_filter ⇒ Google::Apis::AnalyticsdataV1beta::FilterExpression
To express dimension or metric filters. The fields in the same
FilterExpression need to be either all dimensions or all metrics.
Corresponds to the JSON property dimensionFilter
2249 2250 2251 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2249 def dimension_filter @dimension_filter end |
#dimensions ⇒ Array<Google::Apis::AnalyticsdataV1beta::Dimension>
The dimensions requested and displayed.
Corresponds to the JSON property dimensions
2254 2255 2256 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2254 def dimensions @dimensions end |
#keep_empty_rows ⇒ Boolean Also known as: keep_empty_rows?
If false or unspecified, each row with all metrics equal to 0 will not be
returned. If true, these rows will be returned if they are not separately
removed by a filter. Regardless of this keep_empty_rows setting, only data
recorded by the Google Analytics (GA4) property can be displayed in a report.
For example if a property never logs a purchase event, then a query for the
eventName dimension and eventCount metric will not have a row eventName: "
purchase" and eventCount: 0.
Corresponds to the JSON property keepEmptyRows
2265 2266 2267 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2265 def keep_empty_rows @keep_empty_rows end |
#limit ⇒ Fixnum
The number of rows to return. If unspecified, 10,000 rows are returned. The
API returns a maximum of 250,000 rows per request, no matter how many you ask
for. limit must be positive. The API can also return fewer rows than the
requested limit, if there aren't as many dimension values as the limit.
For instance, there are fewer than 300 possible values for the dimension
country, so when reporting on only country, you can't get more than 300
rows, even if you set limit to a higher value. To learn more about this
pagination parameter, see Pagination.
Corresponds to the JSON property limit
2279 2280 2281 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2279 def limit @limit end |
#metric_aggregations ⇒ Array<String>
Aggregation of metrics. Aggregated metric values will be shown in rows where
the dimension_values are set to "RESERVED_(MetricAggregation)".
Corresponds to the JSON property metricAggregations
2285 2286 2287 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2285 def metric_aggregations @metric_aggregations end |
#metric_filter ⇒ Google::Apis::AnalyticsdataV1beta::FilterExpression
To express dimension or metric filters. The fields in the same
FilterExpression need to be either all dimensions or all metrics.
Corresponds to the JSON property metricFilter
2291 2292 2293 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2291 def metric_filter @metric_filter end |
#metrics ⇒ Array<Google::Apis::AnalyticsdataV1beta::Metric>
The metrics requested and displayed.
Corresponds to the JSON property metrics
2296 2297 2298 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2296 def metrics @metrics end |
#offset ⇒ Fixnum
The row count of the start row. The first row is counted as row 0. When paging,
the first request does not specify offset; or equivalently, sets offset to 0;
the first request returns the first limit of rows. The second request sets
offset to the limit of the first request; the second request returns the
second limit of rows. To learn more about this pagination parameter, see
Pagination.
Corresponds to the JSON property offset
2307 2308 2309 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2307 def offset @offset end |
#order_bys ⇒ Array<Google::Apis::AnalyticsdataV1beta::OrderBy>
Specifies how rows are ordered in the response.
Corresponds to the JSON property orderBys
2312 2313 2314 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2312 def order_bys @order_bys end |
#property ⇒ String
A Google Analytics GA4 property identifier whose events are tracked. Specified
in the URL path and not the body. To learn more, see where to find your
Property ID. Within a batch request, this property should either be
unspecified or consistent with the batch-level property. Example: properties/
1234
Corresponds to the JSON property property
2322 2323 2324 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2322 def property @property end |
#return_property_quota ⇒ Boolean Also known as: return_property_quota?
Toggles whether to return the current state of this Analytics Property's quota.
Quota is returned in PropertyQuota.
Corresponds to the JSON property returnPropertyQuota
2328 2329 2330 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2328 def return_property_quota @return_property_quota end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2336 def update!(**args) @cohort_spec = args[:cohort_spec] if args.key?(:cohort_spec) @currency_code = args[:currency_code] if args.key?(:currency_code) @date_ranges = args[:date_ranges] if args.key?(:date_ranges) @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter) @dimensions = args[:dimensions] if args.key?(:dimensions) @keep_empty_rows = args[:keep_empty_rows] if args.key?(:keep_empty_rows) @limit = args[:limit] if args.key?(:limit) @metric_aggregations = args[:metric_aggregations] if args.key?(:metric_aggregations) @metric_filter = args[:metric_filter] if args.key?(:metric_filter) @metrics = args[:metrics] if args.key?(:metrics) @offset = args[:offset] if args.key?(:offset) @order_bys = args[:order_bys] if args.key?(:order_bys) @property = args[:property] if args.key?(:property) @return_property_quota = args[:return_property_quota] if args.key?(:return_property_quota) end |