Class: Google::Apis::DfareportingV4::CustomViewabilityMetric
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::CustomViewabilityMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Custom Viewability Metric
Instance Attribute Summary collapse
-
#configuration ⇒ Google::Apis::DfareportingV4::CustomViewabilityMetricConfiguration
The attributes, like playtime and percent onscreen, that define the Custom Viewability Metric.
-
#id ⇒ Fixnum
ID of the custom viewability metric.
-
#name ⇒ String
Name of the custom viewability metric.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomViewabilityMetric
constructor
A new instance of CustomViewabilityMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomViewabilityMetric
Returns a new instance of CustomViewabilityMetric.
5137 5138 5139 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#configuration ⇒ Google::Apis::DfareportingV4::CustomViewabilityMetricConfiguration
The attributes, like playtime and percent onscreen, that define the Custom
Viewability Metric.
Corresponds to the JSON property configuration
5125 5126 5127 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5125 def configuration @configuration end |
#id ⇒ Fixnum
ID of the custom viewability metric.
Corresponds to the JSON property id
5130 5131 5132 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5130 def id @id end |
#name ⇒ String
Name of the custom viewability metric.
Corresponds to the JSON property name
5135 5136 5137 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5135 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5142 5143 5144 5145 5146 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5142 def update!(**args) @configuration = args[:configuration] if args.key?(:configuration) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) end |