android - Admob - The banner shows a black background and no ad -
i'm using ionic framework, , plugin:
when deployed app android phone, see black rectangle, no ad.
i don't know what's happening.. code:
$ionicplatform.ready(function() {
//admob var = window.plugins.admob; am.createbannerview( { 'publisherid': 'xxxxxxxxxx', 'adsize': am.ad_size.smart_banner, 'bannerattop': false }, function() { am.requestad( { 'istesting': true }, function() { am.showad(true); }, function() { /* handle error */ } ); }, function() { /* handle error */ } ); });
google play services plugin installed when installed previous admob plugin. if can me, appreciate it. in advance
i noticed set istesting true. if using android simulator may not render ads when in mode.
also make sure in fact using correct publisher id. know can confusing since admob gives few possibilities choose from.
i made post on how admob working ionicframework on blog. can found here:
https://www.thepolyglotdeveloper.com/2014/06/using-admob-ionicframework/
if still doesn't work, let know , can troubleshoot there.
cheers,
Comments
Post a Comment