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 ad formats

Integration

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

  2. Import the package yandex-mobileads-lite-2.9.0.unitypackage to the project.
  3. Import mobileads-admob-mediation-2.9.0.unitypackage from the mobileads-mediation directory.
  4. Create the main AndroidManifest.xml file by clicking File → Build Settings → Android → Player Settings → Publishing settings → Custom Main Manifest (select the checkbox).

    Add your AdMob ID to the created AndroidManifest.xml file of the app using the <meta-data> tag named com.google.android.gms.ads.APPLICATION_ID (how to find AdMob ID).

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