/MauiMTAdmob

Primary LanguageC#MIT LicenseMIT

MauiMTAdmob

Package name: Plugin.MauiMTAdmob

Latest version: 1.0.1

If you are looking for the newer version of my plugin for Xamarin, you can visit: MTAdmob

Current Status

Android iOS Windows Mac
Banner ✔️ ✔️
Interstitial ✔️ ✔️
Rewarded ✔️ ✔️
Rewarded Interstitial ✔️

Methods

Banner Interstitial Rewarded Rewarded Interstitial
LoadAd LoadInterstitial LoadRewarded LoadRewardInterstitial
ShowInterstitial ShowRewarded ShowRewardInterstitial
IsInterstitialLoaded IsRewardedLoaded IsRewardInterstitialLoaded

Events

Banner Interstitial Rewarded Rewarded Interstitial
AdsClicked OnInterstitialLoaded OnRewardedLoaded OnRewardedLoaded
AdsClosed OnInterstitialOpened OnRewardedOpened OnRewardedOpened
AdsFailedToLoad OnInterstitialClosed OnRewardedClosed OnRewardedClosed
AdsImpression OnInterstitialFailedToLoad OnRewardedImpression OnRewardedImpression
AdsLoaded OnInterstitialFailedToShow OnUserEarnedReward OnUserEarnedReward
AdsOpened OnInterstitialClicked OnRewardedClicked OnRewardedClicked
OnInterstitialImpression

Important for Android

if you are receiving some errors about UMP while compiling your projects, add the following code to your csproj file:

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'">		
	<AndroidLibrary Include="Dependencies\user-messaging-platform-2.0.0.aar" Bind="false" />
</ItemGroup>

Now, follow these steps:

  • Create a folder "Dependencies" in your project
  • download the file user-messaging-platform-2.0.0.aar from internet or from this repository.
  • Copy the file in this folder
  • Build your project and everything will compile correctly

This might not be required anymore since version 1.0.1

Xamarin.Firebase.iOS.Core 8.10.0.1

If you encounter this error while using this plugin, you can solve it following this comment: xamarin/GoogleApisForiOSComponents#555 (comment)