Class: Google::Apis::YoutubeV3::BrandPartner

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

Overview

Details about the brand partner linked to the video for Creator Initiated Linking (CIL). Next ID: 6

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BrandPartner

Returns a new instance of BrandPartner.



751
752
753
# File 'lib/google/apis/youtube_v3/classes.rb', line 751

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

Instance Attribute Details

#channel_handleString

Required. Channel handle, must begin with "@" Corresponds to the JSON property channelHandle

Returns:

  • (String)


744
745
746
# File 'lib/google/apis/youtube_v3/classes.rb', line 744

def channel_handle
  @channel_handle
end

#channel_idString

Required. External Channel ID, must begin with "UC" Corresponds to the JSON property channelId

Returns:

  • (String)


749
750
751
# File 'lib/google/apis/youtube_v3/classes.rb', line 749

def channel_id
  @channel_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



756
757
758
759
# File 'lib/google/apis/youtube_v3/classes.rb', line 756

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