class Google::Apis::DisplayvideoV1::ActiveViewVideoViewabilityMetricConfig

Configuration for custom Active View video viewability metrics.

Attributes

display_name[RW]

Required. The display name of the custom metric. Corresponds to the JSON property `displayName` @return [String]

minimum_duration[RW]

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` @return [String]

minimum_quartile[RW]

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` @return [String]

minimum_viewability[RW]

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` @return [String]

minimum_volume[RW]

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` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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