AdMobBuddy icon indicating copy to clipboard operation
AdMobBuddy copied to clipboard

Getting unable to resolve interface type

Open luqman-hussain opened this issue 2 years ago • 2 comments
trafficstars

When using for Interstitial ads getting as:

IAdManager ads = new AdMobAdapter(mainActivity,
interstitialAdID: _interstialTestAd);

ads.DisplayInterstitialAd();

Getting:

Unable to resolve interface type 'Android.Gms.Ads.IOnUserEarnedRewardListener'. Are you missing an assembly reference?	
Unable to resolve interface type 'Android.Gms.Ads.Initialization.IOnInitializationCompleteListener'

Am i missing something?

luqman-hussain avatar Jan 07 '23 14:01 luqman-hussain

I'll take a look at it. It probably has to do with the version of the Xamarin binding library... what version of the Xamarin.GooglePlayServices.Ads.Lite nuget package are you using?

Google did a huge refactor of the AdMob android package last year, and Microsoft is still trying to fix their wrapper last time I checked. I've been putting off updating this library because their latest versions of the binding library have been broken.

dmanning23 avatar Jan 11 '23 15:01 dmanning23

hiya. thanks. i tried multiple different versions of Xamarin.GooglePlayServices.Ads.Lite . even older ones . didnt seem to work with any. If you can check which most up to date one it definitely works with that would be ideal.

luqman-hussain avatar Jan 11 '23 15:01 luqman-hussain