Class: Google::Apis::DisplayvideoV1::ActiveViewVideoViewabilityMetricConfig
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::ActiveViewVideoViewabilityMetricConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/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.
75 76 77 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 75 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
45 46 47 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 45 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
53 54 55 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 53 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
61 62 63 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 61 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
67 68 69 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 67 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
73 74 75 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 73 def minimum_volume @minimum_volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
80 81 82 83 84 85 86 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 80 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 |