答案 0 :(得分:1)
我在我的项目中使用了this插件使用了admob。它运行得很好
1.创建(@shift = 'Nights'
AND DATEPART(hh,[PostingDate]) NOT BETWEEN 6 and 17)
or (@shift = 'Days'
AND DATEPART(hh,[PostingDate]) BETWEEN 6 and 17)
文件并放在www / js文件夹
<强> admob_simple.js 强>
admob_simple.js
注意:请更改var admobid = {};
if (/(android)/i.test(navigator.userAgent)) {
admobid = { // for Android
banner: 'ca-app-pub-1417132269349730/9915914608',
interstitial: 'ca-app-pub-1417132269349730/8159979806'
};
} else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
admobid = { // for iOS
banner: 'ca-app-pub-6869992474017983/4806197152',
interstitial: 'ca-app-pub-6869992474017983/7563979554'
};
} else {
admobid = { // for Windows Phone
banner: 'ca-app-pub-6869992474017983/8878394753',
interstitial: 'ca-app-pub-6869992474017983/1355127956'
};
}
if ((/(ipad|iphone|ipod|android|windows phone)/i.test(navigator.userAgent))) {
document.addEventListener('deviceready', initApp, false);
} else {
initApp();
}
function initApp() {
if (!window.AdMob) {
return;
}
window.AdMob.createBanner({
adId: 'ca-app-pub-1417132269349730/9915914608',
position: window.AdMob.AD_POSITION.BOTTOM_CENTER,
autoShow: true
});
}
&amp; banner
ids
2.在interstitial
index.html
如果您有任何疑问,请告诉我。谢谢