Skip to content
pubscout

gma_mediation_unity

1.12.0, released 2 weeks ago by google.dev

Mediation adapter for Unity Ads to work with the google_mobile_ads Flutter plugin

WASM-ready
$ flutter pub add gma_mediation_unity
Source repository

What it does

It bridges the Unity Ad Network with the Google Mobile Ads SDK, allowing Unity ads to be requested and served through the standard google_mobile_ads API. The plugin handles platform-specific integration for Android and iOS.

AI-written summary of version 1.12.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You already use google_mobile_ads and want to add Unity Ads as a mediation partner
  • You need to serve ads from Unity while keeping a single ad SDK in your app

Skip it when

  • You are not using google_mobile_ads or you do not need Unity Ads

Strengths

  • Supports both Android and iOS adapters
  • Keeps Unity integration up to date with the latest Unity adapter versions
  • No additional code generation required

Weaknesses

  • Only works with google_mobile_ads
  • Requires keeping the plugin in sync with the Google Mobile Ads Flutter plugin

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

Add gma_mediation_unity to pubspec, run flutter pub get, then configure Unity Ads in your app as per the Unity Ads developer guide. No build_runner needed.

// Add to pubspec
// dependencies:
//   google_mobile_ads: ^9.1.0
//   gma_mediation_unity: ^1.12.0

import 'package:google_mobile_ads/google_mobile_ads.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  MobileAds.instance.initialize();
  // Unity Ads will be available through the standard AdRequest flow.
}

Alternatives

Packages that do the same job and could replace gma_mediation_unity.

Works with

Packages commonly used together with gma_mediation_unity: ones it builds on, ones built on it, and its own family.