MarcTron.Admob 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MarcTron.Admob --version 1.0.0
NuGet\Install-Package MarcTron.Admob -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MarcTron.Admob" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MarcTron.Admob --version 1.0.0
#r "nuget: MarcTron.Admob, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MarcTron.Admob as a Cake Addin
#addin nuget:?package=MarcTron.Admob&version=1.0.0

// Install MarcTron.Admob as a Cake Tool
#tool nuget:?package=MarcTron.Admob&version=1.0.0

MtAdmob Readme

With this Plugin you can add a Google Admob Ads inside your Xamarin Projects with a single line!!!

To add a Banner on a page you have two options:

<controls:AdView x:Name="myAds"></controls:AdView>

remember to add this line in your XAML:

AdView ads = new AdView();


For each AdView if you want, you can set these properties: AdsId: To add the id of your ads PersonalizedAds: You can set it to False if you want to use generic ads (for GDPR...)


AdsId: To add the id of your ads PersonalizedAds: You can set it to False if you want to use generic ads (for GDPR...) TestDevices: You can add here the ID of your test devices

You can use Global Properties in this way: CrossMTAdmob.Current.UserPersonalizedAds = true;


You can show an interstitial with a single line of code:



Just in case you need, the Banner ads offer 4 events:

AdsClicked When a user clicks on the ads AdsClosed When the user closes the ads AdsImpression Called when an impression is recorded for an ad. AdsOpened When the ads is opened

Remember to include the MTAdmob library with this code (usually it's added automatically):

using MarcTron.Plugin;


Add your AdMob App ID to your app's AndroidManifest.xml file by adding the <meta-data> tag shown below:


Before loading ads, have your app initialize the Mobile Ads SDK by calling MobileAds.initialize() with your AdMob App ID. This needs to be done only once, ideally at app launch. For example:

protected override void OnCreate(Bundle savedInstanceState)
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;

            MobileAds.Initialize(ApplicationContext, "xx-xxx-xxx-xxxxxxxxxxxxxxxx~xxxxxxxxxx");
            Xamarin.Forms.Forms.Init(this, savedInstanceState); 
            LoadApplication(new App());

That's it. Cannot be easier than that 😃

Available on Nuget:

Project website:


To report any issue:

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 was computed.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid81 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed.  uap10.0.16299 is compatible. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MarcTron.Admob:

Package Downloads

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.3.1 251 5/3/2024
2.3.0 429 3/21/2024
2.2.3 223 3/8/2024
2.2.2 118 3/8/2024
2.2.1 263 2/24/2024
2.2.0 324 2/9/2024
2.1.0 357 1/25/2024 4,090 5/21/2023 5,815 12/3/2022 1,072 11/19/2022
1.8.0 3,719 7/3/2022
1.6.9 10,692 12/23/2021
1.6.8 7,396 11/23/2021
1.6.7 1,677 10/16/2021
1.6.6 874 10/12/2021
1.6.5 2,011 8/24/2021
1.6.4 1,001 8/22/2021
1.6.3 1,078 8/16/2021
1.6.2 911 8/14/2021
1.6.1 6,395 1/23/2021
1.6.0 5,419 11/7/2020
1.5.8 3,365 9/27/2020
1.5.7 2,964 8/1/2020
1.5.6 2,864 6/7/2020
1.5.5 2,248 5/10/2020
1.5.0 1,580 4/11/2020
1.4.5 2,974 11/19/2019
1.4.4 1,637 10/11/2019
1.4.3 1,083 10/7/2019
1.4.2 1,146 9/7/2019
1.4.1 1,462 8/12/2019
1.4.0 1,196 8/2/2019
1.3.0 1,354 6/1/2019
1.2.0 1,205 4/8/2019
1.1.0 1,182 3/22/2019
1.0.0 1,217 3/5/2019

First Release
     Banner and Insterstitial for Android
     Banner and Insterstitial for iOS