Class: Google::Apis::ContentV2_1::AccountYouTubeChannelLink
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountYouTubeChannelLink
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ String
Channel ID.
-
#status ⇒ String
Status of the link between this Merchant Center account and the YouTube channel.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountYouTubeChannelLink
constructor
A new instance of AccountYouTubeChannelLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountYouTubeChannelLink
Returns a new instance of AccountYouTubeChannelLink.
1363 1364 1365 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 1363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
Channel ID.
Corresponds to the JSON property channelId
1348 1349 1350 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 1348 def channel_id @channel_id end |
#status ⇒ String
Status of the link between this Merchant Center account and the YouTube
channel. Upon retrieval, it represents the actual status of the link and can
be either active
if it was approved in YT Creator Studio or pending
if it'
s pending approval. Upon insertion, it represents the intended status of the
link. Re-uploading a link with status active
when it's still pending or with
status pending
when it's already active will have no effect: the status will
remain unchanged. Re-uploading a link with deprecated status inactive
is
equivalent to not submitting the link at all and will delete the link if it
was active or cancel the link request if it was pending.
Corresponds to the JSON property status
1361 1362 1363 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 1361 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1368 1369 1370 1371 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 1368 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @status = args[:status] if args.key?(:status) end |