Class: Google::Apis::AdmobV1beta::ReportRow

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/representations.rb

Overview

A row of the returning report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportRow

Returns a new instance of ReportRow.



1710
1711
1712
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1710

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dimension_valuesHash<String,Google::Apis::AdmobV1beta::ReportRowDimensionValue>

Map of dimension values in a row, with keys as enum name of the dimensions. Corresponds to the JSON property dimensionValues



1702
1703
1704
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1702

def dimension_values
  @dimension_values
end

#metric_valuesHash<String,Google::Apis::AdmobV1beta::ReportRowMetricValue>

Map of metric values in a row, with keys as enum name of the metrics. If a metric being requested has no value returned, the map will not include it. Corresponds to the JSON property metricValues



1708
1709
1710
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1708

def metric_values
  @metric_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1715
1716
1717
1718
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1715

def update!(**args)
  @dimension_values = args[:dimension_values] if args.key?(:dimension_values)
  @metric_values = args[:metric_values] if args.key?(:metric_values)
end