Native Ad

Add Files for Native Ad Integration

Add the following files to your app's build target:

  • CENativeAd.h

  • CENativeAd.m

  • CEMediaView.h

  • CEMediaView.m

Request Native Ad Instantly

With loadAdInstant, our synchronous method, You will get the result of loading ad directly.

  • Import CENativeAd.h and CEMediaView.h Create properties for both CENativeAd and CEMediaView.

// MyViewController.m

#import "CENativeAd.h"
#import "CEMediaView.h"

@interface MyViewController()
  • Create CENativeAd and CEMediaView instances. Load ad with your CENativeAd instance.

Request Native Ad Asynchronously

  • Import CENativeAd.h, CEMediaView.h and adopt CENativeAdRequestDelegate protocol in view controller's extension. Create properties for both CENativeAd and CEMediaView.

  • Create CENativeAd and CEMediaView instances. Load ad with your CENativeAd instance.

  • Implement CENativeAdRequestDelegate to handle ad loaded event.

Add 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