AppLovin MAX mediation

Note

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

If you want to manage external ad networks through the Boost interface, use Yandex Mobile Mediation.

To add the Boost to AppLovin MAX mediation, follow these steps:

  1. Integrate the Yandex adapter into your project.
  2. Create ad units in the Boost 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 Boost 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 Unity Plugin version 8.6.6, use the AppLovin adapter for Yandex. Install it with the Integration Manager:

  1. In Unity, select AppLovin → Integration Manager.
  2. In the Mediated Networks section, find Yandex and click Install in the Actions column.
  3. In the Import Unity Package window, click Import.

The Integration Manager adds the adapter to the Assets/MaxSdk/Mediation/Yandex folder. If the MAX plugin is installed with the Unity Package Manager, it adds the com.applovin.mediation.adapters.yandex.android and com.applovin.mediation.adapters.yandex.ios packages instead of the folder.

Adapter class names:

  • Android: com.applovin.mediation.adapters.YandexMediationAdapter.
  • iOS: ALYandexMediationAdapter.

Warning

Starting with Yandex Mobile Ads Unity Plugin 8.7.0, you must use the Yandex adapter. See below for how to integrate it.

Yandex adapter

For newer AppLovin MAX Unity Plugin versions, use the Yandex adapter. When switching to it, remove the AppLovin adapter for Yandex from your project.

The Yandex adapter requires AppLovin MAX Unity Plugin version 8.6.6 or later. Integrate the adapter in one of the following ways:

  1. Download the applovin-mobileads-mediation-8.7.0.unitypackage package from the Yandex Mobile Ads Unity Plugin 8.7.0 release and import it: select Assets → Import Package → Custom Package and click Import.
  2. Use the External Dependency Manager for Unity (EDM4U) to install dependencies: enable auto-resolve or select Assets → External Dependency Manager → Android Resolver → Resolve. EDM4U installs iOS dependencies when building the Xcode project.
  1. Add the OpenUPM registry: in the Unity top menu, select Edit → Project Settings → Package Manager and add a registry with the https://package.openupm.com URL and the com.yandex and com.google scopes. For more information, see Integrating via Unity Package Manager.
  2. Go to the Yandex Mobile Ads tab in OpenUPM and install the com.yandex.applovin-mobileads-mediation package.

Adapter class names:

  • Android: com.applovin.mediation.adapters.YandexCustomMediationAdapter.
  • iOS: YMAAppLovinMediationAdapter.

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 Boost 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 Boost 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 Boost ads.

Warning

The CPM Price value must match the eCPM floor set for the ad unit in the Boost 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 Boost 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 Boost 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: call MaxSdk.ShowMediationDebugger() after the MAX SDK is initialized. Go to Ad Units and select the ad unit. The WATERFALL section should list your custom network with your Placement ID and CPM.