Integrate Unity Ads with mediation

  • This guide explains how to use the Google Mobile Ads SDK to integrate and display ads from Unity Ads in a Flutter app through mediation, specifically covering waterfall integrations.

  • The AdMob mediation adapter for Unity Ads supports bidding and waterfall integrations, as well as banner, interstitial, and rewarded ad formats.

  • Key requirements for this integration include specific versions of the Google Mobile Ads SDK, Flutter, Android and iOS API levels, and a working Flutter project with the Google Mobile Ads SDK configured.

  • The setup process involves configuring settings in the Unity Ads UI, setting up Unity Ads demand in the AdMob UI, importing the necessary SDK and adapter, implementing privacy settings, and adding required code for platform-specific integrations.

  • To ensure compliance with privacy regulations, you must implement EU Consent and GDPR and US states privacy laws settings by passing consent information to the Unity Ads SDK using the provided methods.

This guide shows you how to use Google Mobile Ads Flutter Plugin to load and display ads from Unity Ads using mediation, covering bidding and waterfall integrations. It covers how to add Unity Ads to an ad unit's mediation configuration, and how to integrate the Unity Ads SDK and adapter into a Flutter app.

Supported integrations and ad formats

The AdMob mediation adapter for Unity Ads has the following capabilities:

Integration
Bidding
Waterfall  1
Formats
Banner
Interstitial
Rewarded

Prerequisites

Before you continue, verify the following:

  • Latest Google Mobile Ads Flutter Plugin version.
  • Flutter framework version 3.7.0 or later.
  • [For bidding]: To integrate all supported ad formats in bidding, use Google Mobile Ads mediation plugin for Unity Ads 1.1.0 or later (latest version recommended).
  • To deploy on Android
    • Android API level 23 or later.
  • To deploy on iOS
    • iOS deployment target of 13.0 or later.
  • A working Flutter project configured with Google Mobile Ads Flutter Plugin. See Set up Google Mobile Ads Flutter Plugin for details.
  • Set up AdMob Mediation.

Step 1: Set up configurations in Unity Ads UI

Sign up or log in to Unity Ads.

Create a project

On the Unity Ads dashboard, navigate to Projects and click New.

Fill out the form and click Create to add your project.

Navigate to Unity Ads Monetization, then click Get started.

In the New Project modal, select I will use Mediation and Google Admob for Mediation Partner, then click Next.

Select the option for ad settings, then click Next.

Select your placement setup, then click Next.

Bidding

Waterfall

Fill out the form, then click Add project.

Take note of the Game ID.

Create ad units and placements

Navigate to Unity Ads Monetization > Placements, then select your project and click Add ad unit.

Enter an Ad unit name, then select your Platform and Ad format.

Android

iOS

Bidding

Select Bidding for the Setup. Under Placement, enter the Placement name.

Take note of the Placement ID.

Waterfall

Select Waterfall for the Setup. Under Placement, enter the Placement name,