Overlay Ads
Overlay (interstitial) ads are full screen ads. They can be shown in-between normal page transitions.
Frequency Capping
SevenOneAds uses frequency capping to ensure that the user is not spammed with overlays while using the application. An overlay will only be requested if a certain time has passed since the last overlay. This will hinder too frequent overlay ads as the user is navigating the app.
Frequency capping options
If you want certain frequency capping limits, communicate this with your publisher manager. We will then configure the minimum number of seconds between each overlay (e.g. 3600 sec = 1 hour) for you.
Implementation
Add the following code to onResume()
/viewDidAppear()
on all views (including home).
override fun onResume() {
super.onResume()
SevenOneAds.pageUpdated(<pageTopDomain>, <pageSubDomain>, <contentUrl>)
SevenOneAds.displayOverlay(<SevenOneAdsListener>)
}
override func viewDidAppear(_ animated: Bool) {
SevenOneAds.shared.pageUpdated(pageTopDomain: <pageTopDomain>, pageSubDomain: <pageSubDomain>, contentUrl: <contentUrl>)
SevenOneAds.shared.displayOverlay(uiController: <UIViewController>, delegate: <SevenOneAdsOverlayDelegate>)
}
uiController
: Current UIViewController (iOS only)SevenOneAdsListener/SevenOneAdsOverlayDelegate
: (Optional, default null)
Note: Remember to call
pageUpdated()
in youronResume()
/viewDidAppear()
.