public final class MastheadAd
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Display & Video 360 API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MastheadAd() |
| Modifier and Type | Method and Description |
|---|---|
MastheadAd |
clone() |
String |
getAutoplayVideoDuration()
The duration of time the video will autoplay.
|
Long |
getAutoplayVideoStartMillisecond()
The amount of time in milliseconds after which the video will start to play.
|
String |
getCallToActionButtonLabel()
The text on the call-to-action button.
|
String |
getCallToActionFinalUrl()
The destination URL for the call-to-action button.
|
String |
getCallToActionTrackingUrl()
The tracking URL for the call-to-action button.
|
List<YoutubeVideoDetails> |
getCompanionYoutubeVideos()
The videos that appear next to the Masthead Ad on desktop.
|
String |
getDescription()
The description of the ad.
|
String |
getHeadline()
The headline of the ad.
|
Boolean |
getShowChannelArt()
Whether to show a background or banner that appears at the top of a YouTube page.
|
YoutubeVideoDetails |
getVideo()
The YouTube video used by the ad.
|
String |
getVideoAspectRatio()
The aspect ratio of the autoplaying YouTube video on the Masthead.
|
MastheadAd |
set(String fieldName,
Object value) |
MastheadAd |
setAutoplayVideoDuration(String autoplayVideoDuration)
The duration of time the video will autoplay.
|
MastheadAd |
setAutoplayVideoStartMillisecond(Long autoplayVideoStartMillisecond)
The amount of time in milliseconds after which the video will start to play.
|
MastheadAd |
setCallToActionButtonLabel(String callToActionButtonLabel)
The text on the call-to-action button.
|
MastheadAd |
setCallToActionFinalUrl(String callToActionFinalUrl)
The destination URL for the call-to-action button.
|
MastheadAd |
setCallToActionTrackingUrl(String callToActionTrackingUrl)
The tracking URL for the call-to-action button.
|
MastheadAd |
setCompanionYoutubeVideos(List<YoutubeVideoDetails> companionYoutubeVideos)
The videos that appear next to the Masthead Ad on desktop.
|
MastheadAd |
setDescription(String description)
The description of the ad.
|
MastheadAd |
setHeadline(String headline)
The headline of the ad.
|
MastheadAd |
setShowChannelArt(Boolean showChannelArt)
Whether to show a background or banner that appears at the top of a YouTube page.
|
MastheadAd |
setVideo(YoutubeVideoDetails video)
The YouTube video used by the ad.
|
MastheadAd |
setVideoAspectRatio(String videoAspectRatio)
The aspect ratio of the autoplaying YouTube video on the Masthead.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAutoplayVideoDuration()
null for nonepublic MastheadAd setAutoplayVideoDuration(String autoplayVideoDuration)
autoplayVideoDuration - autoplayVideoDuration or null for nonepublic Long getAutoplayVideoStartMillisecond()
null for nonepublic MastheadAd setAutoplayVideoStartMillisecond(Long autoplayVideoStartMillisecond)
autoplayVideoStartMillisecond - autoplayVideoStartMillisecond or null for nonepublic String getCallToActionButtonLabel()
null for nonepublic MastheadAd setCallToActionButtonLabel(String callToActionButtonLabel)
callToActionButtonLabel - callToActionButtonLabel or null for nonepublic String getCallToActionFinalUrl()
null for nonepublic MastheadAd setCallToActionFinalUrl(String callToActionFinalUrl)
callToActionFinalUrl - callToActionFinalUrl or null for nonepublic String getCallToActionTrackingUrl()
null for nonepublic MastheadAd setCallToActionTrackingUrl(String callToActionTrackingUrl)
callToActionTrackingUrl - callToActionTrackingUrl or null for nonepublic List<YoutubeVideoDetails> getCompanionYoutubeVideos()
null for nonepublic MastheadAd setCompanionYoutubeVideos(List<YoutubeVideoDetails> companionYoutubeVideos)
companionYoutubeVideos - companionYoutubeVideos or null for nonepublic String getDescription()
null for nonepublic MastheadAd setDescription(String description)
description - description or null for nonepublic String getHeadline()
null for nonepublic MastheadAd setHeadline(String headline)
headline - headline or null for nonepublic Boolean getShowChannelArt()
null for nonepublic MastheadAd setShowChannelArt(Boolean showChannelArt)
showChannelArt - showChannelArt or null for nonepublic YoutubeVideoDetails getVideo()
null for nonepublic MastheadAd setVideo(YoutubeVideoDetails video)
video - video or null for nonepublic String getVideoAspectRatio()
null for nonepublic MastheadAd setVideoAspectRatio(String videoAspectRatio)
videoAspectRatio - videoAspectRatio or null for nonepublic MastheadAd set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic MastheadAd clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.