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.



34851
34852
34853
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34851

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)


34841
34842
34843
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34841

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)


34849
34850
34851
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34849

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34856
34857
34858
34859
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34856

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