Class: Google::Apis::ContentV2::AccountYouTubeChannelLink

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountYouTubeChannelLink

Returns a new instance of AccountYouTubeChannelLink.


853
854
855
# File 'generated/google/apis/content_v2/classes.rb', line 853

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

Instance Attribute Details

#channel_idString

Channel ID. Corresponds to the JSON property channelId

Returns:

  • (String)

838
839
840
# File 'generated/google/apis/content_v2/classes.rb', line 838

def channel_id
  @channel_id
end

#statusString

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

Returns:

  • (String)

851
852
853
# File 'generated/google/apis/content_v2/classes.rb', line 851

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


858
859
860
861
# File 'generated/google/apis/content_v2/classes.rb', line 858

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