Is there any way to prevent the user from clicking twice on the Interstitial ad?

145 views
Skip to first unread message

mouaadabdelg...@gmail.com

unread,
Sep 1, 2022, 10:23:35 AM9/1/22
to Google Mobile Ads SDK Developers
Hi,

Currently, I'm facing the ad limit.

I read that if a user keeps clicking on the displayed ads, this will violate AdMob policy, and as the app developer, I'm the responsible to handle this situation.

I'm using the latest version of AdMob SDK 21.1.0

AdRequest adRequest = new AdRequest.Builder().build();
InterstitialAd.load(activity, StringUtils.getString(R.string.INTERSTITIAL_ADMOB), adRequest, new InterstitialAdLoadCallback() {
   @Override
   public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {
     interstitialAd.show(activity);
     interstitialAd.setFullScreenContentCallback(new FullScreenContentCallback() {
       @Override
       public void onAdDismissedFullScreenContent() {
         adsCallBack.onAdClosed();
       }
     });
   }
 });

Is there any way I can dismiss the interstitial ad if the user clicks on it ONE time, or just prevent them from clicking on it twice?

Mobile Ads SDK Forum Advisor

unread,
Sep 1, 2022, 2:41:10 PM9/1/22
to mouaadabdelg...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for reaching out to us. Let me do the best I can to assist you in this.

With regard to your concern, I'm afraid that the SDK doesn't have a method function to dismiss the interstitial ad programatically. As per your use case, what you can do is to utilize the FullScreenContentCallback that handles events related in displaying your InterstitialAd. You may use of the events to track how many times your user has click the ad, and make a warning (or you may stop requesting for Interstitial ad) if they trying to click it multiple times.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


 

ref:_00D1U1174p._5004Q2duFE6:ref
Reply all
Reply to author
Forward
0 new messages