I am using the Ionic Framework and this plugin:
https://github.com/floatinghotpot/cordova-plugin-admob
When I deployed the application on an Android phone, I see a black rectangle, but not an ad.
I do not know what is happening ... This is my code:
$ ionicPlatform.ready (function () {
var am = 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() {
}
);
},
function() {
}
);
});
The Google Play services plugin is also installed when you install the previous admob plugin. If anyone can help me, I would really appreciate it. thanks in advance
source
share