Package com.naver.ads.video
Class VideoAdsRequest
-
- All Implemented Interfaces:
-
android.os.Parcelable,com.naver.ads.video.vast.VastParserOptions
public final class VideoAdsRequest implements VastParserOptions, Parcelable
An object containing the data used to request video ads from the server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVideoAdsRequest.BuilderBuilder for VideoAdsRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_MAX_REDIRECTSpublic final static LongDEFAULT_VAST_LOAD_TIMEOUTpublic final static StringKEY_ALTERNATIVE_PRIVACY_URLprivate final StringalteredPrivacyUrlprivate final VideoAdsRequestSourcesourceprivate final BooleanadWillAutoPlayprivate final BooleanadWillPlayMutedprivate final BooleanallowMultipleAdsprivate final IntegermaxRedirectsprivate final LongvastLoadTimeoutprivate final Map<String, String>vastMacrosprivate final BooleaninStreamAdprivate final ContentProgressProvidercontentProgressProviderprivate final FloatcontentDurationprivate final StringcontentUrlprivate final BooleanuseVideoClicksTagprivate final Bundleextraprivate final BooleancompanionAdWillDisplayWithOutSkip
-
Constructor Summary
Constructors Constructor Description VideoAdsRequest(VideoAdsRequestSource source, Boolean adWillAutoPlay, Boolean adWillPlayMuted, Boolean allowMultipleAds, Integer maxRedirects, Long vastLoadTimeout, Map<String, String> vastMacros, Boolean inStreamAd, ContentProgressProvider contentProgressProvider, Float contentDuration, String contentUrl, Boolean useVideoClicksTag, Bundle extra, Boolean companionAdWillDisplayWithOutSkip)
-
Method Summary
Modifier and Type Method Description StringgetAlteredPrivacyUrl()alternative privacy url final VideoAdsRequestSourcegetSource()the source to be requested by this instance. final BooleangetAdWillAutoPlay()whether the ad will autoplay. final BooleangetAdWillPlayMuted()whether the ad plays with the sound off. BooleangetAllowMultipleAds()whether or not to allow multiple ads. IntegergetMaxRedirects()the maximum number of VAST redirects. LonggetVastLoadTimeout()the vastLoadTimeout. Map<String, String>getVastMacros()the VAST Macro parameters. final BooleangetInStreamAd()whether the ad is an in-stream ad or not. final ContentProgressProvidergetContentProgressProvider()the ContentProgressProvider final FloatgetContentDuration()the duration of content. final StringgetContentUrl()the url of content. final BooleangetUseVideoClicksTag()whether the ad clickable and use the VAST VideoClicks tag. final BundlegetExtra()the extra. final BooleangetCompanionAdWillDisplayWithOutSkip()whether the companion ad will display without skip. final VideoAdsRequest.BuilderbuildUpon()Constructs a new Properties via VideoAdsRequest.BuilderNote: this method is intended to be used from Java code only. -
-
Constructor Detail
-
VideoAdsRequest
VideoAdsRequest(VideoAdsRequestSource source, Boolean adWillAutoPlay, Boolean adWillPlayMuted, Boolean allowMultipleAds, Integer maxRedirects, Long vastLoadTimeout, Map<String, String> vastMacros, Boolean inStreamAd, ContentProgressProvider contentProgressProvider, Float contentDuration, String contentUrl, Boolean useVideoClicksTag, Bundle extra, Boolean companionAdWillDisplayWithOutSkip)
-
-
Method Detail
-
getAlteredPrivacyUrl
String getAlteredPrivacyUrl()
alternative privacy url
-
getSource
final VideoAdsRequestSource getSource()
the source to be requested by this instance.
-
getAdWillAutoPlay
final Boolean getAdWillAutoPlay()
whether the ad will autoplay.
-
getAdWillPlayMuted
final Boolean getAdWillPlayMuted()
whether the ad plays with the sound off.
-
getAllowMultipleAds
Boolean getAllowMultipleAds()
whether or not to allow multiple ads.
-
getMaxRedirects
Integer getMaxRedirects()
the maximum number of VAST redirects.
-
getVastLoadTimeout
Long getVastLoadTimeout()
the vastLoadTimeout.
-
getVastMacros
Map<String, String> getVastMacros()
the VAST Macro parameters.
-
getInStreamAd
final Boolean getInStreamAd()
whether the ad is an in-stream ad or not.
-
getContentProgressProvider
final ContentProgressProvider getContentProgressProvider()
-
getContentDuration
final Float getContentDuration()
the duration of content.
-
getContentUrl
final String getContentUrl()
the url of content.
-
getUseVideoClicksTag
final Boolean getUseVideoClicksTag()
whether the ad clickable and use the VAST VideoClicks tag.
-
getCompanionAdWillDisplayWithOutSkip
final Boolean getCompanionAdWillDisplayWithOutSkip()
whether the companion ad will display without skip.
-
buildUpon
@SinceKotlin(version = "999.9") final VideoAdsRequest.Builder buildUpon()
Constructs a new Properties via VideoAdsRequest.Builder
Note: this method is intended to be used from Java code only. For idiomatic Kotlin use
copy()to modify VideoAdsRequest
-
-
-
-