Class: Google::Apis::DisplayvideoV4::YoutubeVideoAsset

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

Overview

Data for a YouTube video ad asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeVideoAsset

Returns a new instance of YoutubeVideoAsset.



14998
14999
15000
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14998

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

Instance Attribute Details

#youtube_video_idString

Required. The YouTube video id of the asset. This is the 11 char string value used in the YouTube video URL. Corresponds to the JSON property youtubeVideoId

Returns:

  • (String)


14996
14997
14998
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14996

def youtube_video_id
  @youtube_video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15003
15004
15005
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15003

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