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