Class: Google::Apis::DisplayvideoV2::YoutubeChannelAssignedTargetingOptionDetails

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 channel assigned targeting option. This will be populated in the youtube_channel_details field when targeting_type is TARGETING_TYPE_YOUTUBE_CHANNEL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeChannelAssignedTargetingOptionDetails

Returns a new instance of YoutubeChannelAssignedTargetingOptionDetails.



11584
11585
11586
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11584

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

Instance Attribute Details

#channel_idString

The YouTube uploader channel id or the channel code of a YouTube channel. Corresponds to the JSON property channelId

Returns:

  • (String)


11576
11577
11578
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11576

def channel_id
  @channel_id
end

#negativeBoolean Also known as: negative?

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

Returns:

  • (Boolean)


11581
11582
11583
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11581

def negative
  @negative
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11589
11590
11591
11592
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11589

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