Class: Google::Apis::DisplayvideoV4::YoutubeVideoAsset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::YoutubeVideoAsset
- 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
-
#youtube_video_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ YoutubeVideoAsset
constructor
A new instance of YoutubeVideoAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ YoutubeVideoAsset
Returns a new instance of YoutubeVideoAsset.
15897 15898 15899 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#youtube_video_id ⇒ String
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
15895 15896 15897 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15895 def youtube_video_id @youtube_video_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15902 15903 15904 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15902 def update!(**args) @youtube_video_id = args[:youtube_video_id] if args.key?(:youtube_video_id) end |