Banner Ad
1. Basic requirements
Add ADX iOS SDK to your project.
Use the Ad Unit ID issued for Banner Ads.
Before requesting an ad, SDK initialization must be done first.
SDK initialization should be called only once when the app launches and ad requests should be made after SDK initialization is complete.
For iOS 14 and later, request ads only after obtaining ATT (App Tracking Transparency) permission.
2. Implementation
Instantiate an
ADXAdViewusing theinitWithAdUnitId:adSize:rootViewController:method and register the ADXAdViewDelegate callbacks.ADXAdSizeSize (width * height)ADXAdSizeBanner320 * 50
ADXAdSizeLargeBanner320 * 100
ADXAdSizeMediumRectangle320 * 250
ADXAdSizeLeaderboard728 * 90
Set the frame of the
bannerViewand add it to theViewController.Call
loadAdto request an ad.
3. Callback
You can receive banner ad events through the ADXAdViewDelegate.
4. Ad Revenue (paidEventHandler)
You can check the estimated ad revenue for ad impressions.
Last updated
Was this helpful?