Plugin.AdMob
11.0.0
dotnet add package Plugin.AdMob --version 11.0.0
NuGet\Install-Package Plugin.AdMob -Version 11.0.0
<PackageReference Include="Plugin.AdMob" Version="11.0.0" />
<PackageVersion Include="Plugin.AdMob" Version="11.0.0" />
<PackageReference Include="Plugin.AdMob" />
paket add Plugin.AdMob --version 11.0.0
#r "nuget: Plugin.AdMob, 11.0.0"
#:package Plugin.AdMob@11.0.0
#addin nuget:?package=Plugin.AdMob&version=11.0.0
#tool nuget:?package=Plugin.AdMob&version=11.0.0
Google AdMob plugin for .NET MAUI
Monetize your .NET MAUI app with Google AdMob ads on Android and iOS — banner, interstitial, rewarded, rewarded interstitial, app open, and native ads (including native video) — with GDPR consent handled for you via Google's User Messaging Platform (UMP). Free and open source, with every feature included.
dotnet add package Plugin.AdMob
Features
| Banner | Interstitial | Rewarded | Rewarded interstitial | App open | Native | Native video | Consent (UMP) | |
|---|---|---|---|---|---|---|---|---|
| Android | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| iOS | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Why Plugin.AdMob?
- Every AdMob ad format — banners in all sizes (including custom), full-screen interstitial, rewarded, and rewarded interstitial ads, app open ads, and fully customizable native ads with video playback.
- Free and open source — MIT-licensed, no paid tiers, no locked features.
- Consent built in — the Google UMP consent form (GDPR) is shown automatically on startup when required, or take full control yourself via
IAdConsentService. - MAUI-first API — drop a
BannerAdorNativeAdViewinto your XAML, and use dependency-injected services (IInterstitialAdService,IRewardedAdService,IAppOpenAdService, ...) for full-screen ads. - Test ads out of the box — set
AdConfig.UseTestAdUnitIds = trueand develop safely against Google's test ad units. - Cross-platform friendly — your app still compiles and runs on Windows and Mac Catalyst; ads are simply not shown there.
- Actively maintained — built for .NET 11 and the latest .NET MAUI, on top of up-to-date Google Mobile Ads SDK bindings.
Quick start
1. Install the package:
dotnet add package Plugin.AdMob
2. Initialize the plugin in your MauiProgram.cs:
builder
.UseMauiApp<App>()
.UseAdMob();
Then complete the one-time platform configuration (Android manifest, iOS Info.plist) described in the Setup guide.
3. Show a banner ad by dropping the control into any page:
<ContentPage xmlns:admob="clr-namespace:Plugin.AdMob;assembly=Plugin.AdMob"
...>
<admob:BannerAd AdUnitId="ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx" />
</ContentPage>
4. Show an interstitial ad:
var interstitialAdService = IPlatformApplication.Current.Services.GetRequiredService<IInterstitialAdService>();
interstitialAdService.PrepareAd();
// Once loaded (OnAdLoaded), e.g. between levels:
interstitialAdService.ShowAd();
Tip: no ad unit IDs yet? Set AdConfig.UseTestAdUnitIds = true to use Google's test ads while developing.
📽️ Video tutorial
Documentation
- Setup — initialization, Android manifest and iOS
Info.plistconfiguration - Configuration — default ad unit IDs, test ads, test devices
- Consent — GDPR consent with Google UMP, debug geographies
- Banner ads — all banner sizes, custom sizes, events
- Interstitial ads — preload and show full-screen ads
- Rewarded ads — reward users for watching ads
- Rewarded interstitial ads
- Native ads — design your own ad layout, including video
- App open ads — ads on app launch and foregrounding
- Upgrading — what to change when you update the plugin
- Troubleshooting
- Samples
Contributing & support
Found a bug or missing a feature? Open an issue — pull requests are welcome.
If Plugin.AdMob helps your app earn money, consider giving the repo a ⭐ — it helps other .NET MAUI developers discover it.
This project has no affiliation with Google, Microsoft, or the MAUI/Xamarin teams. AdMob is a trademark of Google LLC.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0-android37.0 is compatible. net11.0-ios27.2 is compatible. net11.0-maccatalyst27.2 is compatible. net11.0-windows10.0.19041 is compatible. |
-
net11.0-android37.0
- Microsoft.Maui.Controls (>= 11.0.0)
- Xamarin.AndroidX.Fragment.Ktx (>= 1.9.1)
- Xamarin.Google.Android.Libraries.Ads.Mobile.Sdk (>= 1.5.0)
-
net11.0-ios27.2
- Jc.GMA.iOS (>= 12.10.0)
- Jc.UMP.iOS (>= 2.7.5)
- Microsoft.Maui.Controls (>= 11.0.0)
-
net11.0-maccatalyst27.2
- Microsoft.Maui.Controls (>= 11.0.0)
-
net11.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 11.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Plugin.AdMob:
| Package | Downloads |
|---|---|
|
benxu.AppPlatform.Ads.AdMob
AdMob implementation for ad services in .NET MAUI Blazor applications. Supports Banner, Interstitial and Rewarded ads with Mock mode for testing. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Plugin.AdMob:
| Repository | Stars |
|---|---|
|
lswiderski/mi-scale-exporter
Mobile App to export data from Mi Body Composition Scale and upload it to Garmin Connect Cloud
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0 | 735 | 11/11/2026 |
| 10.0.130 | 2,276 | 11/11/2026 |
| 10.0.120.3 | 4,496 | 11/4/2026 |
| 10.0.120.3-beta.2 | 58 | 11/3/2026 |
| 10.0.120.3-beta.1 | 67 | 11/1/2026 |
| 10.0.120.2 | 1,746 | 11/1/2026 |
| 10.0.120.1 | 550 | 10/31/2026 |
| 10.0.90 | 40,886 | 7/23/2026 |
| 10.0.80.1 | 193 | 7/23/2026 |
| 10.0.80 | 859 | 7/4/2026 |
| 3.0.3 | 90,718 | 5/17/2026 |
| 3.0.2 | 2,063 | 2/1/2026 |
| 3.0.0 | 561 | 1/31/2026 |
| 2.3.1 | 96,197 | 3/23/2025 |
| 2.2.0 | 3,434 | 3/22/2025 |