Class: Google::Apis::DisplayvideoV3::ActiveViewVideoViewabilityMetricConfig

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

Instance Method Summary collapse

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_nameString

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

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 32

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)


40
41
42
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 40

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)


48
49
50
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 48

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)


54
55
56
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 54

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)


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