Enabling Google
Supported library and platform versions
Yandex Mobile Ads SDK:
- The minimum supported version of the 8.0.0
- The current version of the 8.0.0
- The maximum supported version of the 8.0.1 (not including)
Google Mobile Ads SDK:
- The minimum supported version of the 24.9.0
- The current version of the 24.9.0
- The maximum supported version of the 24.9.1 (not including)
Supported ad formats
- Adaptive inline banner
- Adaptive sticky banner
- Interstitial advertising
- Native ads
- Rewarded ads
- App Open Ads
Integrating the
Integration using Gradle
-
Set up mediation in the Yandex Advertising Network interface and other network interface.
-
Add the dependencies to the build.gradle file at the app level:
implementation 'com.yandex.android:mobileads:8.0.0' implementation 'com.yandex.ads.mediation:mobileads-google:24.9.0.0' -
Add your
AdMob IDto 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