Native Ad
Add Files for Native Ad Integration
Add the following files to your app's build target:
CENativeAd.hCENativeAd.mCEMediaView.hCEMediaView.m
Request Native Ad Instantly
With loadAdInstant, our synchronous method, You will get the result of loading ad directly.
Import
CENativeAd.handCEMediaView.hCreate properties for bothCENativeAdandCEMediaView.
// MyViewController.m
#import "CENativeAd.h"
#import "CEMediaView.h"
@interface MyViewController()Create
CENativeAdandCEMediaViewinstances. Load ad with yourCENativeAdinstance.
Request Native Ad Asynchronously
Import
CENativeAd.h,CEMediaView.hand adoptCENativeAdRequestDelegateprotocol in view controller's extension. Create properties for bothCENativeAdandCEMediaView.
Create
CENativeAdandCEMediaViewinstances. Load ad with yourCENativeAdinstance.
Implement
CENativeAdRequestDelegateto handle ad loaded event.
Add CENativeAdEventDelegate to get the ad event callback.
CENativeAdEventDelegate to get the ad event callback.If you want to trace the click, impression, progress event, please implement CENativeAdEventDelegate to handle it.
Please refer to CENativeAd for more information in detail.
Last updated