Ad mediation using IronSource

Warning.

This is an archived version of the documentation. Actual documentation for all platforms can be found here.

  1. Supported ad formats
  2. Enable an adapter for IronSource mediation
  3. Setting up mediation in IronSource
  4. Requesting and displaying ads using the IronSource Android SDK

Supported versions of libraries and platforms:

YandexMobileAdsSDK

Minimum supported version: 5.10.0.

Maximum supported version: 6.0.0 (up to but not including).

IronSourceSDK

Minimum supported version: 7.3.1.1.

Maximum supported version: 7.4.0.0 (up to but not including).

Enable an adapter for IronSource mediation

Enable using Gradle

Add the following dependencies to the build.gradle file at the application level:

implementation 'com.yandex.android:mobileads:5.10.0'
implementation 'com.yandex.ads.adapter:ironsource-mobileads:5.10.0.0'
implementation 'com.ironsource.sdk:mediationsdk:7.3.1.1'
Note.

If your project uses proguard, you must add the following lines in the proguard.cfg file:

-keep class com.ironsource.mobileads.** {
    *;
}

Setting up mediation in IronSource

To add the Yandex network to the list of networks available for mediation, use a Custom network. See the documentation on how to configure the Custom network at this link. Specify 15b8f8fc1 as the network key. For each ad unit created in IronSource, you need to issue an adUnitId in the Yandex partner interface.

Creating an ad unit

  1. Configure the Custom network. The documentation is available at this link.
  2. Specify 15b8f8fc1 as the network key. Once the Custom network is added, the Yandex network appears in the SDK networks section.

  3. Click Setup to open a dialog box with the new ad unit.

  4. Set up the ad unit. You can get the adUnitId parameter value in the Yandex Partner interface.

  5. After adding the ad unit, the Custom section will show an active Interstitial Ad Unit for the Yandex network.

  6. If you want to delete the ad unit, hover over it. The delete icon appears at the end of the line on the right.

Requesting and displaying ads using the IronSource Android SDK

Interstitial ads
Follow the steps described in the IronSource documentation for interstitial ads.
Rewarded ads
Follow the steps described in the IronSource documentation for rewarded ads.
Banner ads
Follow the steps described in the IronSource documentation for banner ads.

You can download examples of using ads at the links.