Integrating the Mobile Ads SDK

The Yandex Mobile Ads library is provided in AAR and JAR formats.

Note.

We recommend using the AAR format.

To enable the Mobile Ads SDK:

  1. Add the AppMetrica library. The recommended version of AppMetrica is 3.6.4 and higher.

  2. If you use Gradle to build the app, add the Yandex Mobile Ads and AppMetrica SDK dependencies to the build.gradle file in your app's module:

    dependencies {
        ...
        implementation 'com.yandex.android:mobileads:2.100'
        implementation 'com.yandex.android:mobmetricalib:3.6.4'
    }
If you don't use Gradle

Download the library and add it to the project.