Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonYoutubeVideoAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonYoutubeVideoAsset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
A YouTube asset.
Instance Attribute Summary collapse
-
#youtube_video_id ⇒ String
YouTube video id.
-
#youtube_video_title ⇒ String
YouTube video title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonYoutubeVideoAsset
constructor
A new instance of GoogleAdsSearchads360V0CommonYoutubeVideoAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonYoutubeVideoAsset
Returns a new instance of GoogleAdsSearchads360V0CommonYoutubeVideoAsset.
2945 2946 2947 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2945 def initialize(**args) update!(**args) end |
Instance Attribute Details
#youtube_video_id ⇒ String
YouTube video id. This is the 11 character string value used in the YouTube
video URL.
Corresponds to the JSON property youtubeVideoId
2938 2939 2940 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2938 def youtube_video_id @youtube_video_id end |
#youtube_video_title ⇒ String
YouTube video title.
Corresponds to the JSON property youtubeVideoTitle
2943 2944 2945 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2943 def youtube_video_title @youtube_video_title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2950 2951 2952 2953 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2950 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 |