Google Admob not displaying ads using cordova tabset example? -


I am using the original Adobe example to display banner ads on my Cordoba app, but either an ad

 class = "lang-html prettyprint-override">  angular.module (' Starter ', [' ionic ',' starter controllers', 'starter services']) .ron (function ($ ionicplayfafet) {$ ionicPlatform.ready (function () (// Nput) if (window. Cordoba & window.cordova.plugins.keyboard) {cordova.plugins.Keyboard.hideKeyboardAccessoryBar (true);} if (window.statsbar) {// org.apache.cordova.statusbar StatusBar.styleDefault ();} var ad_units = {iOS: {banner: 'ca-app-pub-XXXXXXXXXX / 2259066653',}, Android: {banner: 'ca-app-pub-XXXXXXXXXXXXXXXX / 2259066653', required According to platform var, select the correct ad ID Ad Molid = (/ (Android) / i.test (nivigator.userAgent)? Ad_units.android: ad_units.ios; // nothing happens ..... if (AdMob) AdMob.createBanner (admobid.banner); }); }}  

Do anyone have experience with this or can suggest some ways to debug this?

I am using the AdMob plugin and I think it's the one you are using Code is. If so, then you have two options:

1: Please. Banner by adobebid . Apart from this, you should set isTesting to true to prevent your account from blocking Google for testing purposes:

  var Ad_units = {ios: {publisherId: 'ca-app-pub-XXXXXXXXXXXXXXXX / 2259066653', hastening: true}, Android: {publisherId: 'ca-app-pub-XXXXXXXXXXXXXXXX / 2259066653', hastening: true}}; // Choose the right Ad ID according to platform var isobid = (/(android)/i.test(navigator.userAgent))? Ad_units.android: ad_units.ios; If (AdMob) {AdMob.createBanner (admobid); }  

2: You must declare .banner as an object within the ad configuration:

  

Ionic also tested it with ionic.Platform.ready (function () {...}}; with $ IonicPlatform . Otherwise, if the code is truncated to prevent errors, angle recommends using it in this way (but it does not affect if you do not want to reduce the code ($ [IonicPlatform] {...}}); / Html>

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -