Class: Google::Apis::DisplayvideoV2::MastheadAd
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::MastheadAd
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
The details for masthead ad.
Instance Attribute Summary collapse
-
#autoplay_video_duration ⇒ String
Video will autoplay for certain period of time.
-
#autoplay_video_start_millisecond ⇒ Fixnum
Video will start to play after certain period of time in millisecond.
-
#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::DisplayvideoV2::YoutubeVideoDetails>
The videos (up to 2) 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::DisplayvideoV2::YoutubeVideoDetails
Details of the YouTube video.
-
#video_aspect_ratio ⇒ String
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.
8692 8693 8694 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8692 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoplay_video_duration ⇒ String
Video will autoplay for certain period of time.
Corresponds to the JSON property autoplayVideoDuration
8638 8639 8640 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8638 def autoplay_video_duration @autoplay_video_duration end |
#autoplay_video_start_millisecond ⇒ Fixnum
Video will start to play after certain period of time in millisecond.
Corresponds to the JSON property autoplayVideoStartMillisecond
8643 8644 8645 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8643 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
8648 8649 8650 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8648 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
8653 8654 8655 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8653 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
8658 8659 8660 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8658 def call_to_action_tracking_url @call_to_action_tracking_url end |
#companion_youtube_videos ⇒ Array<Google::Apis::DisplayvideoV2::YoutubeVideoDetails>
The videos (up to 2) that appear next to the Masthead ad on desktop.
Corresponds to the JSON property companionYoutubeVideos
8663 8664 8665 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8663 def companion_youtube_videos @companion_youtube_videos end |
#description ⇒ String
The description of the ad.
Corresponds to the JSON property description
8668 8669 8670 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8668 def description @description end |
#headline ⇒ String
The headline of the ad.
Corresponds to the JSON property headline
8673 8674 8675 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8673 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
8679 8680 8681 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8679 def show_channel_art @show_channel_art end |
#video ⇒ Google::Apis::DisplayvideoV2::YoutubeVideoDetails
Details of the YouTube video.
Corresponds to the JSON property video
8685 8686 8687 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8685 def video @video end |
#video_aspect_ratio ⇒ String
Aspect ratio of the autoplaying YouTube video on the Masthead.
Corresponds to the JSON property videoAspectRatio
8690 8691 8692 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8690 def video_aspect_ratio @video_aspect_ratio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8697 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 |