Skip to main content

Equativ mediation

This article shows you how to deliver Teads interstitial ads on your application using the Equativ Display SDK v8 mediation adapter.


Sample App

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.

Teads Android Sample App on GitHub

What is available​

FormatEquativ v8
InterstitialSupported
MediaNot available yet
NativeNo v8 path — Equativ has no native mediation contract
Banner (Anchored)No v8 path — SASBannerView requires fixed dimensions
Adapter coexistence

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​

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'
}
Direct integration

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.

NameValue
SDK NameTeads
Format TypeInterstitial
Adapter Classtv.teads.adapter.equativ.interstitial.TeadsEquativInterstitialAdapter
Placement InfoJSON string (see below)

Placement Info​

Use the following parameters:

ParameterTypeRequiredDescription
articleUrlStringYesThe URL of the article/page
widgetIdStringYesTeads widget ID
installationKeyStringYesTeads installation key
pbfDoubleNoFloor 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"}
Production parameters

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.

import com.equativ.displaysdk.util.SASConfiguration

// 1. Initialize Equativ
if (!SASConfiguration.isConfigured) {
SASConfiguration.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.

Activity context

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.

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()
}

Showing the Ad​

Once loaded, present the interstitial ad by calling show() at a natural transition point in your app:

// 5. Present the ad at a natural transition point in your app
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:

override fun onDestroy() {
interstitialManager?.interstitialManagerListener = 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