Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesYoutubeVideoIdentifier

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

Overview

The identifier for YouTube video

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesYoutubeVideoIdentifier

Returns a new instance of GoogleAdsSearchads360V23ResourcesYoutubeVideoIdentifier.



34749
34750
34751
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34749

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

Instance Attribute Details

#channel_idString

Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA". Corresponds to the JSON property channelId

Returns:

  • (String)


34739
34740
34741
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34739

def channel_id
  @channel_id
end

#video_idString

Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v= jV1vkHv4zq8&t=2s". Corresponds to the JSON property videoId

Returns:

  • (String)


34747
34748
34749
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34747

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34754
34755
34756
34757
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34754

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