Class: Google::Apis::DisplayvideoV2::ContentDurationAssignedTargetingOptionDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb

Overview

Details for content duration assigned targeting option. This will be populated in the content_duration_details field when targeting_type is TARGETING_TYPE_CONTENT_DURATION. Explicitly targeting all options is not supported. Remove all content duration targeting options to achieve this effect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContentDurationAssignedTargetingOptionDetails

Returns a new instance of ContentDurationAssignedTargetingOptionDetails.



3269
3270
3271
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3269

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

Instance Attribute Details

#content_durationString

Output only. The content duration. Corresponds to the JSON property contentDuration

Returns:

  • (String)


3261
3262
3263
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3261

def content_duration
  @content_duration
end

#targeting_option_idString

Required. The targeting_option_id field when targeting_type is TARGETING_TYPE_CONTENT_DURATION. Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


3267
3268
3269
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3267

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3274
3275
3276
3277
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3274

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