Display native ad on Apple
Step 1: Layout the native ad in a storyboard or nib file.
The types of views that can be configured in a native ad are as follows:
Icon
Advertiser
Headline
Body
Media
Call to action
For example, when configuring a social feed ad, you can lay it out as follows:
AdContainerView - superview (AdropNativeAdView)
β Icon (UIImageView)
β Advertiser (UILabel)
β Media (UIView)
β Body (UILabel)
Please make sure the superview is declared as AdropNativeAdView. You can modify this in the Custom Class section of the Identity Inspector.
Step 2: Load a native ad
Step 3: Connect a native ad to view
Here is an example that connects the subviews of AdropNativeAdView and then populates the AdropNativeAd.
Last updated