Before You Start Make Sure:
- App and Placement set up on Publisher Portal
- SDK is installed
- SDK is initialized
- Each Ad request has "Testing" status which enables it to test integrations.
Our Interstitial ad unit supports fullscreen ads of Video and Display (Static and Rich-Media) ad formats over portrait and landscape orientations. Ad Unit size is 480x320/320x480.
To show an Interstitial ad you need to proceed as follows:
[ad showAdFromViewController:self eventHandler:^(DIOAdEvent event){
switch (event) {
case DIOAdEventOnShown:
// integration code
break;
case DIOAdEventOnFailedToShow:
// integration code
break;
case DIOAdEventOnClicked:
// integration code
break;
case DIOAdEventOnClosed:
// integration code
break;
case DIOAdEventOnAdCompleted:
// integration code
break;
}
}];
Note: After showing an ad you may not show it again.
Check the Sample App for a fully-working example.
Comments
0 comments
Please sign in to leave a comment.