Class: Google::Apis::DisplayvideoV3::ActiveViewVideoViewabilityMetricConfig
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::ActiveViewVideoViewabilityMetricConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Configuration for custom Active View video viewability metrics.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Required.
-
#minimum_duration ⇒ String
The minimum visible video duration required (in seconds) in order for an impression to be recorded.
-
#minimum_quartile ⇒ String
The minimum visible video duration required, based on the video quartiles, in order for an impression to be recorded.
-
#minimum_viewability ⇒ String
Required.
-
#minimum_volume ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActiveViewVideoViewabilityMetricConfig
constructor
A new instance of ActiveViewVideoViewabilityMetricConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActiveViewVideoViewabilityMetricConfig
Returns a new instance of ActiveViewVideoViewabilityMetricConfig.
62 63 64 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 62 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Required. The display name of the custom metric.
Corresponds to the JSON property displayName
32 33 34 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 32 def display_name @display_name end |
#minimum_duration ⇒ String
The minimum visible video duration required (in seconds) in order for an
impression to be recorded. You must specify minimum_duration, minimum_quartile
or both. If both are specified, an impression meets the metric criteria if
either requirement is met (whichever happens first).
Corresponds to the JSON property minimumDuration
40 41 42 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 40 def minimum_duration @minimum_duration end |
#minimum_quartile ⇒ String
The minimum visible video duration required, based on the video quartiles, in
order for an impression to be recorded. You must specify minimum_duration,
minimum_quartile or both. If both are specified, an impression meets the
metric criteria if either requirement is met (whichever happens first).
Corresponds to the JSON property minimumQuartile
48 49 50 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 48 def minimum_quartile @minimum_quartile end |
#minimum_viewability ⇒ String
Required. The minimum percentage of the video ad's pixels visible on the
screen in order for an impression to be recorded.
Corresponds to the JSON property minimumViewability
54 55 56 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 54 def minimum_viewability @minimum_viewability end |
#minimum_volume ⇒ String
Required. The minimum percentage of the video ad's volume required in order
for an impression to be recorded.
Corresponds to the JSON property minimumVolume
60 61 62 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 60 def minimum_volume @minimum_volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
67 68 69 70 71 72 73 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 67 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @minimum_duration = args[:minimum_duration] if args.key?(:minimum_duration) @minimum_quartile = args[:minimum_quartile] if args.key?(:minimum_quartile) @minimum_viewability = args[:minimum_viewability] if args.key?(:minimum_viewability) @minimum_volume = args[:minimum_volume] if args.key?(:minimum_volume) end |