Banners & Interstitial | iOS

Use the SOMAAdView class in the Interface Builder, or in your code in analogy to the previous use.

SOMAAdView* adview = [SOMAAdView new];
adview.frame = CGRectMake(0, 70, 320, 50);

Interstitial Ads

Use the SOMAInterstitialAdView class in the Interface Builder or in your code in analogy to the previous use.

Interstitials don’t show up automatically, so you will need to display it manually with the help of this delegate method:


– (void)somaAdViewDidLoadAd:(SOMAAdView *)adview{
[adview show];
}

Interstitial (Multi-Ad Format) NEW

Interstitial (Multi-Ad Format) works by requesting ads for both interstitial video ads and standard interstitial (image/rich media) Ads. In the end, the highest bid will win the auction and can deliver the ad which is for either interstitial video or interstitial image/rich media.

  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 our Android and iOS SDK from SPX, which also includes new adapter classes.

Interstitial (Multi-Ad Format) works by requesting ads for both interstitial video ads and standard interstitial (image/rich media) ads. In the end, the highest bid will win the auction and can deliver the ad which is for either interstitial video or interstitial image/rich media.

  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 Interstitial (Multi-Ad Format) Adspace.’
  3. Download and import the latest version of the Smaato iOS SDK from SPX, which also includes new adapter classes.

General Setup

Integrate new optimized ad view class – SOMAMultiFormatInterstitial.

  • If you want to enable multi-format interstitial ads for an existing implementation of SOMAInterstitialAdView or SOMAInterstitialVideoAdView, it is sufficient to change the existing ad view class names to SOMAMultiFormatInterstitial. Furthermore, SOMAAdViewDelegate provides all the ad lifecycle callbacks.
  • For a new multi-format interstitial ad integration, please follow the guide for interstitial ads on our wiki and replace SOMAInterstitialAdView with SOMAMultiFormatInterstitial.
  • Please make sure to create a new SOMAMultiFormatInterstitial object before loading an ad. 

  • Do not reuse an existing SOMAMultiFormatInterstitial object for loading subsequent ads, once the ad has been shown.

self.multiFormatInterstitial = [[SOMAMultiFormatInterstitial alloc] init];
self.multiFormatInterstitial.adSettings.publisherId = aPublisherId;
self.multiFormatInterstitial.adSettings.adSpaceId = anAdSpaceId;
self.multiFormatInterstitial.delegate = self;
// ...
[self.multiFormatInterstitial load];

Update Mediation Adapter Classes

AdMob as Primary

  • Integrate SOMAAdMobMultiFormatInterstitialReceiver mediation adapter into your project.
  • Follow the instructions on how to integrate interstitial ads with AdMob as primary and Smaato as secondary, but make sure SOMAAdMobMultiFormatInterstitialReceiver is inserted as “Class Name”.

MoPub as Primary

  • Integrate SOMAMoPubMultiFormatInterstitialAdapter mediation adapter into your project.
  • Follow the instructions on how to integrate interstitial ads with MoPub as primary and Smaato as secondary, but make sure SOMAMoPubMultiFormatInterstitialAdapter is inserted as “Custom Event Class”.

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

Modified: July 18, 2019 at 2:57 pm