- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if I put AdMob ADs in my cordova app... Android... https://github.com/cranberrygame/cordova-plugin-ad-admob
well
if i have 3 html pages i have to call below - all this code - 3 times????
function onDeviceReady() ..... called in index.html only....? what to do
function onDeviceReady() { // Ad Mob ADs - start var bannerAdUnit = "ca-app-pub-000000000000000000"; var interstitialAdUnit = "ca-app-pub-00000000000000000000"; var isOverlap = true; //true: overlap, false: split var isTest = false; window.admob.setUp(bannerAdUnit, interstitialAdUnit, isOverlap, isTest); // window.admob.onBannerAdShown = function() { // alert('onBannerAdShown'); // }; window.admob.showBannerAd('bottom-center','SMART_BANNER'); // Ad Mob ADs - end
}
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Leonidas, do not use multiple HTML pages if you are using Cordova plugins and Cordova APIs. Limit your app to a single index.html file and use <div> tags that you "hide" and "show" to display multiple "pages." See this Best Practices section of this article for more info: https://cordova.apache.org/docs/en/5.1.1/guide/next/index.html

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