# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::RunReportRequest (v0.4.3)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.4.3 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RunReportRequest)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-RunReportRequest)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::RunReportRequest.

The request to generate a report.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cohort_spec

    def cohort_spec() -> ::Google::Analytics::Data::V1beta::CohortSpec

**Returns**

- ([::Google::Analytics::Data::V1beta::CohortSpec](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-CohortSpec)) --- Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present.

### #cohort_spec=

    def cohort_spec=(value) -> ::Google::Analytics::Data::V1beta::CohortSpec

**Parameter**

- **value** ([::Google::Analytics::Data::V1beta::CohortSpec](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-CohortSpec)) --- Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present.
**Returns**

- ([::Google::Analytics::Data::V1beta::CohortSpec](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-CohortSpec)) --- Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present.

### #currency_code

    def currency_code() -> ::String

**Returns**

- (::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.

### #currency_code=

    def currency_code=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #date_ranges

    def date_ranges() -> ::Array<::Google::Analytics::Data::V1beta::DateRange>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::DateRange](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-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.

### #date_ranges=

    def date_ranges=(value) -> ::Array<::Google::Analytics::Data::V1beta::DateRange>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::DateRange](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-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.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::DateRange](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-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.

### #dimension_filter

    def dimension_filter() -> ::Google::Analytics::Data::V1beta::FilterExpression

**Returns**

- ([::Google::Analytics::Data::V1beta::FilterExpression](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-FilterExpression)) --- Dimension filters allow you to ask for only specific dimension values in the report. To learn more, see [Fundamentals of Dimension
  Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter.

### #dimension_filter=

    def dimension_filter=(value) -> ::Google::Analytics::Data::V1beta::FilterExpression

**Parameter**

- **value** ([::Google::Analytics::Data::V1beta::FilterExpression](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-FilterExpression)) --- Dimension filters allow you to ask for only specific dimension values in the report. To learn more, see [Fundamentals of Dimension
  Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter.
**Returns**

- ([::Google::Analytics::Data::V1beta::FilterExpression](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-FilterExpression)) --- Dimension filters allow you to ask for only specific dimension values in the report. To learn more, see [Fundamentals of Dimension
  Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter.

### #dimensions

    def dimensions() -> ::Array<::Google::Analytics::Data::V1beta::Dimension>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Dimension)\>) --- The dimensions requested and displayed.

### #dimensions=

    def dimensions=(value) -> ::Array<::Google::Analytics::Data::V1beta::Dimension>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Dimension)\>) --- The dimensions requested and displayed.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Dimension)\>) --- The dimensions requested and displayed.

### #keep_empty_rows

    def keep_empty_rows() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #keep_empty_rows=

    def keep_empty_rows=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #limit

    def limit() -> ::Integer

**Returns**

- (::Integer) --- The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).

### #limit=

    def limit=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
**Returns**

- (::Integer) --- The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).

### #metric_aggregations

    def metric_aggregations() -> ::Array<::Google::Analytics::Data::V1beta::MetricAggregation>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::MetricAggregation](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MetricAggregation)\>) --- Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

### #metric_aggregations=

    def metric_aggregations=(value) -> ::Array<::Google::Analytics::Data::V1beta::MetricAggregation>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::MetricAggregation](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MetricAggregation)\>) --- Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::MetricAggregation](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MetricAggregation)\>) --- Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

### #metric_filter

    def metric_filter() -> ::Google::Analytics::Data::V1beta::FilterExpression

**Returns**

- ([::Google::Analytics::Data::V1beta::FilterExpression](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-FilterExpression)) --- The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

### #metric_filter=

    def metric_filter=(value) -> ::Google::Analytics::Data::V1beta::FilterExpression

**Parameter**

- **value** ([::Google::Analytics::Data::V1beta::FilterExpression](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-FilterExpression)) --- The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.
**Returns**

- ([::Google::Analytics::Data::V1beta::FilterExpression](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-FilterExpression)) --- The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

### #metrics

    def metrics() -> ::Array<::Google::Analytics::Data::V1beta::Metric>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Metric](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Metric)\>) --- The metrics requested and displayed.

### #metrics=

    def metrics=(value) -> ::Array<::Google::Analytics::Data::V1beta::Metric>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::Metric](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Metric)\>) --- The metrics requested and displayed.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Metric](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Metric)\>) --- The metrics requested and displayed.

### #offset

    def offset() -> ::Integer

**Returns**

- (::Integer) --- 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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).

### #offset=

    def offset=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
**Returns**

- (::Integer) --- 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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).

### #order_bys

    def order_bys() -> ::Array<::Google::Analytics::Data::V1beta::OrderBy>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::OrderBy](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-OrderBy)\>) --- Specifies how rows are ordered in the response.

### #order_bys=

    def order_bys=(value) -> ::Array<::Google::Analytics::Data::V1beta::OrderBy>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::OrderBy](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-OrderBy)\>) --- Specifies how rows are ordered in the response.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::OrderBy](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-OrderBy)\>) --- Specifies how rows are ordered in the response.

### #property

    def property() -> ::String

**Returns**

- (::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](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Within a batch request, this property should either be unspecified or consistent with the batch-level property.


  Example: properties/1234

### #property=

    def property=(value) -> ::String

**Parameter**

- **value** (::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](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Within a batch request, this property should either be unspecified or consistent with the batch-level property.


  Example: properties/1234
**Returns**

- (::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](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Within a batch request, this property should either be unspecified or consistent with the batch-level property.


  Example: properties/1234

### #return_property_quota

    def return_property_quota() -> ::Boolean

**Returns**

- (::Boolean) --- Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RunReportRequest#PropertyQuota).

### #return_property_quota=

    def return_property_quota=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RunReportRequest#PropertyQuota).
**Returns**

- (::Boolean) --- Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RunReportRequest#PropertyQuota).