Reputation: 20442
I would like to detect when a user clicks on an AdMob banner.
I realized that most banners nowadays open only after a confirmation click.
AdMob provides AdListener()
and its callback onAdOpened()
, but such callback is not fired by the first click, it is only fired by the confirmation click which opens the ad.
Is there a way to detect the first click on the AdMob banner?
Upvotes: 3
Views: 4236
Reputation: 11
I think onAdOpened() is enough if you want to detect banner ad click, it invoked when user tap on ad. What do you mean with "first click" and "confirmation click"? Whenever user click the ad it would open the ad and bring them somewhere (to play store or web page)
Upvotes: 1
Reputation: 20196
Short answer is no.
Longer answer is not unless you want to get your account banned, as your only options to do exactly as youi have stated will involved inserting yourself between the user and the AdView which violates Admob policy.
Be happy with onAdOpened()
Upvotes: 5