# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::RunPivotReportResponse (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-RunPivotReportResponse)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-RunPivotReportResponse)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::RunPivotReportResponse.

The response pivot report table corresponding to a pivot request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aggregates

    def aggregates() -> ::Array<::Google::Analytics::Data::V1beta::Row>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Row](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Row)\>) --- Aggregation of metric values. Can be totals, minimums, or maximums. The returned aggregations are controlled by the metric_aggregations in the pivot. The type of aggregation returned in each row is shown by the dimension_values which are set to "RESERVED_

### #aggregates=

    def aggregates=(value) -> ::Array<::Google::Analytics::Data::V1beta::Row>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::Row](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Row)\>) --- Aggregation of metric values. Can be totals, minimums, or maximums. The returned aggregations are controlled by the metric_aggregations in the pivot. The type of aggregation returned in each row is shown by the dimension_values which are set to "RESERVED_
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Row](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Row)\>) --- Aggregation of metric values. Can be totals, minimums, or maximums. The returned aggregations are controlled by the metric_aggregations in the pivot. The type of aggregation returned in each row is shown by the dimension_values which are set to "RESERVED_

### #dimension_headers

    def dimension_headers() -> ::Array<::Google::Analytics::Data::V1beta::DimensionHeader>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::DimensionHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionHeader)\>) --- Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.

### #dimension_headers=

    def dimension_headers=(value) -> ::Array<::Google::Analytics::Data::V1beta::DimensionHeader>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::DimensionHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionHeader)\>) --- Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::DimensionHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionHeader)\>) --- Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.

### #kind

    def kind() -> ::String

**Returns**

- (::String) --- Identifies what kind of resource this message is. This `kind` is always the fixed string "analyticsData#runPivotReport". Useful to distinguish between response types in JSON.

### #kind=

    def kind=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifies what kind of resource this message is. This `kind` is always the fixed string "analyticsData#runPivotReport". Useful to distinguish between response types in JSON.
**Returns**

- (::String) --- Identifies what kind of resource this message is. This `kind` is always the fixed string "analyticsData#runPivotReport". Useful to distinguish between response types in JSON.

### #metadata

    def metadata() -> ::Google::Analytics::Data::V1beta::ResponseMetaData

**Returns**

- ([::Google::Analytics::Data::V1beta::ResponseMetaData](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData)) --- Metadata for the report.

### #metadata=

    def metadata=(value) -> ::Google::Analytics::Data::V1beta::ResponseMetaData

**Parameter**

- **value** ([::Google::Analytics::Data::V1beta::ResponseMetaData](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData)) --- Metadata for the report.
**Returns**

- ([::Google::Analytics::Data::V1beta::ResponseMetaData](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData)) --- Metadata for the report.

### #metric_headers

    def metric_headers() -> ::Array<::Google::Analytics::Data::V1beta::MetricHeader>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::MetricHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MetricHeader)\>) --- Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.

### #metric_headers=

    def metric_headers=(value) -> ::Array<::Google::Analytics::Data::V1beta::MetricHeader>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::MetricHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MetricHeader)\>) --- Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::MetricHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MetricHeader)\>) --- Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.

### #pivot_headers

    def pivot_headers() -> ::Array<::Google::Analytics::Data::V1beta::PivotHeader>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::PivotHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-PivotHeader)\>) ---

  Summarizes the columns and rows created by a pivot. Each pivot in the
  request produces one header in the response. If we have a request like
  this:

      "pivots": [{
        "fieldNames": ["country",
          "city"]
      },
      {
        "fieldNames": "eventName"
      }]

  We will have the following `pivotHeaders` in the response:

      "pivotHeaders" : [{
        "dimensionHeaders": [{
          "dimensionValues": [
             { "value": "United Kingdom" },
             { "value": "London" }
           ]
        },
        {
          "dimensionValues": [
          { "value": "Japan" },
          { "value": "Osaka" }
          ]
        }]
      },
      {
        "dimensionHeaders": [{
          "dimensionValues": [{ "value": "session_start" }]
        },
        {
          "dimensionValues": [{ "value": "scroll" }]
        }]
      }]

### #pivot_headers=

    def pivot_headers=(value) -> ::Array<::Google::Analytics::Data::V1beta::PivotHeader>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::PivotHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-PivotHeader)\>) ---

  Summarizes the columns and rows created by a pivot. Each pivot in the
  request produces one header in the response. If we have a request like
  this:

      "pivots": [{
        "fieldNames": ["country",
          "city"]
      },
      {
        "fieldNames": "eventName"
      }]

  We will have the following `pivotHeaders` in the response:

      "pivotHeaders" : [{
        "dimensionHeaders": [{
          "dimensionValues": [
             { "value": "United Kingdom" },
             { "value": "London" }
           ]
        },
        {
          "dimensionValues": [
          { "value": "Japan" },
          { "value": "Osaka" }
          ]
        }]
      },
      {
        "dimensionHeaders": [{
          "dimensionValues": [{ "value": "session_start" }]
        },
        {
          "dimensionValues": [{ "value": "scroll" }]
        }]
      }]

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::PivotHeader](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-PivotHeader)\>) ---

  Summarizes the columns and rows created by a pivot. Each pivot in the
  request produces one header in the response. If we have a request like
  this:

      "pivots": [{
        "fieldNames": ["country",
          "city"]
      },
      {
        "fieldNames": "eventName"
      }]

  We will have the following `pivotHeaders` in the response:

      "pivotHeaders" : [{
        "dimensionHeaders": [{
          "dimensionValues": [
             { "value": "United Kingdom" },
             { "value": "London" }
           ]
        },
        {
          "dimensionValues": [
          { "value": "Japan" },
          { "value": "Osaka" }
          ]
        }]
      },
      {
        "dimensionHeaders": [{
          "dimensionValues": [{ "value": "session_start" }]
        },
        {
          "dimensionValues": [{ "value": "scroll" }]
        }]
      }]

### #property_quota

    def property_quota() -> ::Google::Analytics::Data::V1beta::PropertyQuota

**Returns**

- ([::Google::Analytics::Data::V1beta::PropertyQuota](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-PropertyQuota)) --- This Analytics Property's quota state including this request.

### #property_quota=

    def property_quota=(value) -> ::Google::Analytics::Data::V1beta::PropertyQuota

**Parameter**

- **value** ([::Google::Analytics::Data::V1beta::PropertyQuota](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-PropertyQuota)) --- This Analytics Property's quota state including this request.
**Returns**

- ([::Google::Analytics::Data::V1beta::PropertyQuota](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-PropertyQuota)) --- This Analytics Property's quota state including this request.

### #rows

    def rows() -> ::Array<::Google::Analytics::Data::V1beta::Row>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Row](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Row)\>) --- Rows of dimension value combinations and metric values in the report.

### #rows=

    def rows=(value) -> ::Array<::Google::Analytics::Data::V1beta::Row>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::Row](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Row)\>) --- Rows of dimension value combinations and metric values in the report.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::Row](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-Row)\>) --- Rows of dimension value combinations and metric values in the report.