Class: Google::Apis::DisplayvideoV1::ActiveViewVideoViewabilityMetricConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Required. The display name of the custom metric. Corresponds to the JSON property displayName

Returns:

  • (String)


45
46
47
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 45

def display_name
  @display_name
end

#minimum_durationString

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

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 53

def minimum_duration
  @minimum_duration
end

#minimum_quartileString

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

Returns:

  • (String)


61
62
63
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 61

def minimum_quartile
  @minimum_quartile
end

#minimum_viewabilityString

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

Returns:

  • (String)


67
68
69
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 67

def minimum_viewability
  @minimum_viewability
end

#minimum_volumeString

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

Returns:

  • (String)


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