Fullscreen (Interstitial)
Integrate fullscreen ads
This guide shows you how to integrate fullscreen ads of RTBSDK into your app.
Create RTBFullscreenAd Instance
Create an instance of RTBFullscreenAd:
let fullscreenAd = RTBFullscreenAd()Listen to Callbacks
Through the use of RTBFullscreenDelegate, you can listen to the different callbacks. Of course, your class must conform to its delegate methods (see the complete example below).
fullscreenAd.delegate = selfRequest Ad
To load a fullscreen ad, you will need to pass an instance of RTBFullscreenRequestConfiguration with placementID and the iTunesAppId. Please contact our support for getting the needed IDs.
let configuration = RTBFullscreenRequestConfiguration(placementId: <PLACEMENT_ID>, iTunesAppId: "<ITUNES_APP_ID>")
configuration.sellerId = "<SELLERID>"
configuration.bidFloor = <BID_FLOOR>
fullscreenAd.load(configuration: configuration)You will be notified about the loading success/failure through the RTBFullscreenDelegate
Optional - set user targeting
You can pass user targeting data to each request, allowing ads to be more relevant to your audience. Each field in RTBUserTargeting is optional.
Show Ad
After the ad gets loaded, it can be presented by calling:
The currency of
bidFloorandpriceCPMparameters is USD.
Complete Code Example
Last updated