Enabling AdMob

Warning.

This is an archived version of the documentation. Actual documentation for all platforms can be found here.

  1. Supported ad formats
  2. Integration

Supported versions of libraries and platforms:

YandexMobileAdsSDK

Minimum supported version: 5.10.0.

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

GoogleMobileAdsSDK

Minimum supported version: 22.1.0.

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

Supported ad formats

Integration

Enable using Gradle
  1. Set up mediation in the Yandex Partner interface and YAN interface.

  2. Add the following dependencies to the build.gradle file at the application level:
    implementation 'com.yandex.android:mobileads:5.10.0'
    implementation 'com.yandex.ads.mediation:mobileads-admob:22.1.0.0'
  3. 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>