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

# Google AdMob (ex. AdMob) mediation


Google AdMob (ex. AdMob) mediation can be used to connect to the Yandex Advertising Network. Here's how to add the Yandex Advertising Network 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 [Yandex Advertising Network interface](https://ads.yandex.com/helpcenter/en/monetization/formats.yaml).
4. Add the Yandex Advertising Network 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 Yandex Advertising Network 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://ads.yandex.com/helpcenter/en/monetization/formats.yaml) in the Yandex Advertising Network interface (Yandex Ad Unit ID).

Then add the Yandex Advertising Network 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://ads.yandex.com/helpcenter/en/monetization/formats.yaml) for creating an ad unit in the Yandex Advertising Network 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 Yandex Advertising Network 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 Yandex Advertising Network interface.
6. Configure a custom event for accessing the Yandex Advertising Network by setting the event name and eCPM floor. The eCPM floor value must match the threshold in the Yandex Advertising Network interface for the ad unit.
7. Set up mapping of the custom event to the Yandex 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 Yandex 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 Yandex Ad Unit ID for the ad unit.
8. Save the changes.
