Interstitial Ad
Add Files for Interstitial Ad Integration
Add CESplash2AD.h CESplash2AD.m to your app's build target.
Request Interstitial Ad
Import
CESplash2AD.hand adoptCESplash2ADRequestDelegateprotocol in view controller's extension.
// MyViewController.m
#import "CESplash2AD.h"
@interface MyViewController() <CESplash2ADRequestDelegate>Create a CESplash2AD instance and keep its reference. Load ad with your CESplash2AD instance.
@interface MyViewController() <CESplash2ADRequestDelegate>
@property (nonatomic, strong) CECSplash2AD *splashAd;
@end
- (void) viewDidLoad()
{
CERequestInfo *info = [CERequestInfo new];
info.placement = @"PUT_YOUR_PLACEMENT_STRING_HERE·";
info.timeout = 5;
self.splashAD = [[CESplash2AD alloc] initWithVideoViewProfile:CEVideoViewProfileSplash2DefaultProfile];
[self.splashAD loadAdAsyncWithInfo:info reqDelegate:self];
}Implement
splash2ADDidLoaded:splash2ADto handle ad loaded event.
Add CESplashADEventDelegate to get the ad event callback.
CESplashADEventDelegate to get the ad event callback.If you want to trace the click, impression, progress event, please implement CESplashADEventDelegate to handle it.
Please refer to CESplash2AD for more information in detail.
Last updated