Enabling Google
Supported ad formats
Integration
-
Configure mediation in the Boost interface and your advertising network account.
-
Add the dependencies to the build.gradle file at the app level:
implementation 'com.yandex.android:mobileads:7.18.7' implementation 'com.yandex.ads.mediation:mobileads-google:23.6.0.10' -
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>
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', '12.2.0.8' -
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>