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
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.
- flutter_gcaptcha_v3
Provides a Flutter widget to integrate Google reCAPTCHA v3 on iOS and Android.
38Compare
Works with
Packages commonly used together with gma_mediation_unity: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfacegma_mediation_unity depends on itReusable base class for platform interfaces of Flutter federated plugins.
- google_mobile_adsgma_mediation_unity depends on itFlutter plugin to show AdMob banner, interstitial, rewarded and native ads.
- gma_mediation_metaSame familyMediation adapter for Meta Audience Network using google_mobile_ads.
- gma_mediation_applovinSame familyMediation adapter for AppLovin ad network via the google_mobile_ads plugin.
- gma_mediation_liftoffmonetizeSame familyMediation adapter for Liftoff Monetize in the Google Mobile Ads plugin
- gma_mediation_pangleSame familyMediation adapter enabling Pangle ads via the google_mobile_ads plugin.
- gma_mediation_ironsourceSame familyMediation adapter for ironSource ad network using the google_mobile_ads plugin.
- gma_mediation_inmobiSame familyMediation adapter to send ad requests to the InMobi ad network using google_mobile_ads.