I have tried to implement admob for both ios and android but it is not working on android. Ios is working perfectly fine.
if (window.AdMob ){
var admobid = ( /(android)/i.test(navigator.userAgent) ) ? adMobHelper.getAndroid() : adMobHelper.getIos();
AdMob = window.AdMob;
AdMob.createBanner({
adId: admobid.banner,
adSize:AdMob.SMART_BANNER,
position:AdMob.AD_POSITION.BOTTOM_CENTER,
autoShow:true
},
function(){console.log("Success Ad");},
function(error){console.log("Error ad: "+error);}
)
}
For android, ad is showing up in the middle of the screen. I have tried on galaxy s3 and nexus 5, same behaviour on both devices.