![]() |
VOOZH | about |
dotnet add package MarcTron.Admob --version 2.4.0
NuGet\Install-Package MarcTron.Admob -Version 2.4.0
<PackageReference Include="MarcTron.Admob" Version="2.4.0" />
<PackageVersion Include="MarcTron.Admob" Version="2.4.0" />Directory.Packages.props
<PackageReference Include="MarcTron.Admob" />Project file
paket add MarcTron.Admob --version 2.4.0
#r "nuget: MarcTron.Admob, 2.4.0"
#:package MarcTron.Admob@2.4.0
#addin nuget:?package=MarcTron.Admob&version=2.4.0Install as a Cake Addin
#tool nuget:?package=MarcTron.Admob&version=2.4.0Install as a Cake Tool
With this Plugin you can add a Google Admob Ads inside your Xamarin Android and iOS Projects with a single line!!! This plugin supports: Banners, Interstitial, Rewarded Videos and Rewearded Interstitials (from version 1.9)
From version 2.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/XMTAdmob 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.
If you need faster support with this plugin, custom changes or in general with your Xamarin or MAUI project, contact me at hightouchinnovation@gmail.com to discuss it further.
From your platform code, from version 2.1.0, you need to call: CrossMTAdmob.Current.Init(this,...);
If you don't you'll get an error!
The full guide is available on: https://hightouchinnovation.com/XMTAdmobGuide
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" />
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/>
If you don't do this, your iOS app will crash
Get Filthy Rich by Monetizing Your Xamarin.Forms App with AdMob - Gerald Versluis (Youtube)
To buy the license visit https://hightouchinnovation.com/XMTAdmob
Available on Nuget: https://www.nuget.org/packages/MarcTron.Admob
Guide: https://hightouchinnovation.com/XMTAdmobGuide
Tutorial: https://www.xamarinexpert.it/admob-made-easy/
Sample code: https://github.com/marcojak/XamarinMTAdmobSample
To report any issue: https://github.com/marcojak/MTAdmob/issues
This plugin uses an cryptographic algorithm to handle the license.
If you prefer to not buy a license, if possible, please, support my work with few coffees or even better with a Membership! You can do it here: Buy Me A Coffee Your help allows me to continue to spend time on this project and continue to maintain and update it with new features and to be ready for the new Google SDK : Google SDK Migration.
By using MtAdmob (the "Plugin"), you agree that:
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 | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 is compatible. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. monoandroid13.0 monoandroid13.0 is compatible. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. xamarinios10 xamarinios10 is compatible. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on MarcTron.Admob:
| Package | Downloads |
|---|---|
|
ContactManager.Xamarin
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.0 | 1,388 | 8/8/2024 |
| 2.3.3 | 349 | 7/9/2024 |
| 2.3.2 | 317 | 6/24/2024 |
| 2.3.1 | 635 | 5/3/2024 |
| 2.3.0 | 668 | 3/21/2024 |
| 2.2.3 | 392 | 3/8/2024 |
| 2.2.2 | 290 | 3/8/2024 |
| 2.2.1 | 428 | 2/24/2024 |
| 2.2.0 | 468 | 2/9/2024 |
| 2.1.0 | 555 | 1/25/2024 |
| 1.9.0.6 | 4,902 | 5/21/2023 |
| 1.9.0.3 | 6,645 | 12/3/2022 |
| 1.9.0.2 | 1,303 | 11/19/2022 |
| 1.8.0 | 4,064 | 7/3/2022 |
| 1.6.9 | 11,701 | 12/23/2021 |
| 1.6.8 | 7,649 | 11/23/2021 |
| 1.6.7 | 1,947 | 10/16/2021 |
| 1.6.6 | 1,142 | 10/12/2021 |
| 1.6.5 | 2,278 | 8/24/2021 |
| 1.6.4 | 1,251 | 8/22/2021 |
Version 2.4.0
Fixed issue on iOS that prevented to show the consent form in some cases
Minor improvements
Version 2.3.3
Minor code improvements
Version 2.3.2
Added possibility to manually load the consent form (licensed version)
Started to add support for Collapsible Banners (Preview)
Updated Xamarin.GooglePlayServices.Ads.Lite to Version 122.3.0.3
Minor code improvements
Version 2.3.1
Fixed possible crash while loading a banner.
Added Destroy method for a banners views.