Mediation

This guide is intended for publishers that are interested in using AdMob mediation. It describes how to set up a mediation adapter with your current Unity app.

Prerequisites

Helpful primers

If you're new to mediation, these articles from the Help Center cover how to set up ad units, optimize mediation configurations, and a lot of other useful topics:

If you haven't integrated the Google Mobile Ads plugin with your Unity app yet, see Get Started.

Include network adapters and SDKs

Once you know from which networks you want to serve ads, you need to download the SDK and adapter for each network from Mediation Networks. Some of these SDKs already include a Google Mobile Ads adapter, while others offer it as a separate file. See the integration instructions or README that's included with each adapter.

iOS

Include the mediated networks' SDKs and adapter files within the Assets/Plugins/iOS directory of your Unity project.

Android

Include the mediated networks' SDKs and adapter files within the Assets/Plugins/Android directory of your Unity project.

Include network configurations

iOS

After generating an Xcode from Unity, include any frameworks, compiler flags, or linker flags that your chosen networks require. Instructions for each network can be found on Mediation Networks.

Android

Some ad networks require extra configurations to be added to your AndroidManifest.xml file. You can make these modifications to the AndroidManifest.xml inside the Assets/Plugins/Android/GoogleMobileAds directory. Instructions for each network can be found in Mediation Networks. Look for instructions related to modifying your AndroidManifest.xml file.

That's it! Your app is now ready for mediation. Your app needn't call any third-party ad network code directly. Instead, the Google Mobile Ads SDK interacts with the mediated networks' adapters to fetch third-party ads on your behalf.

Send feedback about...

AdMob for Unity
AdMob for Unity
Need help? Visit our support page.