Skip to main content
Version: Next


npx admob-plus install -p cordova

Or via Cordova CLI:

cordova plugin add admob-plus-cordova --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx --variable APP_ID_IOS=ca-app-pub-xxx~xxx$PLAY_SERVICES_VERSION is available for configuration, the default is --PLAY_SERVICES_VERSION=23.0.0.

When using with other plugins and encountering errors, set AndroidXEnabled to true.

<platform name="android">
<preference name="AndroidXEnabled" value="true" />

Or add the following plugins for Cordova<9,

cordova plugin add cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter


Add these rules to your proguard configuration:

-keep public class** {
public *;