Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to use the ADLISTENER in c#?

MrMeMrMe DEMember ✭✭

Hello everybody,

I have this code:

        mInterstitialAd.AdUnitId = "ca-app-pub-6088441455894853/8008896128 ";
        var requestBuilder = new AdRequest.Builder().Build();

        mInterstitialAd.LoadAd(requestBuilder);

        mInterstitialAd.Show();

Now, show() is called, but sometimes the add hasn't loaded yet. I think an Adlistener should do right.

In Java, this is how this should work:
mInterstitialAd.AdListener(new AdListener() { })

But this doesnt work in xamarin.

How do I get this to work?

Tagged:

Best Answer

Answers

Sign In or Register to comment.