This repository contains all mediation adapters we officially support for the legacy Smart Display SDK version 7. For the mediation adapters compatible with the new Equativ Display SDK 8, please refer to this repository instead.
You can install the Smart Display SDK, one or several mediation adapters and their related third party SDKs using Gradle.
First declare the Smart repository in the main build.gradle file of your project. Also add any other Maven repository that might be required by a third party SDK (see table below).
allprojects {
repositories {
google()
jcenter()
// add the Smart repository
maven { url 'https://packagecloud.io/smartadserver/android/maven2' }
// add other third party repositories if necessary (see table below)
// …
}
}
Then in the build.gradle of to your application module, you can now import the adapters you need. Any dependency will be automatically fetched (Smart Display SDK, third party SDK, …).
For instance you can import InMobi and Tapjoy as follows:
implementation('com.smartadserver.android.mediation:smart-display-sdk-with-inmobi:7.25.0.0')
implementation('com.smartadserver.android.mediation:smart-display-sdk-with-vungle:7.25.0.0')
Note on version numbers:
The latest version is: 7.25.0.0
If you import several third party adapters using Gradle, you must use the same version number for all of them.
The version number always correspond to the underlying Smart Display SDK for its first three digits, then a technical version corresponding to the adapters. For instance, 7.24.0.1 will import the first technical release of the adapters with the Smart Display SDK 7.24.0.
Available adapters are:
Package name | Supported SDK version | Comments | Maven repository |
---|---|---|---|
smart-display-sdk-with-adcolony |
4.6.5 | n/a | n/a |
smart-display-sdk-with-applovin |
9.14.12 | n/a | n/a |
smart-display-sdk-with-googlemobileads |
23.1.0 | n/a | n/a |
smart-display-sdk-with-inmobi |
10.0.1 | n/a | n/a |
smart-display-sdk-with-ogury |
5.6.2 | n/a | maven {url 'https://maven.ogury.co'} |
smart-display-sdk-with-tapjoy |
12.8.1 | n/a | maven { url 'https://sdk.tapjoy.com/' } |
smart-display-sdk-with-vungle |
6.10.3 | n/a | mavenCentral() |
You can still install the adapters manually if needed:
-
First make sure you have installed the Smart Display SDK. More information here.
-
Copy and paste the classes of the adapter(s) you need to your project sources. Note that some adapter classes have a base class, do not forget to copy it as well. Beware of the fact that the adapter classes are located in a folder structure consistent with their declared package names and the class name sent in the mediation ad sent by Smart delivery. For the whole mediation flow to work properly, you must leave this folder structure untouched when copying it in your project. Typically, you should copy the com/ root folder containing the classes directly in one of the source folders of your Android project, for instance src/main/Java. If that com/ folder already exists, simply merge it with the one containing the adapters. Failing to do so will prevent the SDK from properly instantiating the adapters when it receives a mediation ad, and the ad call will then fail.
-
Make sure to integrate the SDK corresponding to the chosen adapter(s).