The interstitial works fine when displayed through a button press. I have tried OnAppearing, but it runs before the page is loaded on Android. It seems no matter what I do, even with delayed calls, the page display overrides the ad.
After working on the project on and off, I finally solved the problem by using the MarcTron.Admob plugin, instead of my initial implementation.
Here is a tutorial for the plugin
Could you please some main code snippet or a basic demo so that we can see with it ?
public class IAdInterstitial_Droid : IAdInterstitial
interstitialAd = new InterstitialAd(Android.App.Application.Context);
interstitialAd.AdUnitId = "ca-app-pub-3940256099942544/1033173712"; // Admob test ad
var requestbuilder = new AdRequest.Builder();
public void ShowAd()
Show the ad
IAdInterstitial adInterstitial = DependencyService.Get<IAdInterstitial>();
Thanks in advance
Okay, I guess that is impossible
Hello i begin to integrate admob on my app, my page load before my ads in my case, so we see the page and after the ads, I do the same integration.
Where do you place the code that displays the ad?
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies