Class: Google::Apis::YoutubeV3::BrandPartner
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::BrandPartner
- 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
-
#channel_handle ⇒ String
Required.
-
#channel_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BrandPartner
constructor
A new instance of BrandPartner.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BrandPartner
Returns a new instance of BrandPartner.
858 859 860 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 858 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_handle ⇒ String
Required. Channel handle, must begin with "@"
Corresponds to the JSON property channelHandle
851 852 853 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 851 def channel_handle @channel_handle end |
#channel_id ⇒ String
Required. External Channel ID, must begin with "UC"
Corresponds to the JSON property channelId
856 857 858 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 856 def channel_id @channel_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
863 864 865 866 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 863 def update!(**args) @channel_handle = args[:channel_handle] if args.key?(:channel_handle) @channel_id = args[:channel_id] if args.key?(:channel_id) end |