- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone , need Help !
I am showing admob banner ads (admobpro plugin) and would like to show Interstitial ad when the user closes the app , how should my code look like ? , any help would be appreciated !
this is The code i use for banner ads
<script>
var admobid = {};
if( /(android)/i.test(navigator.userAgent) ) {
admobid = { // for Android
banner: 'ca-app-pub-4244161648326484/2972750652',
interstitial: 'ca-app-pub-4244161648326484/4449483854'
};
} else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
admobid = { // for iOS
banner: 'ca-app-pub-4244161648326484/2972750652',
interstitial: 'ca-app-pub-4244161648326484/4449483854'
};
} else {
admobid = { // for Windows Phone
banner: 'ca-app-pub-4244161648326484/2972750652',
interstitial: 'ca-app-pub-4244161648326484/4449483854'
};
}
function initApp() {
if (AdMob) {
AdMob.createBanner({
adId : admobid.banner,
position : AdMob.AD_POSITION.BOTTOM_CENTER,
autoShow : true
});
}
}
document.addEventListener('deviceready', initApp, false);
</script>
Thanks
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or maybe instead of the Splash screen when the app starts to show only once !
Thanks
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page