Network-Key Replacement
request.networkKeyReplacements = mapOf( "key1" to "value1", "key2" to "value2", "anotherKey" to "anotherValue" )
val configuration = BannerConfiguration()
placement = AATKit.createInfeedBannerPlacement("<PLACEMENT_NAME>", configuration)
// Create the banner request instance
val request = BannerRequest(null)
// Set network-key replacement
request.networkKeyReplacements = mapOf(
"key1" to "value1",
"key2" to "value2",
"anotherKey" to "anotherValue"
)
// Perform the request
placement?.requestAd(request, object : BannerRequestCompletionListener {
override fun onRequestCompleted(layout: BannerPlacementLayout?, error: BannerRequestError?) {
// handle error or display the ad
}
})Last updated