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


[//]: # (Эта страница переводится также на бразильский португальский — pt-BR)

# Integrating Yandex Mobile Mediation

{% note warning %}

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


{% endnote %}

[Yandex 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.


## Prerequisites {#prolog}

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

### App requirements {#requirements}

- Use iOS 13 or higher.
- Use Xcode 16.4 or higher.

### Setting up the app in your Yandex Advertising Network account {#yan}

<!-- 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

There are two integration methods:

* **Single build (recommended)**: All available adapters are connected automatically.
* **Connecting individual adapters**: Install the Yandex SDK and separately connect specific adapters using the appropriate packages.

{% list tabs %}

- Single build

  You can connect all available adapters automatically using the `YandexMobileAdsMediation` shared mediation library. The library is adapted to work with dependency managers:

  {% list tabs radio %}

  - CocoaPods

      If you need static linking:
      1. [Set up mediation](https://ads.yandex.com/helpcenter/en/monetization/yandex-mediation/setup.md) in the Yandex Advertising Network interface.
      2. Add the `YandexMobileAdsMediation` library to your Podfile.

          ```
          pod 'YandexMobileAdsMediation', '7.18.4'
          ```
          The latest compatible version is selected automatically for each adapter.

      3. In your app's Info.plist file, add the `GADApplicationIdentifier` key with your `AdMob ID`. Learn more about where you can [find the AdMob ID](https://support.google.com/admob/answer/7356431).
          ```xml
          <key>GADApplicationIdentifier</key>
          <string>ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy</string>
          ```

  - Swift Package Manager

    The following method is available for the external ad exchanges Mintegral, AppLovin, Google AdMob (ex. AdMob), VK Ads (ex. myTarget), and Liftoff (ex. Vungle):
    1. [Set up mediation](https://ads.yandex.com/helpcenter/en/monetization/yandex-mediation/setup.md) in the Yandex Advertising Network interface.
    2. In your Xcode project, add a dependency using **File** → **Add Packages dependencies**.
    3. Specify the URL of the repository with the Swift package: `https://github.com/yandexmobile/yandex-ads-sdk-ios`.
    <img src="https://yastatic.net/s3/doc-binary/src/dev/mobile-ads/ru/images/spm-link-repository.png">
    4. Go to **Build Settings** and add the parameter value `Other Linker Flags = -ObjC` under **Linking**.
     <img src="https://yastatic.net/s3/doc-binary/src/dev/mobile-ads/ru/images/spm-build-settings.png">
    5. Make sure the target is linked to YandexMobileAdsPackage. If it isn't linked, go to **Link Binary With Libraries** and add a link to the library by clicking **+**.
     <img src="https://yastatic.net/s3/doc-binary/src/dev/mobile-ads/ru/images/target-link-spm-new.png">
    6. Select the adapters or the mediation build. In SPM, you need to enable only the adapters.
     <img src="https://yastatic.net/s3/doc-binary/src/dev/mobile-ads/ru/images/spm-adapters.png">

    {% endlist %}

- Connecting individual adapters

  To connect individual adapters, enable the Yandex Ads SDK, then follow the specific instructions for each adapter:

    1. [Set up mediation](https://ads.yandex.com/helpcenter/en/monetization/yandex-mediation/setup.md) in the Yandex Advertising Network interface.
    2. Add the `YandexMobileAds` library to your Podfile.

     ```
     pod 'YandexMobileAds', 'x.x.x' // add supported version
     ```

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


{% note info %}

If you need Mobile Mediation to track app installs, be sure to configure the Info.plist file. For more information, see [SKAdNetwork support](https://ads.yandex.com/helpcenter/en/dev/ios7/quick-start.md#skad).

{% endnote %}

{% endlist %}
