Ad Options
Overview
Creating Ad Options
Using Builder
val adOption = AdOption.Builder()
.adsFetchTimeoutInSeconds(10)
.build()
val adBadgeOption = AdBadgeOption.Builder()
.adBadgeTextColor(Color.WHITE)
.adBadgeBackColor(Color.parseColor("#F65178EE"))
.adBadgeLabel(AdBadgeTextType.SPONSORED)
.adBadgeIsHidden(false)
.build()Using DSL (Recommended)
AdOption Properties
adsFetchTimeoutInSeconds
vastAttributes
AdBadgeOption Properties
adBadgeTextColor
adBadgeBackColor
adBadgeLabel
adBadgeIsHidden
adBadgeShowOnThumbnails
adBadgeTypeface
Default Values
AdOption Defaults
Property
Default Value
AdBadgeOption Defaults
Property
Default Value
Complete Examples
Standard Ad Configuration
Custom Styled Ad Badge
Minimal Ad Badge
Branded Ad Badge
High Contrast Ad Badge
Hidden Ad Badge
Quick Timeout for Fast Loading
Ad Badge Visibility
On Thumbnails
In Player
Ad Badge Text Options
"Sponsored" Label
"Ad" Label
Ad Loading Behavior
Timeout Configuration
VAST Attributes
Important Notes
See Also
Last updated
Was this helpful?