Integration Guides


Smaato - version 9.2.3 9.2.3

Quick Start

iOS Android

1 Overview

The Revmob Smaato adapter allows you to serve ads within your application through the Smaato mediation platform, including Revmob as a 3rd party network.
Our adapter only allows to serve Interstitial and Banner ads. The others ad units offered by our SDK are not supported by mediation services.

Integration

  1. If you don't have Smaato integrated into your project yet, please follow Smaato's Android integration guide.
  2. In your app's src/ directory, create a com.smaato.soma.mediation package in your application if it does not have it already. Alternatively, you can use other package names, but don't forget to make the appropriate changes and to add the correct package name to Smaato's dashboard.
  3. Download our SDK and add the .jar to your project.
  4. If using interstitial ads, follow our guide to add the necessary permissions to your Android Manifest.
  5. Download our adapter and unzip it.
  6. Include the .zip contents in your com.smaato.soma.mediation package.
  7. Configure your Smaato account to serve Revmob Ads to your application.

Important: If you're using interstitial ads, as noted in Smaato's Android integration guide, an instance of Activity should be passed to the constructor.

Integration

  1. If you don't have Smaato integrated into your project yet, please follow Smaato's iOS integration guide.
  2. Download our SDK and add the framework to your application. For instructions on how to add our framework, please follow our guide.
  3. Download our adapter and unzip it.
  4. Add the classes contained in the .zip to your project
  5. Configure your Smaato account to serve Revmob Ads to your application.

Adding Revmob as a Custom Native Network

  1. Log into your account on Smaato's website.
  2. Navigate to the Networks tab, click on the "Add a Network" button.

  3. On the pop up's bottom, select Custom SDK Network.

  4. Save your new network, and then create a New Line Item.

  5. On this new page, fill all the required information and the following fields:

    • Class Name:
      • You must add the fully-qualified class name of the Revmob adapter:
      • com.smaato.soma.mediation.RevMobBannerAdapter (or the package name that was used in the Integration step) for banner ads.
      • com.smaato.soma.mediation.RevMobInterstitialAdapter (or the package name that was used in the Integration step) for Interstitial ads.
      • RevMobBannerAdapter for banner ads.
      • RevMobInterstitialAdapter for Interstitial ads.
    • Method Name:
      • loadBanner for banner ads.
      • loadInterstitial for Interstitial ads.
    • Custom Data:
      • A JSON containing your app ID (mandatory) and your ad unit placement ID (optional) :
        {"mediaId": "<YOUR_APP_ID>", "placementId":"<YOUR_AD_UNIT_PLACEMENT_ID>"}.
        Obs.: Create your app here if haven't done it yet.

  6. On the targeting section, add the Adspaces you wish to use the Adapter on, with the correct Ad unit size set.

  7. Run your app. You should be able to receive Revmob ads now.