Plugin.MauiMTAdmob
1.7.0
dotnet add package Plugin.MauiMTAdmob --version 1.7.0
NuGet\Install-Package Plugin.MauiMTAdmob -Version 1.7.0
<PackageReference Include="Plugin.MauiMTAdmob" Version="1.7.0" />
paket add Plugin.MauiMTAdmob --version 1.7.0
#r "nuget: Plugin.MauiMTAdmob, 1.7.0"
// Install Plugin.MauiMTAdmob as a Cake Addin #addin nuget:?package=Plugin.MauiMTAdmob&version=1.7.0 // Install Plugin.MauiMTAdmob as a Cake Tool #tool nuget:?package=Plugin.MauiMTAdmob&version=1.7.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)
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
' .UseMauiMTAdmob() '
Android
You need to add your Admob APPLICATION_ID to your AppManifest: <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/>
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### 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)
CRYPTOGRAPHY
This plugin uses an 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 | net8.0-android34.0 is compatible. net8.0-ios18.0 is compatible. net8.0-maccatalyst18.0 is compatible. net8.0-windows10.0.19041 is compatible. net9.0-android35.0 is compatible. net9.0-ios18.0 is compatible. net9.0-maccatalyst18.0 is compatible. net9.0-windows10.0.19041 is compatible. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.80)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.80)
- Xamarin.AndroidX.Activity (>= 1.9.2.1)
- Xamarin.AndroidX.Activity.Ktx (>= 1.9.2.1)
- Xamarin.AndroidX.Collection.Jvm (>= 1.4.3.1)
- Xamarin.AndroidX.Collection.Ktx (>= 1.4.3.1)
- Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.Runtime.Android (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.Runtime.Ktx (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.ViewModel (>= 2.8.6)
- Xamarin.Build.Download (>= 0.11.4)
- Xamarin.Google.UserMessagingPlatform (>= 3.0.0.1)
- Xamarin.GooglePlayServices.Ads.Lite (>= 123.4.0)
-
net8.0-ios18.0
- MT.Xamarin.Google.iOS.UserMessagingPlatform (>= 1.1.0.4)
- Portable.BouncyCastle (>= 1.9.0)
- Xamarin.Build.Download (>= 0.11.4)
- Xamarin.Google.iOS.MobileAds (>= 8.13.0.3)
-
net8.0-maccatalyst18.0
- Xamarin.Build.Download (>= 0.11.4)
-
net8.0-windows10.0.19041
- Xamarin.Build.Download (>= 0.11.4)
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 9.0.0-rc.2.24503.2)
- Microsoft.Maui.Controls.Compatibility (>= 9.0.0-rc.2.24503.2)
- Xamarin.AndroidX.Activity (>= 1.9.2.1)
- Xamarin.AndroidX.Activity.Ktx (>= 1.9.2.1)
- Xamarin.AndroidX.Collection.Jvm (>= 1.4.3.1)
- Xamarin.AndroidX.Collection.Ktx (>= 1.4.3.1)
- Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.Runtime.Android (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.Runtime.Ktx (>= 2.8.6)
- Xamarin.AndroidX.Lifecycle.ViewModel (>= 2.8.6)
- Xamarin.Build.Download (>= 0.11.4)
- Xamarin.Google.UserMessagingPlatform (>= 3.0.0.1)
- Xamarin.GooglePlayServices.Ads.Lite (>= 123.4.0)
-
net9.0-ios18.0
- MT.Xamarin.Google.iOS.UserMessagingPlatform (>= 1.1.0.4)
- Portable.BouncyCastle (>= 1.9.0)
- Xamarin.Build.Download (>= 0.11.4)
- Xamarin.Google.iOS.MobileAds (>= 8.13.0.3)
-
net9.0-maccatalyst18.0
- Xamarin.Build.Download (>= 0.11.4)
-
net9.0-windows10.0.19041
- Xamarin.Build.Download (>= 0.11.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Plugin.MauiMTAdmob:
Package | Downloads |
---|---|
MetaFrm.Maui.Essentials.net7.0
Meta Framework (Multi platform & Meta management) |
|
MetaFrm.Maui.Essentials.net8.0
Meta Framework (Multi platform & Meta management) |
|
AnchorAppsIT.MAUI.Controls
Package Description |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Plugin.MauiMTAdmob:
Repository | Stars |
---|---|
lswiderski/mi-scale-exporter
Mobile App to export data from Mi Body Composition Scale and upload it to Garmin Connect Cloud
|
|
marcojak/MauiMTAdmob
|
Version | Downloads | Last updated |
---|---|---|
1.7.0 | 251 | 11/2/2024 |
1.6.4 | 1,298 | 9/17/2024 |
1.6.3 | 897 | 9/3/2024 |
1.6.2 | 207 | 9/1/2024 |
1.6.1 | 192 | 8/30/2024 |
1.6.0 | 405 | 8/23/2024 |
1.5.1 | 866 | 8/9/2024 |
1.5.0 | 188 | 8/8/2024 |
1.4.5 | 963 | 7/9/2024 |
1.4.4 | 276 | 7/5/2024 |
1.4.3 | 452 | 6/18/2024 |
1.4.2 | 1,346 | 4/12/2024 |
1.4.1 | 731 | 3/19/2024 |
1.4.0 | 253 | 3/18/2024 |
1.3.3 | 301 | 3/14/2024 |
1.3.2 | 341 | 3/8/2024 |
1.3.1 | 472 | 2/22/2024 |
1.3.0 | 218 | 2/21/2024 |
1.2.1 | 418 | 2/8/2024 |
1.2.0 | 246 | 2/5/2024 |
1.1.3 | 256 | 2/2/2024 |
1.1.2 | 166 | 2/1/2024 |
1.1.1 | 228 | 1/27/2024 |
1.1.0 | 227 | 1/25/2024 |
1.0.4 | 7,973 | 5/21/2023 |
1.0.3 | 385 | 5/14/2023 |
1.0.2 | 2,690 | 12/3/2022 |
1.0.1 | 2,188 | 7/26/2022 |
1.0.0 | 1,418 | 7/19/2022 |
Version 1.7.0
Added support for .NET 9
Updated Xamarin.GooglePlayServices.Ads.Lite to version 123.4.0 (Android)
Added support for Ad Manager: Banner, Native, Interstitial, Rewarded, Rewarded interstitial (Android, licensed version)
Added UseAdManagerForNativeAds property to use Ad Manager for Native Ads
Use SkipConsent as workaround to solve issue with UMP and .Net9
Minor improvements
Version 1.6.4
Minor improvements
Updated Xamarin.GooglePlayServices.Ads.Lite to version 123.1.0.1 (Android)
Updated Xamarin.Google.UserMessagingPlatform to version 3.0.0.1 (Android)
Version 1.6.3
AdLoaded and AdFailedToLoad events are now properly registered on iOS
Version 1.6.2
Fixed Server Side Verification on both Android and iOS
Version 1.6.1
Updated Xamarin.GooglePlayServices.Ads.Lite to version 123.1.0 (Android)
Fixed bug on iOS
Version 1.6.0
Updated Xamarin.GooglePlayServices.Ads.Lite to version 123.0.0 (Android)
Version 1.5.1
Added property SkipConsent to skip the consent form. (Set it before Initialising the plugin)
Version 1.5.0
Fixed issue preventing consent form to be shown on iOS in some cases
Fixed a possible crash on iOS when registering the events
Improved code for both Android and iOS
Version 1.4.5
Added support for new MAUI Multi project format
Minor improvements
Version 1.4.4
Added back support for Windows projects
Version 1.4.3
Added collapsible banners for Android and iOS (licensed version)
Added possibility to manually load the consent form (licensed version)
Minor code improvements
Updated Xamarin.GooglePlayServices.Ads.Lite to version 122.3.0.3 (Android)
Updated Xamarin.Google.UserMessagingPlatform to version 2.1.0.3 (Android)