Before You Start Make Sure:
- App and Placement set up on Publisher Portal
- SDK is installed
- SDK is initialized
- placements have status "Testing" in order to test integration receiving test ad for each request
Feed Interstitial is a new ad unit, which combines the best elements of both Infeed and Interstitial ad units, in order to provide a unique, engaging user experience. Feed Interstitial enables you to insert an advertisement inside your app's feed, while displaying ad-content in a fullscreen, in order to command high CPM payouts. The best performance can be reached using reveal effect and customizing colors of visible view-elements.
Feed Interstitial supports both Video and Display (Static and Rich-Media) ad formats over portrait and landscape orientations. Ad Unit size is 480x320
Feed Interstitial is designed to be inserted into a UITableView.
Each Feed Interstitial is associated with an UIView. This UIView has translatesAutoresizingMaskIntoConstraints equal to NO, so it can work with constraints by default.
In order to get Feed Interstitial UIView use:
When the UITableView requires the height of the row containing the Feed Interstitial, you should return the height of the UITableView.
By default, the header and footer of a Feed Interstitial use dark-gray for background color and white for text. This can be changed as follows before calling [adRequest requestAdWithAdReceivedHandler…]:
((DIOFeedInterstitialPlacement*)placement).headerBackgrounColor = [UIColor...];
((DIOFeedInterstitialPlacement*)placement).headerColor = [UIColor...];
((DIOFeedInterstitialPlacement*)placement).footerBackgrounColor = [UIColor...];
((DIOFeedInterstitialPlacement*)placement).footerColor = [UIColor...];
In order to control Feed Interstitial behavior in case of switching between screens:
- Call [ad finish] to stop the ad and release the resources associated with it.
- Call [ad leave] to pause the video ad.
- Call [ad reenter] to resume the video ad.
In order to detect if Feed Interstitial was clicked, subscribe to the <DIOAdClickDelegate> protocol and then define yourself as a delegate via:
ad.clickDelegate = self;
Finally, implement the following to be notified whenever relevant:
Check the Sample App for a fully-working example.