Class: Google::Apis::DisplayvideoV1::ViewabilityAssignedTargetingOptionDetails

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

Assigned viewability targeting option details. This will be populated in the viewability_details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_VIEWABILITY.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ViewabilityAssignedTargetingOptionDetails

Returns a new instance of ViewabilityAssignedTargetingOptionDetails.



8435
8436
8437
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 8435

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#targeting_option_idString

Required. The targeting_option_id of a TargetingOption of type TARGETING_TYPE_VIEWABILITY (e.g., "509010" for targeting the VIEWABILITY_10_PERCENT_OR_MORE option). Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


8428
8429
8430
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 8428

def targeting_option_id
  @targeting_option_id
end

#viewabilityString

Output only. The predicted viewability percentage. Corresponds to the JSON property viewability

Returns:

  • (String)


8433
8434
8435
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 8433

def viewability
  @viewability
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8440
8441
8442
8443
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 8440

def update!(**args)
  @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id)
  @viewability = args[:viewability] if args.key?(:viewability)
end