Integrating Yandex Mediation
Warning
Be sure to update to the latest adapter versions (Yandex Mobile Mediation and adapters for third-party mediation networks). Otherwise, errors from improper adapter integration might occur, preventing the ad from being served.
Yandex Mobile Mediation 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
To prepare your app, follow the steps described in the next sections.
App requirements
- Use iOS 15 or higher.
- Use Xcode 16.4 or higher.
Set up the app in your Boost account
Register your app as a Boost app:
Integration
Set up mediation in the Boost interface. Then select an integration method.
Alert
CocoaPods will no longer be supported after December 31, 2026. If you're using CocoaPods, move the data to Swift Package Manager (SPM): see Migrating from CocoaPods to Swift Package Manager.
-
In Xcode, select File → Add Packages dependencies and specify the URL
https://github.com/yandexmobile/yandex-ads-sdk-mediation-ios.
-
Select a compatible package version.
-
Select products:
- Single build (recommended) —
YandexMobileAdsMediation. The main SDK and the adapters included in the build are connected automatically — you don't need to add them separately. - Individual adapters — if you only need certain ad networks, instead of
YandexMobileAdsMediation, select the products for the required adapters.
- Single build (recommended) —
-
Add the selected products to the app target.
-
In Build Settings → Linking, add
-ObjCto Other Linker Flags, keeping existing values and$(inherited).
-
In Link Binary With Libraries, make sure that the selected products are connected to the app target.

Add dependencies to your Podfile by selecting the mediation configuration:
pod 'YandexMobileAdsMediation', '8.7.1'
The main SDK and adapters are connected automatically. For each adapter, the latest compatible version is selected.
Add the main SDK and keep only the dependencies of the required adapters:
pod 'YandexMobileAds', '8.7.1'
pod 'AppLovinYandexMobileAdsAdapters', '13.6.4.3'
pod 'BigoADSYandexMobileAdsAdapters', '6.1.0.1'
pod 'ChartboostYandexMobileAdsAdapters', '9.14.2.1'
pod 'DigitalTurbineYandexMobileAdsAdapters', '8.5.0.1'
pod 'GoogleYandexMobileAdsAdapters', '13.11.0.1'
pod 'InMobiYandexMobileAdsAdapters', '11.5.0.1'
pod 'IronSourceYandexMobileAdsAdapters', '9.7.0.1'
pod 'MintegralYandexMobileAdsAdapters', '8.1.7.1'
pod 'MolocoYandexMobileAdsAdapters', '4.9.0.1'
pod 'MyTargetYandexMobileAdsAdapters', '5.46.0.1'
pod 'PangleYandexMobileAdsAdapters', '8.2.0.1'
pod 'StartAppYandexMobileAdsAdapters', '4.15.0.1'
pod 'UnityAdsYandexMobileAdsAdapters', '4.21.0.1'
pod 'VungleYandexMobileAdsAdapters', '7.7.8.1'
pod 'zMaticooYandexMobileAdsAdapters', '1.5.6.8'
pod 'YandexMobileAdsMediationExtras', '8.6.0'
Run pod install in the directory with Podfile and open the .xcworkspace file.
Google AdMob is included in the single build. It can also be activated separately via GoogleYandexMobileAdsAdapters. If you use this network, add GADApplicationIdentifier to Info.plist of your app.
Provide your AdMob ID:
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy</string>
Note
If you need Mobile Mediation to track app installs, be sure to configure the Info.plist file. For more information, see SKAdNetwork support.
Migrating from CocoaPods to Swift Package Manager
-
Open the
Podfile.lockfile and note down the SDK versions and adapter versions in use. For mediation, make sure that the required adapters are available in the selected SPM package version. -
Remove the SDK integration via CocoaPods:
- If other pods remain, delete Yandex Mobile Ads SDK dependencies, mediation, and portable adapters from
Podfile. Run thepod installcommand and continue working with the.xcworkspacefile. - If there are no other pods, run the
pod deintegratecommand. Next, deletePodfileandPodfile.lock, thePodsdirectory, and the.xcworkspacefile created by CocoaPods. After that, open the.xcodeprojfile and save your own workspace.
- If other pods remain, delete Yandex Mobile Ads SDK dependencies, mediation, and portable adapters from
-
In Xcode, select File → Add Packages dependencies and specify the repository:
- Main SDK:
https://github.com/yandexmobile/yandex-ads-sdk-ios. - Mediation:
https://github.com/yandexmobile/yandex-ads-sdk-mediation-ios.
Next, select the package version that matches your previous integration and click Add Package.
- Main SDK:
-
Select products and add them to the app target:
- For the main SDK:
YandexMobileAdsand additional modules you use. - For mediation:
YandexMobileAdsMediation. The SDK and the adapters included in the build are connected automatically. If you only need certain networks, select the products for the required adapters instead of the full product.
- For the main SDK:
-
In the target settings, check the selected products in Build Phases → Link Binary With Libraries. Then, in Build Settings → Other Linker Flags, add
-ObjC, keeping existing values and$(inherited). -
Build and run the app. Next, check the integration via the Debug Panel, and then check ad loading and impressions in the demo ad units.
-
Save project changes and
Package.resolvedin the version control system. If CocoaPods is completely removed, remove thepod installcall from CI and replace the.xcworkspacebuild with.xcodeproj.