class Google::Apis::YoutubeAnalyticsV2::QueryResponse

Response message for TargetedQueriesService.Query.

Attributes

column_headers[RW]

This value specifies information about the data returned in the `rows` fields. Each item in the `columnHeaders` list identifies a field returned in the `rows` value, which contains a list of comma-delimited data. The `columnHeaders` list will begin with the dimensions specified in the API request, which will be followed by the metrics specified in the API request. The order of both dimensions and metrics will match the ordering in the API request. For example, if the API request contains the parameters `dimensions=ageGroup,gender& metrics=viewerPercentage`, the API response will return columns in this order: `ageGroup`, `gender`, `viewerPercentage`. Corresponds to the JSON property `columnHeaders` @return [Array<Google::Apis::YoutubeAnalyticsV2::ResultTableColumnHeader>]

errors[RW]

Request Error information. The presence of an error field signals that the operation has failed. Corresponds to the JSON property `errors` @return [Google::Apis::YoutubeAnalyticsV2::Errors]

kind[RW]

This value specifies the type of data included in the API response. For the query method, the kind property value will be `youtubeAnalytics#resultTable`. Corresponds to the JSON property `kind` @return [String]

rows[RW]

The list contains all rows of the result table. Each item in the list is an array that contains comma-delimited data corresponding to a single row of data. The order of the comma-delimited data fields will match the order of the columns listed in the `columnHeaders` field. If no data is available for the given query, the `rows` element will be omitted from the response. The response for a query with the `day` dimension will not contain rows for the most recent days. Corresponds to the JSON property `rows` @return [Array<Array<Object>>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_analytics_v2/classes.rb, line 460
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_analytics_v2/classes.rb, line 465
def update!(**args)
  @column_headers = args[:column_headers] if args.key?(:column_headers)
  @errors = args[:errors] if args.key?(:errors)
  @kind = args[:kind] if args.key?(:kind)
  @rows = args[:rows] if args.key?(:rows)
end