Enabling AdMob

  1. Supported ad formats
  2. Integration

Supported versions of libraries and platforms:

YandexMobileAdsSDK

Minimum supported version: 2.150.

Maximum supported version: 3.0 (up to but not including).

AppMetricaSDK

Minimum supported version: 3.8.0.

Maximum supported version: 4.0.0 (up to but not including).

GoogleMobileAdsSDK

Minimum supported version: 19.1.0.

Maximum supported version: 19.1.1 (up to but not including).

Supported ad formats

Integration

Enable using Gradle
  1. Add the following dependencies to the build.gradle file at the application level:
    implementation 'com.yandex.android:mobileads:2.150'
    implementation 'com.yandex.android:mobmetricalib:3.13.1'
    implementation 'com.yandex.ads.mediation:mobileads-admob:1.10.0'
    implementation 'com.google.android.gms:play-services-ads:19.1.0'
  2. Add your AdMob ID to the AndroidManifest.xml file using a <meta-data> tag named com.google.android.gms.ads.APPLICATION_ID (learn more about how to find out the AdMob ID).

    <manifest>
        <application>
            <meta-data
                android:name="com.google.android.gms.ads.APPLICATION_ID"
                android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
        </application>
    </manifest>