Enabling Google

Supported ad formats

Integration

  1. Configure mediation in the Boost interface and your advertising network account.

  2. Add dependencies to the androidMain.dependencies block in the build.gradle.kts file at the app level:

    implementation("com.yandex.android:mobileads:8.3.0")
    implementation("com.yandex.ads.mediation:mobileads-google:25.2.0.2")
    
  3. Add your app's AdMob ID to the AndroidManifest.xml file using the <meta-data> tag with the name com.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.

  1. Configure mediation in the Boost interface and your advertising network account.

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

    pod 'GoogleYandexMobileAdsAdapters', '13.6.0.0'
    
  3. In your app's Info.plist file, add the GADApplicationIdentifier key with your AdMob ID. Learn more about where you can find the AdMob ID.

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