public static class AdBreak.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AdBreak.Builder |
adType(AdType adType) |
AdBreak |
build() |
AdBreak.Builder |
customParams(java.util.Map<java.lang.String,java.lang.String> custParams) |
AdBreak.Builder |
offset(java.lang.String offset) |
AdBreak.Builder |
source(AdSource adSource) |
AdBreak.Builder |
tag(java.util.List<java.lang.String> tag) |
AdBreak.Builder |
tag(java.lang.String... tags) |
public AdBreak.Builder source(AdSource adSource)
adSource
- The ad source for this ad break -- VAST, IMA, or FWpublic AdBreak.Builder tag(java.lang.String... tags)
tags
- The ad tags that are called during the configured ad break.public AdBreak.Builder tag(java.util.List<java.lang.String> tag)
tag
- The ad tags that are called during the configured ad break.public AdBreak.Builder offset(java.lang.String offset)
offset
- When to play the configured ad tag.
"pre": Ad plays as a preroll
"post": Ad plays as a postroll
"xx%": Ad plays after xx% of the content
number: Ad plays after the specified number of secondspublic AdBreak.Builder adType(AdType adType)
adType
- This should be set to NONLINEAR if you want to force the player to render a nonlinear ad in the ad response.public AdBreak.Builder customParams(@Nullable java.util.Map<java.lang.String,java.lang.String> custParams)
custParams
- Allows for passing custom parameters to an ad break, which then pass through to the URL requested from the ad server.public AdBreak build()