Parvej Bapary
Parvej Bapary

Reputation: 39

How to detect Admob Interstitial ads is clicked by user?

I am developing an android app where i am showing interstitial ads from Admob. I have to detect whether interstitial ads is clicked by user or not...? I have tried https://developers.google.com/ad-manager/mobile-ads-sdk/android/interstitial

but i can't find any listener for ads onClick. I have also tried @override touch method of android but @override touch method doesn't work on interstitial ads as interstitial ads are covering whole screen. Can anyone suggest me any method or listener to detect user's click on interstitial ads.

Upvotes: 1

Views: 1889

Answers (1)

DB377
DB377

Reputation: 413

onAdClicked() method is available in adListener of google interstitial ad.

interAd.setAdListener(new AdListener() {
            @Override
            public void onAdClicked() {
                super.onAdClicked();

        }
    });

Upvotes: 2

Related Questions