Class: Google::Apis::DisplayvideoV3::MastheadAd
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::MastheadAd
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Details for a Masthead Ad.
Instance Attribute Summary collapse
-
#autoplay_video_duration ⇒ String
The duration of time the video will autoplay.
-
#autoplay_video_start_millisecond ⇒ Fixnum
The amount of time in milliseconds after which the video will start to play.
-
#call_to_action_button_label ⇒ String
The text on the call-to-action button.
-
#call_to_action_final_url ⇒ String
The destination URL for the call-to-action button.
-
#call_to_action_tracking_url ⇒ String
The tracking URL for the call-to-action button.
-
#companion_youtube_videos ⇒ Array<Google::Apis::DisplayvideoV3::YoutubeVideoDetails>
The videos that appear next to the Masthead Ad on desktop.
-
#description ⇒ String
The description of the ad.
-
#headline ⇒ String
The headline of the ad.
-
#show_channel_art ⇒ Boolean
(also: #show_channel_art?)
Whether to show a background or banner that appears at the top of a YouTube page.
-
#video ⇒ Google::Apis::DisplayvideoV3::YoutubeVideoDetails
Details of a YouTube video.
-
#video_aspect_ratio ⇒ String
The aspect ratio of the autoplaying YouTube video on the Masthead.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MastheadAd
constructor
A new instance of MastheadAd.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MastheadAd
Returns a new instance of MastheadAd.
9430 9431 9432 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoplay_video_duration ⇒ String
The duration of time the video will autoplay.
Corresponds to the JSON property autoplayVideoDuration
9375 9376 9377 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9375 def autoplay_video_duration @autoplay_video_duration end |
#autoplay_video_start_millisecond ⇒ Fixnum
The amount of time in milliseconds after which the video will start to play.
Corresponds to the JSON property autoplayVideoStartMillisecond
9380 9381 9382 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9380 def autoplay_video_start_millisecond @autoplay_video_start_millisecond end |
#call_to_action_button_label ⇒ String
The text on the call-to-action button.
Corresponds to the JSON property callToActionButtonLabel
9385 9386 9387 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9385 def @call_to_action_button_label end |
#call_to_action_final_url ⇒ String
The destination URL for the call-to-action button.
Corresponds to the JSON property callToActionFinalUrl
9390 9391 9392 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9390 def call_to_action_final_url @call_to_action_final_url end |
#call_to_action_tracking_url ⇒ String
The tracking URL for the call-to-action button.
Corresponds to the JSON property callToActionTrackingUrl
9395 9396 9397 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9395 def call_to_action_tracking_url @call_to_action_tracking_url end |
#companion_youtube_videos ⇒ Array<Google::Apis::DisplayvideoV3::YoutubeVideoDetails>
The videos that appear next to the Masthead Ad on desktop. Can be no more than
two.
Corresponds to the JSON property companionYoutubeVideos
9401 9402 9403 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9401 def companion_youtube_videos @companion_youtube_videos end |
#description ⇒ String
The description of the ad.
Corresponds to the JSON property description
9406 9407 9408 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9406 def description @description end |
#headline ⇒ String
The headline of the ad.
Corresponds to the JSON property headline
9411 9412 9413 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9411 def headline @headline end |
#show_channel_art ⇒ Boolean Also known as: show_channel_art?
Whether to show a background or banner that appears at the top of a YouTube
page.
Corresponds to the JSON property showChannelArt
9417 9418 9419 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9417 def show_channel_art @show_channel_art end |
#video ⇒ Google::Apis::DisplayvideoV3::YoutubeVideoDetails
Details of a YouTube video.
Corresponds to the JSON property video
9423 9424 9425 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9423 def video @video end |
#video_aspect_ratio ⇒ String
The aspect ratio of the autoplaying YouTube video on the Masthead.
Corresponds to the JSON property videoAspectRatio
9428 9429 9430 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9428 def video_aspect_ratio @video_aspect_ratio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 9435 def update!(**args) @autoplay_video_duration = args[:autoplay_video_duration] if args.key?(:autoplay_video_duration) @autoplay_video_start_millisecond = args[:autoplay_video_start_millisecond] if args.key?(:autoplay_video_start_millisecond) @call_to_action_button_label = args[:call_to_action_button_label] if args.key?(:call_to_action_button_label) @call_to_action_final_url = args[:call_to_action_final_url] if args.key?(:call_to_action_final_url) @call_to_action_tracking_url = args[:call_to_action_tracking_url] if args.key?(:call_to_action_tracking_url) @companion_youtube_videos = args[:companion_youtube_videos] if args.key?(:companion_youtube_videos) @description = args[:description] if args.key?(:description) @headline = args[:headline] if args.key?(:headline) @show_channel_art = args[:show_channel_art] if args.key?(:show_channel_art) @video = args[:video] if args.key?(:video) @video_aspect_ratio = args[:video_aspect_ratio] if args.key?(:video_aspect_ratio) end |