Interstitial Ads

We support both static and video interstitial ads. Follow the instructions below to set up interstitial ads.

Set up Interstitial Ad🔗

  1. From the left navigation, select Inventory Inventory Settings.
  2. Search for the app or website you would like to create a placement for and click + Add a placement.
  3. Click Select Ad Unit and select Interstitial.
  4. Click Add a placement to start setting up your Interstitial settings. After you create the Interstitial placement, you can see the placement ID.

     

Add Interstitial Ad to your App🔗

Creating an Interstitial Ad

The IMInterstitial is simply a UIViewController subclass displaying full-screen ads that respond to user touch.

Follow these steps to create the interstitial ad unit programmatically:

  1. Import the headers and declare an interstitial instance in your ViewController.h / ViewController.swift file. Your ViewController header file should look like this:

    • Objective C
    • Swift

    Objective C

    Swift

  2. Instantiate the interstitial object. Your viewDidLoad method in ViewController.m file should look like this:
     

    • Objective C
    • Swift

    Objective C

    Swift

  3. For ad status callbacks, implement the delegate methods of IMInterstitialDelegate. Here are the supported callbacks:

    • Objective C
    • Swift

    Objective C

    Swift

  4. To show the Interstitial Ad, use the following code:

    • Objective C
    • Swift

    Objective C

    Swift

  • Objective C
  • Swift

Objective C

Swift

On This Page

Last Updated on: 04 Nov, 2024