Helo. I am using Admob cordova plugin to display ads in my ionic based app. However i am getting black blank banner and in android logcat i am getting this error: JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined I googled and stackowerflowed it but couldn't find a solution. What can i do? I am sugin the plugin as it is explained in git repo. I think the problem is about sdk. Thanks.
my ionic ready code part looks like this:
.run(function($ionicPlatform) { $ionicPlatform.ready(function() { // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard // for form inputs) if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true); } if (window.StatusBar) { // org.apache.cordova.statusbar required StatusBar.styleDefault(); } window.plugins.AdMob.setOptions( { publisherId: 'ca-app-pub-*****/*****', bannerAtTop: false, // set to true, to put banner at top overlap: false, // set to true, to allow banner overlap webview offsetTopBar: false, // set to true to avoid ios7 status bar overlap isTesting: false, // receiving test ad autoShow: true // auto show interstitial ad when loaded }); // display the banner at startup window.plugins.AdMob.createBannerView(); });
******EDIT*******
After a couple of app starts now i am getting this error in logcat and still black & blank banner ad.
"Receiver error Http response code: 403 "
"There was a problem getting an ad response. ErrorCode: 0 "
"Failed to load ad: 0"