AppLovin MAX mediation

Note

Follow this guide if you're already using AppLovin MAX mediation and want to add the Yandex Advertising Network to it as a Custom Network.

If you want to manage external ad networks through the Yandex Advertising Network interface, use Yandex Mоobile Mediation.

To add the Yandex Advertising Network to AppLovin MAX mediation, follow these steps:

  1. Integrate the Yandex adapter into your app.
  2. Create ad units in the Yandex Advertising Network interface.
  3. Add Yandex as a custom network in the AppLovin MAX web interface.
  4. Connect the network to your MAX ad units.
  5. Test the integration.

Connecting the adapter

You can connect the Yandex Advertising Network to MAX via the AppLovin adapter or the Yandex adapter. The adapter you choose determines the class names you need to specify in the custom network settings.

AppLovin adapter

For AppLovin MAX SDK version 13.7.0, use the AppLovin adapter for Yandex. It's added with the com.applovin.mediation:yandex-adapter dependency. For more information, see the AppLovin guide.

Adapter class name: com.applovin.mediation.adapters.YandexMediationAdapter.

Yandex adapter

For newer AppLovin MAX SDK versions, we recommend using the Yandex adapter. When switching to it, remove the AppLovin adapter for Yandex from your app.

  1. The adapter is published in the Yandex Mobile Ads repository. Add the repository to the repositories block of your project's settings.gradle or build.gradle file:

    maven {
        url = uri("https://ads.maven.yandex.net/")
        content {
            includeGroup("com.yandex.android")
            includeGroupAndSubgroups("com.yandex.ads")
        }
    }
    
  2. Add the adapter dependency to the build.gradle file of your app module, usually app/build.gradle:

    dependencies {
        ...
        implementation 'com.yandex.ads.adapter:applovin-mobileads:8.7.0.0'
    }
    

Adapter class name: com.applovin.mediation.adapters.YandexCustomMediationAdapter.

Warning

Adapter class names are set in the custom network for the whole MAX account. If you replace them in an existing network, app versions with the AppLovin adapter will stop receiving Yandex ads. To keep older app versions working, create a separate custom network for the Yandex adapter and connect it to the same ad units.

Adding the Yandex Advertising Network in the AppLovin MAX web interface

1. Create Yandex ad units

In MAX, a custom network works only in the waterfall. To set several price levels, create several ad units of the same format with different eCPM floors in the Yandex Advertising Network interface for each MAX ad unit.

Save the IDs of the created ad units in the R-M-XXXXXX-Y format: you'll need to specify them in MAX as Placement IDs.

2. Add the Yandex custom network

  1. In the AppLovin web interface, go to MAX → Mediation → Manage → Networks.

  2. At the bottom of the network list, click Click here to add a Custom Network.

  3. Fill out the form:

    • Network Type: SDK.

    • Custom Network Name: The network name, such as YAN Custom. The network is displayed under this name in MAX ad units and reports.

    • iOS Adapter Class Name and Android / Fire OS Adapter Class Name: The class names of the integrated adapter:

      Adapter iOS Adapter Class Name Android / Fire OS Adapter Class Name
      AppLovin ALYandexMediationAdapter com.applovin.mediation.adapters.YandexMediationAdapter
      Yandex YMAAppLovinMediationAdapter com.applovin.mediation.adapters.YandexCustomMediationAdapter
  4. Click Save.

Creating a custom network in AppLovin MAX

Creating a custom network in AppLovin MAX

The network is created once per account and becomes available in all apps and ad units.

Warning

Class names are case-sensitive and must not contain spaces. If the app has no class with the specified name, MAX skips the network in the waterfall with the adapter not loaded error.

3. Connect the network to a MAX ad unit

  1. Go to MAX → Mediation → Manage → Ad Units and open the ad unit.

  2. In the Custom Networks section, expand the row with your custom network, such as Custom Network (SDK) - YAN Custom.

  3. Turn on the Status toggle.

  4. Fill in the fields:

    • App ID (optional): Leave empty. The adapter doesn't use this field.
    • Placement ID: The Yandex ad unit ID in the R-M-XXXXXX-Y format.
    • CPM Price: The price in USD at which MAX places the network in the waterfall.
    • Custom Parameters: Leave empty.
    • Country Targeting: Limit countries if needed.
  5. To add another price level, click Add New Placement ID and specify another Yandex ad unit and its CPM.

  6. Click Save.

Yandex custom network in a MAX ad unit

Repeat these steps for each MAX ad unit that should serve Yandex Advertising Network ads.

Warning

The CPM Price value must match the eCPM floor set for the ad unit in the Yandex Advertising Network interface. MAX accepts prices only in USD, so convert a floor set in another currency to USD.

If the ad unit uses the Maximum revenue strategy in the Yandex Advertising Network interface and has no floor, enter the expected eCPM or the eCPM for previous periods.

Note

MAX calculates custom network impression revenue from the CPM Price value: in MAX revenue callbacks and reports, a Yandex impression is worth CPM Price / 1000 with publisher_defined precision. See the actual revenue in the Yandex Advertising Network statistics.

4. Test the integration

MAX doesn't apply settings changes immediately: the network may appear in the waterfall 15–30 minutes after you save.

  1. To test ad display, temporarily set Placement ID to a demo ad unit of the required format:

    • banner ads: demo-banner-yandex;
    • interstitial ads: demo-interstitial-yandex;
    • rewarded ads: demo-rewarded-yandex.

    After testing, switch back to your production ad unit ID.

  2. Open MAX Mediation Debugger, go to Ad Units, and select the ad unit. The WATERFALL section should list your custom network with your Placement ID and CPM.