class Google::Apis::DfareportingV3_5::CustomViewabilityMetricConfiguration

The attributes, like playtime and percent onscreen, that define the Custom Viewability Metric.

Attributes

audible[RW]

Whether the video must be audible to count an impression. Corresponds to the JSON property `audible` @return [Boolean]

audible?[RW]

Whether the video must be audible to count an impression. Corresponds to the JSON property `audible` @return [Boolean]

time_millis[RW]

The time in milliseconds the video must play for the Custom Viewability Metric to count an impression. If both this and timePercent are specified, the earlier of the two will be used. Corresponds to the JSON property `timeMillis` @return [Fixnum]

time_percent[RW]

The percentage of video that must play for the Custom Viewability Metric to count an impression. If both this and timeMillis are specified, the earlier of the two will be used. Corresponds to the JSON property `timePercent` @return [Fixnum]

viewability_percent[RW]

The percentage of video that must be on screen for the Custom Viewability Metric to count an impression. Corresponds to the JSON property `viewabilityPercent` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_5/classes.rb, line 4707
def update!(**args)
  @audible = args[:audible] if args.key?(:audible)
  @time_millis = args[:time_millis] if args.key?(:time_millis)
  @time_percent = args[:time_percent] if args.key?(:time_percent)
  @viewability_percent = args[:viewability_percent] if args.key?(:viewability_percent)
end