Class: Google::Apis::DisplayvideoV2::YoutubeVideoAssignedTargetingOptionDetails

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 YouTube video assigned targeting option. This will be populated in the youtube_video_details field when targeting_type is TARGETING_TYPE_YOUTUBE_VIDEO.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeVideoAssignedTargetingOptionDetails

Returns a new instance of YoutubeVideoAssignedTargetingOptionDetails.



12464
12465
12466
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 12464

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

Instance Attribute Details

#negativeBoolean Also known as: negative?

Indicates if this option is being negatively targeted. Corresponds to the JSON property negative

Returns:

  • (Boolean)


12456
12457
12458
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 12456

def negative
  @negative
end

#video_idString

YouTube video id as it appears on the YouTube watch page. Corresponds to the JSON property videoId

Returns:

  • (String)


12462
12463
12464
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 12462

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12469
12470
12471
12472
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 12469

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