我正在研究离子项目。我已经使用这个插件cordova-plugin-admobpro集成了Admob,它完美地工作这是我使用的代码:
//======admob code start=============
var admobid = {};
// select the right Ad Id according to platform
if( /(android)/i.test(navigator.userAgent) ) {
admobid = { // for Android
banner: 'ca-app-pub-84538xxxxxxxxxxxxxxxxxx',
interstitial: 'ca-app-pub-845xxxxxxxxxxxxxxxxx'
};
} else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
admobid = { // for iOS
banner: 'ca-app-pub-845xxxxxxxxxxxxxxxx',
interstitial: 'ca-app-pub-84xxxxxxxxxxxxxxxxxx'
};
} else {
admobid = { // for Windows Phone
banner: 'ca-app-pub-xxxxxxxxxxxxxxxxxx',
interstitial: 'ca-app-pub-xxxxxxxxxxxxx'
};
}
if(window.AdMob) AdMob.createBanner( {
adId:admobid.banner,
position:AdMob.AD_POSITION.BOTTOM_CENTER,
autoShow:true} );
//=======AdMob Code End=======
现在我需要在我的内容中的视图中添加更多内容(我认为是 ADMOB NATIVE)有什么想法吗?我可以使用 ADsense 广告吗?