admob-native-java-help
v2.0.20
Published
Cordova plugin for native AdMob integration using a clean architecture with AdMobLauncher. No MainActivity code injection. Safe, robust, and compatible with modern Android.
Readme
admob-native-java-help
Cordova plugin for native AdMob integration using a Clean Architecture approach (v2).
This plugin creates a dedicated AdMobCordovaActivity that extends CordovaActivity to manage AdMob banners and interstitials natively, outside the WebView, ensuring reliable display and no z-index issues.
Prerequisites
- admob-plus-cordova: This plugin depends on
admob-plus-cordovafor the underlying AdMob SDK and App ID configuration. It will be automatically installed as a dependency.
Features
- Native Activity: Uses
AdMobCordovaActivityinstead of injecting code intoMainActivity.java. - No WebView Hacks: Banners are placed in a native layout alongside the WebView, not over it.
- Page Control: Show/Hide banners based on current WebView URL (configured via
BANNER_SHOW_ON_PAGESandBANNER_HIDE_ON_PAGES). - Interstitials: Full support for interstitial ads with auto-reload.
- Clean Install: Does not modify your project's
MainActivity.javaor other core files.
Installation
See INSTALLATION_GUIDE.md for detailed instructions.
cordova plugin add admob-native-java-help --variable APP_ID_ANDROID="your_app_id" ...Documentation
License
MIT
