Admob configuration




Last updated




Last updated
<plugin name="cordova-plugin-admob-free" spec="^0.21.0">
<variable name="ADMOB_APP_ID" value="YOUR ADMOB ID" />
</plugin>if(this.platform.is('android')) {
this.bannerId = '';//<-- Past your banner admob id for android here
this.InterstitialId = '';//<-- Past your Interstitial admob id for android here
this.VideoID = "";//<-- Past your video admob id for android here
}
if(this.platform.is('ios')) {
this.bannerId = "";//<-- Past your banner admob id for ios here
this.InterstitialId = "";//<-- Past your Interstitial admob id for ios here
this.VideoID = "";//<-- Past your video admob id for ios here
}public bannerConfig: AdMobFreeBannerConfig = {
id:this.bannerId,
autoShow: true,
isTesting:false,//<- if you want just to test if admob is working , you can set the value to true
};
public InterstitialConfig : AdMobFreeInterstitialConfig = {
id:this.InterstitialId,
autoShow:true,
isTesting:false,//<- if you want just to test if admob is working , you can set the value to true
}
public RewardVideoConfig : AdMobFreeRewardVideoConfig = {
id:this.VideoID,
autoShow : true,
isTesting:false,//<- if you want just to test if admob is working , you can set the value to true
}