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

  1. Instantiate an ADXAdView using the initWithAdUnitId:adSize:rootViewController: method and register the ADXAdViewDelegate callbacks.

    ADXAdSize
    Size (width * height)

    ADXAdSizeBanner

    320 * 50

    ADXAdSizeLargeBanner

    320 * 100

    ADXAdSizeMediumRectangle

    320 * 250

    ADXAdSizeLeaderboard

    728 * 90

  2. Set the frame of the bannerView and add it to the ViewController.

  3. Call loadAd to 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.

  • As shown in the example below, use paidEventHandler to check the estimated eCPM value.

  • Manually set values during mediation setup and actual values may be mixed, so it is recommended to treat this as an estimate.

  • The currency unit of eCPM is USD.

  • You can link ad revenue data with your MMP. For details, please refer to the SDK integration guides below:

Last updated

Was this helpful?