Equativ mediation
This article shows you how to deliver Teads interstitial ads on your application using the Equativ Display SDK v8 mediation adapter.
The official Teads SDK sample application includes a working Equativ integration. Use it for implementation examples and as a reference while you set up this adapter.
What is available
| Format | Equativ v8 |
|---|---|
| Interstitial | Supported |
| Media | Not available yet |
| Native | No v8 path — Equativ has no native mediation contract |
| Banner (Anchored) | No v8 path — SASBannerView requires fixed dimensions |
smartadapter (v7) and equativadapter (v8) cannot coexist in the same app. Some of their dependencies clash with each other. Pick one generation. For the deprecated v7 adapter, see Smart AdServer mediation (legacy).
Installation
Before installing the Teads Equativ adapter, you will need to integrate the Equativ Display SDK into your application.
Prerequisites
- Import the Teads inApp SDK in your project.
- Equativ Display SDK: 8.6.1 (the version the adapter is built and tested against)
- Android API 23+ (the Equativ v8 AAR declares
minSdk23)
Gradle
project/build.gradle
allprojects {
repositories {
...
maven { url "https://teads.jfrog.io/artifactory/SDKAndroid-maven-prod" }
maven { url 'https://packagecloud.io/smartadserver/android/maven2' }
}
}
app/build.gradle
dependencies {
...
implementation 'com.equativ.android:equativ-display-sdk:8.6.1'
// Teads inApp SDK
implementation("tv.teads.sdk.android:sdk:6.3.0@aar") {
transitive = true
}
// Teads Equativ Adapter
implementation 'tv.teads.sdk.android:equativadapter:6.3.0'
}
- Interstitial
This page covers Equativ Display SDK v8 mediation. If you integrate Teads directly (no mediator), see the direct integration guide.
Defining a Custom Event
In order to display a Teads interstitial ad using Equativ mediation, you need to create an insertion on the Equativ Management Platform (EMP) using the In-App Mediation Custom Adapter template.
| Name | Value |
|---|---|
| SDK Name | Teads |
| Format Type | Interstitial |
| Adapter Class | tv.teads.adapter.equativ.interstitial.TeadsEquativInterstitialAdapter |
| Placement Info | JSON string (see below) |
Placement Info
Use the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| articleUrl | String | Yes | The URL of the article/page |
| widgetId | String | Yes | Teads widget ID |
| installationKey | String | Yes | Teads installation key |
| pbf | Double | No | Floor price in US dollars. Forwarded to the auction as the placement floor price. |
For testing purposes, use the following:
{"articleUrl":"https://mobile-demo.outbrain.com","widgetId":"INT_APP_1","installationKey":"NANOWDGT01"}
For production, your articleUrl, widgetId, and installationKey will be unique values provided by your product manager. Contact your local account manager to obtain your production parameters.
Integration
Initialize Equativ
Configure the Equativ Display SDK once before loading any ads. Call this as early as possible — typically in Application.onCreate(). Any ad call before configure() fails with an IllegalStateException.
- Kotlin
- Java
import com.equativ.displaysdk.util.SASConfiguration
// 1. Initialize Equativ
if (!SASConfiguration.isConfigured) {
SASConfiguration.configure(context)
}
import com.equativ.displaysdk.util.SASConfiguration;
// 1. Initialize Equativ — SASConfiguration is a Kotlin object
if (!SASConfiguration.INSTANCE.isConfigured()) {
SASConfiguration.INSTANCE.configure(context);
}
Load, Listen and Show
The full integration follows this flow: create an Equativ placement, create an interstitial manager, set up lifecycle callbacks, load the ad, then show it when ready.
Build SASInterstitialManager with an Activity context. Equativ forwards that context to the Teads adapter, which requires an Activity — with an application context the Teads ad fails to load.
- Kotlin
- Java
import com.equativ.displaysdk.ad.interstitial.SASInterstitialManager
import com.equativ.displaysdk.exception.SASException
import com.equativ.displaysdk.model.SASAdInfo
import com.equativ.displaysdk.model.SASAdPlacement
var interstitialManager: SASInterstitialManager? = null
// 2. Create the Equativ placement — site / page / format IDs from EMP
val adPlacement = SASAdPlacement(
YOUR_SITE_ID, // Long — Equativ site id
YOUR_PAGE_ID, // Long — Equativ page id
YOUR_FORMAT_ID // Long — Equativ format id
)
// 3. Create the manager and listen to lifecycle events
// context MUST be an Activity
interstitialManager = SASInterstitialManager(context, adPlacement).apply {
interstitialManagerListener = object : SASInterstitialManager.InterstitialManagerListener {
override fun onInterstitialAdLoaded(adInfo: SASAdInfo) {
// Ad is now ready to show
}
override fun onInterstitialAdFailedToLoad(exception: SASException) {
// Ad failed to load — try again later or skip
}
override fun onInterstitialAdShown() {
// Ad is now visible fullscreen
}
override fun onInterstitialAdFailedToShow(exception: SASException) {
// Ad failed to display
}
override fun onInterstitialAdClosed() {
// Ad was closed by the user
}
override fun onInterstitialAdClicked() {
// User clicked the ad
}
override fun onInterstitialAdAudioStart() {}
override fun onInterstitialAdAudioStop() {}
}
// 4. Load the interstitial ad
loadAd()
}
import com.equativ.displaysdk.ad.interstitial.SASInterstitialManager;
import com.equativ.displaysdk.exception.SASException;
import com.equativ.displaysdk.model.SASAdInfo;
import com.equativ.displaysdk.model.SASAdPlacement;
// declared as a field so it can be reassigned from the anonymous callbacks below
private SASInterstitialManager interstitialManager;
// 2. Create the Equativ placement — site / page / format IDs from EMP
SASAdPlacement adPlacement = new SASAdPlacement(
YOUR_SITE_ID, // long — Equativ site id
YOUR_PAGE_ID, // long — Equativ page id
YOUR_FORMAT_ID // long — Equativ format id
);
// 3. Create the manager and listen to lifecycle events
// context MUST be an Activity
interstitialManager = new SASInterstitialManager(context, adPlacement);
interstitialManager.setInterstitialManagerListener(
new SASInterstitialManager.InterstitialManagerListener() {
@Override
public void onInterstitialAdLoaded(SASAdInfo adInfo) {
// Ad is now ready to show
}
@Override
public void onInterstitialAdFailedToLoad(SASException exception) {
// Ad failed to load — try again later or skip
}
@Override
public void onInterstitialAdShown() {
// Ad is now visible fullscreen
}
@Override
public void onInterstitialAdFailedToShow(SASException exception) {
// Ad failed to display
}
@Override
public void onInterstitialAdClosed() {
// Ad was closed by the user
}
@Override
public void onInterstitialAdClicked() {
// User clicked the ad
}
@Override
public void onInterstitialAdAudioStart() {}
@Override
public void onInterstitialAdAudioStop() {}
}
);
// 4. Load the interstitial ad
interstitialManager.loadAd();
Showing the Ad
Once loaded, present the interstitial ad by calling show() at a natural transition point in your app:
- Kotlin
- Java
// 5. Present the ad at a natural transition point in your app
interstitialManager?.show()
// 5. Present the ad at a natural transition point in your app
if (interstitialManager != null) {
interstitialManager.show();
}
After an interstitial has been shown it is discarded — load a new ad on the same manager if the placement has not changed.
Releasing the Manager
Call onDestroy() when the hosting Activity is destroyed:
- Kotlin
- Java
override fun onDestroy() {
interstitialManager?.interstitialManagerListener = null
interstitialManager?.onDestroy()
interstitialManager = null
super.onDestroy()
}
@Override
protected void onDestroy() {
if (interstitialManager != null) {
interstitialManager.setInterstitialManagerListener(null);
interstitialManager.onDestroy();
interstitialManager = null;
}
super.onDestroy();
}
Mediation settings
Find the full Placement Info JSON parameter list in Settings Configuration — Interstitial (Equativ Mediation).
Checklist
- ✅ Ensure Brand Safety is enabled
- ✅ Ensure you comply with privacy legal requirements (GDPR/CCPA/GPP)
- ✅ Comply with app-ads.txt
- ✅ Implement proper error handling
- ✅ Pass an Activity context to
SASInterstitialManager - ✅ Configure Equativ (
SASConfiguration.configure) before any ad call - ✅ Call
onDestroy()when the hosting Activity is destroyed - ✅ Test with different JSON parameter configurations and on different devices and screen sizes