Skip to content

About

No description, website, or topics provided.

Resources

Stars

124 stars

Watchers

7 watching

Forks

Repository files navigation

MauiMTAdmob

Package name: Plugin.MauiMTAdmob

Latest version: 2.3.1

The licensed version unlocks the mandatory Consent required by Google since the 16th of January. If you like, you can use the unlicensed version of the plugin and implement your choice of Certified CMP. The license will help me to continue updating and supporting this plugin, adding all the newer features that Google implements.

App Open Ads and Native Ads are available only in the licensed version The licensed version allows to preload multiple ads and show them when you prefer

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

Current Status (Version 2.3.1)

Android iOS Windows Mac
Banner ✔️ ✔️ ❌ ❌
Collapsible Banner ✔️ ✔️ ❌ ❌
Interstitial ✔️ ✔️ ❌ ❌
Rewarded ✔️ ✔️ ❌ ❌
Rewarded Interstitial ✔️ ✔️ ❌ ❌
App Open Ads ✔️ ✔️ ❌ ❌
Native Ads ✔️ ✔️ ❌ ❌

Methods

Consent Banner Interstitial Rewarded Rewarded Interstitial App Open Ads
InitialiseAndShowConsentForm LoadAd LoadInterstitial LoadRewarded LoadRewardedInterstitial -
RequestTrackingAuthorizationAsync* ShowInterstitial ShowRewarded ShowRewardedInterstitial
GetTrackingAuthorizationStatus* IsInterstitialLoaded IsRewardedLoaded IsRewardedInterstitialLoaded

Events

Banner Interstitial Rewarded Rewarded Interstitial App Open Ads Native Ads
AdsLoaded OnInterstitialLoaded OnRewardedLoaded OnRewardedLoaded OnAppOpenAdLoaded OnNativeAdLoaded
AdsFailedToLoad OnInterstitialFailedToLoad OnRewardedFailedToLoad OnRewardedFailedToLoad OnAppOpenFailedToLoad OnNativeFailedToLoad
AdsImpression OnInterstitialImpression OnRewardedImpression OnRewardedImpression OnAppOpenImpression OnNativeImpression
AdsClicked OnInterstitialOpened OnRewardedOpened OnRewardedOpened OnAppOpenOpened OnNativeOpened
AdsOpened OnInterstitialFailedToShow OnRewardedFailedToShow OnRewardedFailedToShow OnAppOpenFailedToShow OnNativeFailedToShow
AdsClosed OnInterstitialClosed OnRewardedClosed OnRewardedClosed OnAppOpenClosed OnNativeClosed
AdsSwiped OnInterstitialClicked* OnRewardedClicked* OnRewardedClicked* OnAppOpenClicked OnNativeClicked
OnUserEarnedReward OnUserEarnedReward

*Only supported on iOS

Important for iOS

As the package Xamarin.Google.Mobile.iOS.MobileAds doesn't work on Windows, you need a MAC to test this library. If you connect your iOS device directly to Windows and run it, the library will not work. Unfortunately, this issue doesn't depend on this library so I cannot solve this.

If you get an error saying that the compiler cannot find the Init method, just update your MAUI workload to the latest version. After that, everything will work correctly.

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>

About

No description, website, or topics provided.

Resources

Stars

124 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages