Enabling Google
Supported library and platform versions
Yandex Mobile Ads SDK:
- The minimum supported version of the 7.6.0
- The current version of the 7.6.0
- The maximum supported version of the 7.6.1 (not including)
Google Mobile Ads SDK:
- The minimum supported version of the 23.4.0
- The current version of the 23.4.0
- The maximum supported version of the 23.4.1 (not including)
Supported ad formats
Integration
Integration using Gradle
-
Set up mediation in the Yandex partner interface and other network interface.
-
Add the dependencies to the build.gradle file at the app level:
implementation 'com.yandex.android:mobileads:7.6.0' implementation 'com.yandex.ads.mediation:mobileads-google:23.4.0.0'
-
Add your
AdMob ID
to your app's AndroidManifest.xml file using the<meta-data>
tag namedcom.google.android.gms.ads.APPLICATION_ID
(learn more about how to find 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>
Was the article helpful?
Previous
Next