Smaato integration guide

This guide will instruct you step-by-step on how to set Smaato live as an ad network on the ironSource Mediation platform.

Before you start Make sure you have correctly integrated ironSource’s banner into your application.

Step 1. Create a Smaato account

To access Smaato ad inventory through ironSource‘s mediation platform, you must create an account with Smaato. You can do so here.

Step 2.Retrieve Your Smaato Account ID’s and Report Keys

Follow these steps to retrieve your Smaato account key’s which need to be inserted into your ironSource Network Setup Module in order for Smaato to work correctly in connection with ironSource:

  1. Publisher ID – In your Smaato account go to  Inventory Publisher id
  2. Client ID and Client Secret – Go to QAuth API Credentials Client ID and Client Secret 

Step 3. Create an application in Smaato Network

Follow these steps to create your Smaato application:

  1. In your Smaato account go to  Inventory New App


Step 4. Activate Smaato Network

Inside the ironSource platform, access the SDK Networks setup to configure Smaato parameters into your ironSource account.

  1. Once you have all the required parameters, log in to your ironSource account and go to Monetize ➣ Setup SDK Networks
  2. Select Smaato from the table of Available Networks , add the parameters, and click on the Activate button. Then click Save.
  3. Select Smaato from the list of ad networks and click Setup.
  4. Enter your app’s Smaato App name and Adspace ID. Set the status to Active and click Save.You’ll see Smaato listed as Active for Mediation on your Setup dashboard.

Step 5. Add the Smaato adapter to your build

ironSource supports both Gradle dependencies and manual download mechanisms.

Gradle:

  1. Make sure the following Maven URL exist in your build.gradle script of your app module .
    repositories
    maven 
    { 
       url "https://s3.amazonaws.com/smaato-sdk-releases/" 
       url "https://android-sdk.is.com/"
    }
     
    
  2. Add the adapter’s Maven name to your build.gradle script of your app module.
    implementation 'com.ironsource.adapters:smaatoadapter:4.3.12'
    implementation 'com.smaato.android.sdk:smaato-sdk-banner:22.7.1'
    implementation 'com.smaato.android.sdk:smaato-sdk-in-app-bidding:22.7.1'
    implementation 'com.smaato.android.sdk:smaato-sdk-interstitial:22.7.1'
    implementation 'com.smaato.android.sdk:smaato-sdk-rewarded-ads:22.7.1'

Manual download:

  1. Download the Smaato Adapter:
    Add the Smaato Adapter and SDK to your build. You can find the latest Smaato files here.
  2. Add the Smaato Adapter to your Project:
    After you download the Adapter; drop the SmaatoAdapter AAR into the libs folder in your Android Project.
    AdColony integration with Supersonic Mediation - 10
  3. Make sure you add the following to your Gradle build file under the dependencies section:
    implementation 'com.ironsource.adapters:smaatoadapter:4.3.12'
    implementation 'com.smaato.android.sdk:smaato-sdk-banner:22.7.1'
    implementation 'com.smaato.android.sdk:smaato-sdk-in-app-bidding:22.7.1'
    implementation 'com.smaato.android.sdk:smaato-sdk-interstitial:22.7.1'
    implementation 'com.smaato.android.sdk:smaato-sdk-rewarded-ads:22.7.1'
  4. Download the Smaato  file from here:  
    1. If using Eclipse: Import the .AAR file as a library project.
    2. If using Android Studio, download the Smaato .AAR file and add as a dependency to your own module. Go to FileNewNew ModuleImport .AAR and navigate to the location where the Smaato .AAR file has been downloaded.
      android-studio-aar-integration

Step 6. Additional configuration

If your application targets Android 9 Pie (API level 28) or higher, follow the integration steps below.

  1. Configure the networkSecurityConfig attribute in the application tag in AndroidManifest.xml:
    android:networkSecurityConfig="@xml/network_security_config"

     

  2. Create the network_security_config.xml in the XML resource directory with:
    <?xml version="1.0" encoding="utf-8"?>
    <network-security-config>
       <base-config cleartextTrafficPermitted="true" />
    </network-security-config>

You can read more about the Network security configuration here.