public static class AdsConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AdsConfiguration |
build()
Builds the advertisement configuration.
|
AdsConfiguration.Builder |
googleImaConfiguration(GoogleImaConfiguration googleImaConfiguration)
Sets the
GoogleImaConfiguration of the Google Interactive Media Ads. |
AdsConfiguration.Builder |
preload(AdPreloadType preload)
Use Google IMA preload of media files (for mid- and post rolls)
|
AdsConfiguration.Builder |
showCountdown(boolean showCountdown)
Sets whether the countdown for linear ads will be shown.
|
public AdsConfiguration.Builder showCountdown(boolean showCountdown)
showCountdown
- Whether the countdown is enabled for linear ads.public AdsConfiguration.Builder preload(AdPreloadType preload)
preload
- The AdPreloadType. (Nullable)- If null is passed as preload, then this method has no effect.
public AdsConfiguration.Builder googleImaConfiguration(GoogleImaConfiguration googleImaConfiguration)
GoogleImaConfiguration
of the Google Interactive Media Ads.googleImaConfiguration
- The AdPreloadType. (Nullable)public AdsConfiguration build()