Enabling Google
Supported ad formats
Integration
-
Configure mediation in the Boost interface and your advertising network account.
-
Add dependencies to the
androidMain.dependenciesblock in thebuild.gradle.ktsfile at the app level:implementation("com.yandex.android:mobileads:8.3.0") implementation("com.yandex.ads.mediation:mobileads-google:25.2.0.2") -
Add your app's
AdMob IDto the AndroidManifest.xml file using the<meta-data>tag with the namecom.google.android.gms.ads.APPLICATION_ID(see the Google Help Center to learn how to find your AdMob ID):<manifest> <application> ... <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/> ... </application> </manifest>
Note
To track app installations in Mobile Mediation you need to configure Info.plist for the adapter. Follow the ad network documentation.
To work with Google, you need to add the GoogleYandexMobileAdsAdapters library.
The GoogleYandexMobileAdsAdapters library has been adapted to work with the CocoaPods dependency management system and support static integration.
-
Configure mediation in the Boost interface and your advertising network account.
-
To connect the library, add the dependency to the project's Podfile:
pod 'GoogleYandexMobileAdsAdapters', '13.6.0.0' -
In your app's Info.plist file, add the
GADApplicationIdentifierkey with yourAdMob ID. Learn more about where you can find the AdMob ID.<key>GADApplicationIdentifier</key> <string>ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy</string>