Skip to content
Advertisement

How Can Show InterAd After X Clicks?

How can show the interstitial ads after 2 button clicks in this code java ? “Lastes SDK Admob 20.2.0”

JavaScript

Advertisement

Answer

You can store a variable like clickCount and everytime its even value ie. modulo by 2 == 0 you could show the ad right?

int clickCount = 0;

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement