---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ads.yandex.com/helpcenter/en/dev/unity7/quick-start-mm.md
  - https://ads.yandex.com/helpcenter/ru/dev/unity7/quick-start-mm.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ads.yandex.com/helpcenter/en/llms.txt

# Integrating Yandex Mediation

{% note warning %}

Be sure to update to the latest adapter versions ([Yandex Mobile Mediation](https://ads.yandex.com/helpcenter/en/dev/unity7/list-network.md) and adapters [for third-party mediation networks](https://ads.yandex.com/helpcenter/en/dev/unity7/third-party-mediation.md)). Otherwise, errors from improper adapter integration might occur, preventing the ad from being served.


{% endnote %}

[Mobile mediation](https://ads.yandex.com/helpcenter/en/monetization/yandex-mediation/index.md) is a platform that automatically selects ads from a variety of ad networks using ML algorithms, which helps you maximize your revenue. All settings are preconfigured, so you can start using it immediately without having to set up each network individually.

If you've been using the Mobile Ads SDK with a single Yandex network, migrating to Yandex Mediation requires no code changes. You only need to preset the sections of third-party advertising networks' web interfaces.

Mobile Ads Unity is a plugin for the [Unity3d](https://docs.unity3d.com/Manual/index.html) gaming platform, which includes support for the Yandex Mobile Ads SDK.


## Prerequisites

To prepare your app, follow the steps described in the next sections.

### App requirements

* To use this SDK, your app's Target API Level must be set to 31 or above.
* To load any type of ad, iOS version 13 or higher is required.
* Use Xcode 16.4 or higher.

### Set up the app in your Yandex Advertising Network account

<!-- source: en/dev/_includes7/reg.md -->
Here's how to register your app in the Yandex Advertising Network:

1. [Log in](https://partner.yandex.com/) or [register](https://passport.yandex.ru/auth/list?origin=rsy_ligth_in&retpath=https%3A%2F%2Fpartner.yandex.ru%2Fform%2F?roles%5B%5D=27) your account in the Yandex Advertising Network.
2. [Register](https://passport.yandex.ru/auth/list?origin=rsy_ligth_in&retpath=https%3A%2F%2Fpartner.yandex.ru%2Fform%2F?roles%5B%5D=27) your app in the Yandex Advertising Network.
<!-- endsource: en/dev/_includes7/reg.md -->

## Integration {#integration}

<!-- source: en/dev/_includes7/unity-library-ads.md -->
{% note warning %}

`yandex-ads-unity-plugin` only runs in Android and iOS environments. Currently, ads can't be loaded and displayed in the Unity editor.

{% endnote %}
<!-- endsource: en/dev/_includes7/unity-library-ads.md -->

To connect individual adapters, add a package with  a supported `yandex-mobileads-lite-x.x.x.unitypackage` version and and follow the specific instructions for each adapter to enable them:

1. [Set up mediation](https://ads.yandex.com/helpcenter/en/monetization/yandex-mediation/setup.md) in the Yandex Advertising Network interface.

2. Download the [yandex-ads-unity-plugin](https://github.com/yandexmobile/yandex-ads-unity-plugin) directory and add the package `yandex-mobileads-lite-7.18.2.unitypackage`. You will also be prompted to install the Google resolver. If you've already added the Google resolver to your project, uncheck the box.

      {% cut "How to add a package" %}

      Select the required plugin (**Assets** → **Import Package** → **Custom Package**) and click **Import**.

      {% endcut %}

3. Use the Google resolver to install dependencies: enable  **auto-resolve** or select the menu item **Assets** → **External Dependency Manager** → **Android Resolver** → **Resolve**.

4. To test the Mobile Ads Unity plugin, use one of the demo scripts in the **samples** directory of the [yandex-ads-unity-plugin](https://github.com/yandexmobile/yandex-ads-unity-plugin) repository. Copy the script to the project directory and add it as a **Component** to the main camera.

5. Connect the required [adapters](https://ads.yandex.com/helpcenter/en/dev/unity7/list-network.md) separately using the appropriate packages.
