Important Note

Interstitial ads (Multi-Ad Format) is currently in a closed beta stage. Once the beta stage is complete, this feature will be provided for all publishers.

Please reach out to your dedicated account manager to be put you on the waiting list.

Process of Setting upd Multi-Ad Format

  1. Smaato needs to activate the Multi-Ad Format feature for you as a publisher.
  2. Log in to your SPX account and create a NEW 'Multi-Ad Format interstitial ad space.'
  3. Download and import the latest version of the Smaato Android SDK from SPX, which also includes new adapter classes.


General Setup

Integrate new optimized ad view class - MultiFormatInterstitial.

  • If you want to enable Multi-format interstitial ads for an existing implementation of Interstitial, it is sufficient to change the class name to MultiFormatInterstitial. 
  • If you want to enable Multi-format interstitial ads for an existing implementation of Video, you need to change the class name to MultiFormatInterstitial and also to use InterstitialAdListener instead of VastAdListener (change setVastAdListener() to setInterstitialAdListener())


Integration code example
MultiFormatInterstitial multiFormatInterstitial = new MultiFormatInterstitial(getContext());
multiFormatInterstitial.setInterstitialAdListener(new InterstitialAdListener() {
@Override
 public void onReadyToShow() {

    }

@Override
 public void onWillShow() {

    }

@Override
 public void onWillOpenLandingPage() {

    }

@Override
 public void onWillClose() {

    }

@Override
 public void onFailedToLoadAd() {

    }
});


Update mediation adapter classes

AdMob as primary

  • Integrate MultiFormatInterstitialAdMobMediationAdapter mediation adapter into your project.
  • Next, follow the instructions on how to integrate Interstitial Ads with AdMob as primary and Smaato as secondary, but please make sure that  MultiFormatInterstitialAdMobMediationAdapter is inserted with the appropriate "Class Name" for example: {{com.smaato.soma.MediationAdapter.MultiFormatInterstitialAdMobMediationAdapter}}.

MoPub as primary

  • Integrate SomaMopubMultiFormatInterstitialAdapter mediation adapter into your project.
  • Next, follow the instructions on how to integrate Interstitial Ads with MoPub as primary and Smaato as secondary, but please also make sure that SomaMopubMultiFormatInterstitialAdapter is inserted with the appropriate "Custom Event Class"  for example: {{com.smaato.soma.mopubcustomevent.SomaMopubMultiFormatInterstitialAdapter}}. 

Cleaning up the MultiFormatInterstitial Ad

After you finish using the MultiFormatInterstitial, it is highly recommended to clean up the memory, please call the destroy() method as per the following:

Destructor code example
@Override
public void onDestroy() {
if (interstitial != null) {
 interstitial.destroy();
}

super.onDestroy();
}



If you have any further questions regarding the Interstitial (Multi-Ad Format) setup, please reach out to your Smaato Account Manager as we will be happy to help.