---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://ads.yandex.com/helpcenter/en/dev/unity/unity-package-manager.md
  - https://ads.yandex.com/helpcenter/ru/dev/unity/unity-package-manager.md
  - href: en/dev/unity/unity-package-manager.md
    type: text/markdown
    title: Markdown version
  - href: llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://ads.yandex.com/helpcenter/en/llms.txt

<!--
Используется в Boost: boost/ru/ad-monetization/dev/unity
-->

# Integrating via Unity Package Manager

Using **Package Manager** in the **Project Settings** tab of the Unity editor with the **OpenUPM** public registry allows you to integrate Yandex Mobile Ads dependencies without manual `.unitypackage` imports. With this approach, you can install the **main SDK package** and any **individual packages** of ad network adapters from the [supported list](https://ads.yandex.com/helpcenter/en/easy/integration/unity/integration/supported-adapters.md), if needed. To enable mediation, use the package `Yandex Mobile Ads Mediation plugin for Unity`.

{% note info %}

An adapter is a module that serves as a mediator between the Yandex Advertising Network and a third-party ad network.

{% endnote %}


## Connecting via OpenUPM

{% cut "Connecting OpenUPM Registry" %}

1. In Unity, select **Edit** → **Project Settings** in the top menu. In the new window, select **Package Manager** on the left:

   ![](https://doc-static.yandex.net/support/RSYA-RMP/gif/unity_upm_registry_setup.gif)

2. Add a registry named **OpenUPM** with the following fields:

   - URL: `https://package.openupm.com`.
   - Scopes with two values: `com.yandex` and `com.google`.

{% endcut %}


{% cut "Integrating iOS or Android" %}

<!-- source: en/easy/_includes/mediation-notes.md -->
{% note tip "Yandex SDK 7.16.0+" %}

Integration via UPM starting with version 7.16.0 is relevant for all supported Unity versions.

{% endnote %}
<!-- endsource: en/easy/_includes/mediation-notes.md -->

Go to the **Yandex Mobile Ads** tab in **OpenUPM** and install the required package `Yandex Mobile Ads plugin for Unity`.

![](https://doc-static.yandex.net/support/RSYA-RMP/gif/unity_extended_mediation_v1_2.gif)

{% note warning %}

Once the SDK is installed, you'll see an External Dependency Manager activation window. Click **Enable** to resolve dependencies.

{% endnote %}

{% endcut %}

<!-- source: en/easy/_includes/mediation-notes.md -->
{% note warning "Yandex SDK 7.14.x and 7.15.x" %}

The instructions below are applicable only to minor Yandex SDK versions 14 and 15.

{% endnote %}
<!-- endsource: en/easy/_includes/mediation-notes.md -->

{% cut "Integrating with Unity 2023 or lower" %}

1. Go to the **Yandex Mobile Ads** tab in **OpenUPM** and install the required package `Yandex Mobile Ads Mediation plugin for Unity`.

   ![](https://doc-static.yandex.net/support/RSYA-RMP/gif/unity_extended_mediation_v1_2.gif)

   {% note warning %}

   Once the SDK is installed, you'll see an External Dependency Manager activation window. Click **Enable** to resolve dependencies.

   {% endnote %}

2. In the Unity project tree, go to the **Assets/Plugins/Android** folder and open `mainTemplate.gradle`.

3. In the main **Dependencies** block at the beginning of the file, add the code block (the second dependency in the snippet). Libraries must have the same major and minor versions. You can verify this in our [official repository](https://mvnrepository.com/artifact/com.yandex.android/mobileads-mediation).

   ```gradle
   	dependencies {
   		// ... other dependencies
   		implementation("com.yandex.android:mobileads:7.15.1") // The main package installed via UPM

   		// Add these lines to the existing dependencies
   		implementation("com.yandex.android:mobileads:7.15.0-unity") {
   			force = true
   		}
   	}
   ```

{% endcut %}


## Connecting manually by importing SDK packages


{% cut "Integrating iOS or Android" %}

<!-- source: en/easy/_includes/mediation-notes.md -->
{% note tip "Yandex SDK 7.16.0+" %}

Integration via UPM starting with version 7.16.0 is relevant for all supported Unity versions.

{% endnote %}
<!-- endsource: en/easy/_includes/mediation-notes.md -->

1. Open our [GitHub repository](https://github.com/yandexmobile/yandex-ads-unity-plugin/releases) and download the package:

   <!-- TODO: set the parametr 'yandex-mobileads-mediation-7.17.0.unitypackage' as param -->

   ```
   yandex-mobileads-lite-8.0.0.unitypackage
   ```

2. In Unity, go to **Assets/Import Package/Custom Package** in the top menu and chose the package you downloaded earlier.

   {% note warning %}

   Once the SDK is installed, you'll see an External Dependency Manager activation window. Click **Enable** to resolve dependencies.

   {% endnote %}

{% endcut %}

<!-- source: en/easy/_includes/mediation-notes.md -->
{% note warning "Yandex SDK 7.14.x and 7.15.x" %}

The instructions below are applicable only to minor Yandex SDK versions 14 and 15.

{% endnote %}
<!-- endsource: en/easy/_includes/mediation-notes.md -->

{% cut "Integrating the core build with Unity 2023 or lower" %}

1. Open our [GitHub repository](https://github.com/yandexmobile/yandex-ads-unity-plugin/releases) and download the package:

   ```
   yandex-mobileads-lite-7.15.1.unitypackage
   ```

   {% note warning %}

   Once the SDK is installed, you'll see an External Dependency Manager activation window. Click **Enable** to resolve dependencies.

   {% endnote %}

2. In the Unity project tree, go to the **Assets/Plugins/Android** folder and open `mainTemplate.gradle`.

3. In the main **Dependencies** block at the beginning of the file, add the code block (the second dependency in the snippet). Libraries must have the same major and minor versions. You can verify this in our [official repository](https://mvnrepository.com/artifact/com.yandex.android/mobileads-mediation).


   ```Gradle
   dependencies {
       // ... other dependencies
       implementation("com.yandex.android:mobileads:7.15.1") // The main package installed via UPM
       implementation("com.yandex.android:mobileads:7.15.0-unity") {
           force = true
       }
   }
   ```

{% endcut %}
