ConfigBuilder

class ConfigBuilder(publisherName: String)

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.

Constructors

Link copied to clipboard
constructor(publisherName: String)

Functions

Link copied to clipboard
fun addAppTargeting(storeUrl: String, domain: String, appContextKeywords: Set<String>?)

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
fun addCMPData(id: Int, cmpCodeId: String)

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
fun addPrebidServerConfig(useRealAuctionServer: Boolean = false): ConfigBuilder
Link copied to clipboard
fun addRewardedInterstitialConfiguration(configurationId: String, rewardedInterstitialUnitId: String, isCapped: Boolean = false, adAmountPerTimeSlot: Int = 1, timeSlotSize: Long = 3600000, keywords: List<String>? = null, unitFPID: Map<String, Set<String>>? = null): ConfigBuilder
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