- Example
"scripts": {
.....
.....
"build": "npm run update-admob && cross-env NODE_ENV=production vite build",
"update-admob": "node node_modules/capacitor-hook-admob-ids/hooks/capacitor-hook-admob-ids.js",
.....
.....
},
New option: USE_LITE_ADS
- value: "lite"
- If else: default
{
"plugins": {
"AdMob": {
"APP_ID_ANDROID": "ca-app-pub-xxxx",
"APP_ID_IOS": "ca-app-pub-xxxxx",
"USE_LITE_ADS": "lite"
}
}
}
npm run update-admob
More information: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/discussions/29
Documentation can change at any time, make sure to install with version lock @x.x.x