Fullscreen (Interstitial)
Integrate fullscreen ads
Create RTBFullscreenAd Instance
val fullscreenAd = RTBFullscreenAd(this)Listen to Callbacks
fullscreenAd.delegate = thisRequest Ad
val rtbFullscreenRequestConfiguration = RTBFullscreenRequestConfiguration(<PLACEMENT_ID>, <BUNDLE_ID>)
rtbFullscreenRequestConfiguration.sellerId = "<SELLERID>" // Optional
fullscreenAd.load(rtbFullscreenRequestConfiguration)Optional - set user targeting
rtbFullscreenRequestConfiguration.userTargeting = RTBUserTargeting(userID = "<USER_ID>", gender = RTBGender.MALE, keywords = listOf("keyword1", "keyword2"), yearOfBirth = 1990)
// yearOfBirth must be a 4-digit number, otherwise it will be ignoredShow Ad
Complete Code Example
Last updated