---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://boost.yandex.com/doc/en/ad-monetization/dev/ios7/admob-third.md
  - https://boost.yandex.com/doc/ru/ad-monetization/dev/ios7/admob-third.md
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/en/llms.txt

# Google AdMob (ex. AdMob) mediation


Google AdMob (ex. AdMob) mediation can be used to connect to the Boost. Here's how to add the Boost to Google AdMob (ex. AdMob) mediation:

1. [Integrate](https://developers.google.com/admob/android/mediate?hl=en) Google AdMob (ex. AdMob) mediation.
2. Add the adapter for the Yandex Mobile Ads SDK.
3. Create AdUnitId for the ad type you want in the [Boost interface](https://boost.yandex.com/doc/en/ad-monetization/monetization/formats.yaml).
4. Add the Boost in the [Google AdMob (ex. AdMob) web interface](http://apps.admob.com/).
5. Synchronize the ad unit settings in both web interfaces.

## Adding the adapter for the Yandex Mobile Ads SDK

The `YandexMobileAdsAdMobAdapters` library has been adapted to work with the CocoaPods dependency management system and supports a static integration method.

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

```
pod 'YandexMobileAdsAdMobAdapters', '7.18.0.0'
```

## Adding the Boost in the Google AdMob (ex. AdMob) mediation web interface {#admob-add}

For each ad placement created in Google AdMob (ex. AdMob) mediation (AdMob AdUnitId), create an [ad unit](https://boost.yandex.com/doc/en/ad-monetization/monetization/formats.yaml) in the Boost interface (Ad Unit ID).

Then add the Boost in the Google AdMob (ex. AdMob) mediation web interface:

### 1. Create an Google AdMob (ex. AdMob) ad unit

1. Go to your app section.
2. Create an ad unit for the selected ad format, configuring ad unit parameters like the name.
3. After creating the ad unit, save its ID.

### 2. Create a Yandex ad unit

[Instructions](https://boost.yandex.com/doc/en/ad-monetization/monetization/formats.yaml) for creating an ad unit in the Boost interface.

### 3. Set up Google AdMob (ex. AdMob) mediation

1. Go to **Yandex Mediation** and click **Create mediation group**.
2. Select a platform.
3. Set the parameters of the mediation group (name, region, and so on) and proceed to adding the ad unit.
4. Select your app, select the ad unit you created, and add it. The ad unit you added should appear in the **Ad Units** section.
5. The Boost can only be added to Google AdMob (ex. AdMob) mediation as a custom event. Go to adding a custom event (the **Add Custom Event** button). You need to set up/repeat your custom event for each adUnitId created in the Boost interface.
6. Configure a custom event for accessing the Boost by setting the event name and eCPM floor. The eCPM floor value must match the threshold in the Boost interface for the ad unit.
7. Set up mapping of the custom event to the Boost adapter:
   - Set the mapping name.
   - Set an adapter class name that corresponds to the ad format you selected.
   - Set the event parameters.

   Each ad format has a corresponding Boost adapter class:
   - `YMAAdMobCustomEventBanner` for banner ads.
   - `YMAAdMobCustomEventInterstitial` for interstitial ads.
   - `YMAAdMobCustomEventRewarded` for rewarded ads.
   - `YMAAdMobCustomEventNative` for native ads.

   In **Parameter**, configure the custom event settings in JSON format. You must set the Ad Unit ID for the ad unit.
8. Save the changes.
