Enabling Google
Supported ad formats
Integration
-
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.8.0' implementation 'com.yandex.ads.mediation:mobileads-google:23.5.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>
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 was revised. It now interoperates with the CocoaPods dependency management system and supports the static integration method.
-
Set up mediation in the Yandex partner interface and other network interface.
-
To connect the library, add the dependency to the project's Podfile:
pod 'GoogleYandexMobileAdsAdapters', '11.12.0.0'
-
To your app's Info.plist file, add the
GADApplicationIdentifier
key with yourAdMob ID
(learn more about how to find out the AdMob ID).<key>GADApplicationIdentifier</key> <string>ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy</string>