Integrating the Mobile Ads SDK

  1. To load ads of any type, you need iOS 8.0 or later.
  2. Video ads are only selected for devices with iOS 10.0 or later.

The Yandex Mobile Ads SDK library is adapted to the CocoaPods dependencies management system, and supports two integration methods: static and dynamic. To connect the library, add a dependency to the project's Podfile (see the example for the static framework):

pod 'YandexMobileAds', '2.19.0'

If the Podfile has the line use_frameworks!, we recommend using the dynamic framework.

If you don't use CocoaPods
  1. Add the AppMetrica library to the project. The minimum supported version of AppMetrica is 3.2.0 and later (not including 4.0.0).
  2. Download the Yandex Mobile Ads library.
  3. Add the following dependencies: “SystemConfiguration”, “UIKit”, “Foundation”, “CoreTelephony”, “CoreLocation”, “CoreGraphics”, “AdSupport”, “z”, “sqlite3”, “Security”, “c++”, “StoreKit”, “xml2”, “WebKit” (with the Optional setting).
  4. Add -ObjC to Other Linker Flags.