How to: AdMob banner and interstitial ads in Android WebView apps

Want to monetize your Android WebView app with ads from AdMob? Yeah, this is how to do it:

  • Download the WebView template for Android Studio here.
  • Extract the zip folder and open the project in Android Studio.
  • Open Config.java file:

  • You can activate and deactivate banner and/or interstitial ads and define the interval of appearing interstitial ads. Please set your AdMob IDs in strings.xml file before launching your app:

Done, that’s it! We wish you a prosperous business! 😉