Enabling Google

Supported ad formats

Integration

  1. Set up mediation in the Yandex partner interface and other network interface.

  2. 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'
    
  3. Add your AdMob ID to your app's AndroidManifest.xml file using the <meta-data> tag named com.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.

  1. Set up mediation in the Yandex partner interface and other network interface.

  2. To connect the library, add the dependency to the project's Podfile:

    pod 'GoogleYandexMobileAdsAdapters', '11.12.0.0'
    
  3. To your app's Info.plist file, add the GADApplicationIdentifier key with your AdMob ID (learn more about how to find out the AdMob ID).

    <key>GADApplicationIdentifier</key>
    <string>ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy</string>
    
Previous
Next