Plugin.MauiMTAdmob
2.6.0
See the version list below for details.
dotnet add package Plugin.MauiMTAdmob --version 2.6.0
NuGet\Install-Package Plugin.MauiMTAdmob -Version 2.6.0
<PackageReference Include="Plugin.MauiMTAdmob" Version="2.6.0" />
<PackageVersion Include="Plugin.MauiMTAdmob" Version="2.6.0" />
<PackageReference Include="Plugin.MauiMTAdmob" />
paket add Plugin.MauiMTAdmob --version 2.6.0
#r "nuget: Plugin.MauiMTAdmob, 2.6.0"
#:package Plugin.MauiMTAdmob@2.6.0
#addin nuget:?package=Plugin.MauiMTAdmob&version=2.6.0
#tool nuget:?package=Plugin.MauiMTAdmob&version=2.6.0
MAUIMtAdmob plugin for MAUI (Android & iOS)
With this Plugin you can add a Google Admob Ads inside your MAUI Projects with a single line of code!!! This plugin supports: Banners, Interstitial, Rewarded, Rewarded Interstitials and now even: Open Ads, Native Ads and Consent (only in the licensed version)
PLEASE READ
From version 1.1.0, I've added support for the consent required by Google for all the final users living in Europe. This support for UMP is only available in the licensed version of the plugin. Without the license, the plugin will continue to work as usual with all the other features normally available. This will allow me to continue supporting the development of the plugin. You can buy the license at https://hightouchinnovation.com/MMTAdmob If you are a charity or your app is used to support a good cause, contact me and I'll evaluate it to send you a free license.
Setup
- Available on Nuget: https://www.nuget.org/packages/Plugin.MauiMTAdmob/
- Install in your MAUI project
This plugin supports:
- Maui (Android and iOS)
- .NET 10 (from version 2.5.0; use 2.4.0 if you are still on .NET 9)
Version 2.x and version 3.x
This is the 2.x line of the plugin: Android runs on the legacy Google Mobile Ads SDK. Version 3.x moves Android to Google's Mobile Ads Next-Gen SDK with the same public API, and requires Android minSdk 24. 2.x is still maintained for apps that cannot move yet (minSdk below 24, or mediation through a platform other than AdMob). See https://www.nuget.org/packages/Plugin.MauiMTAdmob/ for both versions.
Licence keys and version 3: a "1 Major Version" licence is valid for the major version it was bought for. A key bought for 2.x keeps working on every 2.x release, but not on 3.x: to use the licensed features on 3.x you need a 3.x key. Perpetual ("Supporter") licences are valid for all versions, including 3.x.
VERY IMPORTANT
If you encounter an error on this plugin check the guide at https://hightouchinnovation.com/MMTAdmobGuide where you can find also common issues and how to solve them.
You can also report any issue at https://github.com/marcojak/MauiMTAdmob/issues
The Consent might not work on the iOS simulator (it usually depends on the xCode version you have installed on your Mac). If it doesn't work, you can change your XCode version or test it on a real device.
To test the plugin on iOS you need to use a Mac as the device directly connected to Windows is not supported.
FOR MAC USERS WITH Mx PROCESSORS
If you compile the app on a Mac with Mx processors, you could get an error about architecture, to fix it, add to your csproj file these lines:
<PropertyGroup Condition="$(TargetFramework.Contains('-ios'))">
<RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup>
<ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
</PropertyGroup>
How to use MauiMTAdmob
In your MauiProgramm class, add
builder.UseMauiMTAdmob();
Impression-level ad revenue, Ad Inspector, privacy and targeting
CrossMauiMTAdmob.Current.OnAdPaidreports the revenue of every ad (banner, interstitial, rewarded, rewarded interstitial, app open and native) with its format, ad unit, value, currency, precision and ad source - forward it to Firebase or your attribution SDK. Enable impression-level ad revenue in the AdMob UI for the values to be populated.CrossMauiMTAdmob.Current.OpenAdInspector()opens Google's Ad Inspector (test devices only);OnAdInspectorClosedreports when it closes or why it could not open.PublisherPrivacyPersonalizationStatesets Google's publisher privacy treatment (Disabledturns off personalized ads for the session).ContentUrlandNeighboringContentUrlssend content mapping with every request.CustomTargetingsends key-value targeting with every request (Google Ad Manager).
Android
You need to add your Admob APPLICATION_ID to your AndroidManifest.xml:
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="YOUR APPLICATION ID" />
iOS
You need to add GADApplicationIdentifier to your Info.plist. Edit your info.plist adding these Keys:
<key>GADApplicationIdentifier</key>
<string>YOUR APPLICATION ID</string>
<key>GADIsAdManagerApp</key>
<true/>
To show the App Tracking Transparency dialog (the plugin asks for it after the consent form), also add:
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads to you.</string>
Without this key iOS never shows the dialog and tracking is always denied.
Consent not showing?
Turn on debug mode (CrossMauiMTAdmob.Current.DebugMode = true, or debugMode: true in Init): the plugin then logs each step of the consent flow, prefixed with [MauiMTAdmob], so you can tell a form that was not required from one that failed.
You can find the full guide here: https://hightouchinnovation.com/MMTAdmobGuide
LINKS
To buy the license visit https://hightouchinnovation.com/MMTAdmob Available on Nuget: https://www.nuget.org/packages/Plugin.MauiMTAdmob/ Guide: https://hightouchinnovation.com/MMTAdmobGuide (you'll find here also the common issues and how to solve them) Tutorial: https://www.xamarinexpert.it/admob-made-easy/ (Version for Xamarin. I'll update it with the new version for MAUI) To report any issue: https://github.com/marcojak/MauiMTAdmob/issues
CRYPTOGRAPHY
This plugin uses a cryptographic algorithm to handle the license.
DISCLAIMER OF LIABILITY
By using MAUIMtAdmob (the "Plugin"), you agree that:
- The Plugin is provided "as is" without any warranties or guarantees of any kind, either expressed or implied.
- I shall not be responsible or liable for any direct, indirect, incidental, special, or consequential damages arising out of the use or inability to use the Plugin.
- I do not warrant that the Plugin will meet your specific requirements or operate without interruption.
You acknowledge that the use of the Plugin is at your own risk. The author of the plugin disclaims all liability for any damage to your computer system or loss of data that results from the use of the Plugin.
This disclaimer of liability is a fundamental part of the agreement between you and the author of the plugin. You agree that the limitations and exclusions of liability set forth in this disclaimer are reasonable and fair.
If you do not agree to these terms, do not use the Plugin.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net10.0-windows10.0.19041 is compatible. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.10)
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.10)
- Xamarin.Google.UserMessagingPlatform (>= 4.0.0.2)
- Xamarin.GooglePlayServices.Ads.Lite (>= 124.0.0.5)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.10)
- MTAdmob.iOS.Binding (>= 12.12.0)
- MTAdmob.UMP.iOS.Binding (>= 3.0.0)
- Portable.BouncyCastle (>= 1.9.0)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.10)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.10)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Plugin.MauiMTAdmob:
| Package | Downloads |
|---|---|
|
MetaFrm.Maui.Essentials.net8.0
Meta Framework (Multi platform & Meta management) |
|
|
MetaFrm.Maui.Essentials.net9.0
Meta Framework (Multi platform & Meta management) |
|
|
MetaFrm.Maui.Essentials.net7.0
Meta Framework (Multi platform & Meta management) |
|
|
MetaFrm.Maui.Essentials.net10.0
Meta Framework (Multi platform & Meta management) |
|
|
AnchorAppsIT.MAUI.Controls
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 1,503 | 10/16/2026 |
| 2.6.0 | 203 | 10/16/2026 |
| 2.5.1 | 180 | 10/13/2026 |
| 2.5.0 | 511 | 10/5/2026 |
| 2.4.0 | 8,990 | 3/18/2026 |
| 2.3.1 | 1,692 | 2/1/2026 |
| 2.3.0 | 318 | 1/30/2026 |
| 2.2.0 | 4,234 | 11/5/2025 |
| 2.1.0 | 1,248 | 10/8/2025 |
| 2.0.2 | 16,147 | 5/21/2025 |
| 2.0.1.1 | 841 | 5/2/2025 |
| 2.0.1 | 616 | 5/1/2025 |
| 2.0.0.5 | 3,221 | 2/14/2025 |
| 1.7.1 | 3,223 | 11/27/2024 |
| 1.7.0 | 1,097 | 11/2/2024 |
| 1.6.4 | 3,976 | 9/17/2024 |
| 1.6.3 | 2,568 | 9/3/2024 |
| 1.6.2 | 528 | 9/1/2024 |
| 1.6.1 | 628 | 8/30/2024 |
| 1.6.0 | 835 | 8/23/2024 |
Release of the 2.x line, which keeps Android on the legacy Google Mobile Ads SDK. Version 3.x moves Android to the Next-Gen SDK with the same API.
- New (Android and iOS): OnAdPaid, impression-level ad revenue for banners, interstitials, rewarded, rewarded interstitial, app open and native ads (format, ad unit, value, currency, precision, ad source, response id).
- New: OpenAdInspector() and OnAdInspectorClosed, to open Google's Ad Inspector and debug requests and mediation.
- New: PublisherPrivacyPersonalizationState (Google's publisher privacy treatment), ContentUrl and NeighboringContentUrls (content mapping) and CustomTargeting (key-value targeting for Google Ad Manager).
- Fixed (Android): native ads now resize to their template, so assets no longer spill outside the native ad view (the native ad validator reported "assets outside native ad view" and "MediaView too small").
- Fixed (iOS): App Open Ads now load when SkipConsent is set.
- The XML documentation is now named after the assembly, so IntelliSense shows it.
- Licensing: a "1 Major Version" licence key is valid only for the major version it was issued for, without the previous one-year grace for keys from an earlier major version. 2.x keys keep working on 2.6.0; perpetual licences are valid for all versions.
Full notes: https://github.com/marcojak/MauiMTAdmob/blob/master/CHANGELOG.md