Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYoutubeVideoAsset

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

A YouTube asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonYoutubeVideoAsset

Returns a new instance of GoogleAdsSearchads360V23CommonYoutubeVideoAsset.



13299
13300
13301
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13299

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

Instance Attribute Details

#youtube_video_idString

YouTube video id. This is the 11 character string value used in the YouTube video URL. Corresponds to the JSON property youtubeVideoId

Returns:

  • (String)


13292
13293
13294
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13292

def youtube_video_id
  @youtube_video_id
end

#youtube_video_titleString

YouTube video title. Corresponds to the JSON property youtubeVideoTitle

Returns:

  • (String)


13297
13298
13299
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13297

def youtube_video_title
  @youtube_video_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13304
13305
13306
13307
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13304

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