Config Builder
Builder in charge of making easy to configure the SDK. All the methods are optional to call. This Class can be Used either when manualConfig is ON or OFF. If its off, only Unfetchable configs will be built into the configuration: This configurations are:
consent configurations.
If its ON you can add unitConfigs and APP global target Configs.
Functions
Link copied to clipboard
Adds keywords for better ad targeting
Link copied to clipboard
fun addBannerConfiguration(configurationId: String, bannerUnitId: String, bannerConfigId: String, sizeList: List<Pair<Int, Int>>, autoRefreshMillis: Int = 30000, isCapped: Boolean = false, adAmountPerTimeSlot: Int = 1, timeSlotSize: Long = 3600000, keywords: List<String>? = null, unitFPID: Map<String, Set<String>>? = null, closeButtonIsActive: Boolean = false, closeButtonImageURL: String = "", wrapperWrapContent: Boolean = true, wrapperMatchParentHeight: Boolean = false, wrapperMatchParentWidth: Boolean = false, wrapperHeight: Int = -1, wrapperWidth: Int = -1, wrapperPosition: WrapperPosition = WrapperPosition.CENTER): ConfigBuilder
Adds a banner configuration to the sdk
Link copied to clipboard
caches the cmp needed data to be shown,
Link copied to clipboard
fun addInfiniteScrollConfiguration(configurationId: String, minItems: Int, maxItems: Int, variableProbability: IntRange = 0..0, configsOfAdsToUse: List<String>, wrapperWrapContent: Boolean = true, wrapperMatchParentHeight: Boolean = false, wrapperMatchParentWidth: Boolean = false, wrapperHeight: Int = -1, wrapperWidth: Int = -1, wrapperPosition: WrapperPosition = WrapperPosition.CENTER): ConfigBuilder
Adds a infinite scroll configuration to the sdk
Link copied to clipboard
fun addInterstitialConfiguration(configurationId: String, interstitialUnitId: String, interstitialConfigId: String, autoRefreshMillis: Int = 30000, isCapped: Boolean = false, adAmountPerTimeSlot: Int = 1, timeSlotSize: Long = 3600000, keywords: List<String>? = null, unitFPID: Map<String, Set<String>>? = null): ConfigBuilder
Add an interstitial configuration to the sdk
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addVideoInterstitialConfiguration(configurationId: String, videoInterstitialUnitId: String, videoInterstitialConfigId: String, autoRefreshMillis: Int = 30000, isCapped: Boolean = false, adAmountPerTimeSlot: Int = 1, timeSlotSize: Long = 3600000, keywords: List<String>? = null, unitFPID: Map<String, Set<String>>? = null): ConfigBuilder
Add an video interstitial configuration to the sdk er
Link copied to clipboard
fun addVideoOutstreamBannerConfiguration(configurationId: String, outstreamUnitId: String, outstreamConfigId: String, size: Pair<Int, Int>, autoRefreshMillis: Int = 30000, isCapped: Boolean = false, adAmountPerTimeSlot: Int = 1, timeSlotSize: Long = 3600000, keywords: List<String>? = null, unitFPID: Map<String, Set<String>>? = null, closeButtonIsActive: Boolean = false, closeButtonImageURL: String? = null, wrapperWrapContent: Boolean = true, wrapperMatchParentHeight: Boolean = false, wrapperMatchParentWidth: Boolean = false, wrapperHeight: Int = -1, wrapperWidth: Int = -1, wrapperPosition: WrapperPosition = WrapperPosition.CENTER): ConfigBuilder
Adds a video banner configuration to the sdk