android - Admob - The banner shows a black background and no ad -


i'm using ionic framework, , plugin:

https://github.com/floatinghotpot/cordova-plugin-admob

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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -