<br />

[Video](https://www.youtube.com/watch?v=EJpKnEHc5Z0)

AdMob Mediation is a feature that lets you serve ads to your apps from
multiple sources, including the AdMob Network and third-party ad sources, in
one place. AdMob Mediation helps maximize your fill rate and increase your
monetization by sending ad requests to multiple networks to verify you find the
best available network to serve ads.
[Case study](https://admob.google.com/home/resources/cookapps-grows-ad-revenue-86-times-with-admob-rewarded-ads-and-mediation/).


## Prerequisites

> [!IMPORTANT]
> **Important:** Verify that you have the necessary account permissions to complete the mediation configuration. These permissions include access to inventory management, app access, and privacy and messaging features. See [Manage user access to your
> account](https://support.google.com/admob/answer/2784628) for details.

Before you can integrate mediation for an ad format, you need to integrate that
ad format into your app:

- [Banner Ads](https://developers.google.com/admob/unity/banner.md.txt)
- [Interstitial Ads](https://developers.google.com/admob/unity/interstitial.md.txt)
- [Native Ads](https://developers.google.com/admob/unity/native.md.txt)
- [Rewarded Ads](https://developers.google.com/admob/unity/rewarded.md.txt)
- [Rewarded Interstitial
  Ads](https://developers.google.com/admob/unity/rewarded-interstitial)

New to mediation? Read

[Overview of AdMob Mediation](https://support.google.com/admob/answer/3063564).

For bidding:

Google Mobile Ads Unity plugin 4.2.0
or higher.

## Initialize Google Mobile Ads Unity Plugin

The quick start guide shows you how to [initialize the Google Mobile Ads Unity Plugin](https://developers.google.com/admob/unity/quick-start.md.txt#initialize_the_mobile_ads_sdk).
During that initialization call, mediation adapters also
get initialized. It is important to wait for initialization to complete before
you load ads in order to verify full participation from every ad network on the
first ad request.

> [!IMPORTANT]
> **Important:** Bidding adapters require you to explicitly initialize Google Mobile Ads Unity Plugin.

The following sample code shows how you can check each adapter's initialization
status prior to making an ad request.

```c#
MobileAds.Initialize((InitializationStatus initializationStatus) =>
{
    Dictionary<string, AdapterStatus> map = initializationStatus.getAdapterStatusMap();
    foreach (KeyValuePair<string, AdapterStatus> keyValuePair in map)
    {
        string className = keyValuePair.Key;
        AdapterStatus status = keyValuePair.Value;
        switch (status.InitializationState)
        {
            case AdapterState.NotReady:
                // The adapter initialization did not complete.
                Debug.Log($"Adapter: {className} is not ready.");
                break;
            case AdapterState.Ready:
                // The adapter was successfully initialized.
                Debug.Log($"Adapter: {className} is initialized.");
                break;
        }
    }
});
```

<br />

## Use banner ads with AdMob Mediation

Make sure to disable refresh in all third-party ad source UIs for banner ad
units used in AdMob Mediation. This prevents a
double refresh since AdMob also triggers a refresh
based on your banner ad unit's refresh rate.

## Use native ads with AdMob Mediation

The following are some best practices to consider when implementing native
mediation.

Native ad presentation policy
:   Each ad network has its own policies. When using mediation, it's important to
    remember that your app still needs to abide by the policies of the mediated
    network that provided the ad.

## US states privacy laws and GDPR

If you need to comply with the [U.S. states privacy
laws](https://support.google.com/admob/answer/9561022) or [General Data Protection
Regulation (GDPR)](https://support.google.com/admob/answer/7666366), follow the
steps in [US state regulations
settings](https://support.google.com/admob/answer/10860309) or [GDPR
settings](https://support.google.com/admob/answer/10113004#adding_ad_partners_to_published_gdpr_messages) to add your
mediation partners in AdMob Privacy \& messaging's
US states or GDPR ad partners list. Failure to do so can lead to partners
failing to serve ads on your app.

Learn more about enabling [restricted data processing
(RDP)](https://developers.google.com/admob/unity/privacy/us-states) and obtaining GDPR consent with the
[Google User Messaging Platform (UMP) SDK](https://developers.google.com/admob/unity/privacy.md.txt).