MTAdmob 2.1.0 is finally here

After a bit of time busy on something else, I’ve finally updated my Xamarin plugin to version 2.1.0.

This version includes several improvements and updates Xamarin.GooglePlayServices.Ads.Lite to 122.1.0.1

User consent & License

Since the 16th of January, Google made it mandatory to ask EU users for consent.

The new version of the plugin includes an implementation of the Google UMP and so it can handle the consent for you.

To unlock this feature, you need a license that you can purchase here: https://hightouchinnovation.com/XMTAdmob

Of course, you can decide to adopt another Certified CMP and implement it on your own. In this case, you can just use the unlicensed version of the plugin with all the other features freely available.

The license will allow me to continue supporting this plugin and implement always new features as soon as Google implements it.

How to initialise the plugin

To initialise this new version of the plugin you can use the following:

Android

CrossMTAdmob.Current.Init(this, "your_App_Id", "your_license");

There are additional optional parameters that are mostly used for testing purposes.

You don’t need to call anymore

MobileAds.Initialize(this);

as the plugin will do it for you.

iOS

CrossMTAdmob.Current.Init("your_license");

There are additional optional parameters that are mostly used for testing purposes.

You don’t need to call anymore

MobileAds.SharedInstance.Start(CompletionHandler);

as the plugin will do it for you.

Download

You can download the plugin here: https://www.nuget.org/packages/MarcTron.Admob/

MAUI version

If you are updating your Xamarin app to MAUI or if you are creating your new app using MAUI, you can use the MAUI version of the plugin.

You can find it here: https://www.nuget.org/packages/Plugin.MauiMTAdmob/

and you can buy the license here: https://hightouchinnovation.com/MMTAdmob

As per the Xamarin version, you can use the unlicensed version of the plugin adopting your preferred Certified CMP and implementing it on your own.