cordova-plugin-admob-free icon indicating copy to clipboard operation
cordova-plugin-admob-free copied to clipboard

admob is not defined

Open SimoneVB opened this issue 5 years ago • 2 comments

I have an "admob is not defined"

I'm using Cordova CLI 9.0.1 and testing this on my phisical device

  • this is my config.xml

  • this my my JS (called on DeviceReady) function initAd() { admob.banner.config({ id: "ca-app-pub-4719874578519183/8005036153", isTesting: true })

          // Create banner
          admob.banner.prepare();
    
          // Show the banner
          admob.banner.show();
    
          // Hide the banner
          //admob.banner.hide()
    
          // Remove the banner
          //admob.banner.remove()
      }
    

Can you help me?

SimoneVB avatar Feb 12 '20 12:02 SimoneVB

Check if you have call to cordova.js on your HTML file

nathanael540 avatar Aug 05 '20 13:08 nathanael540

How you added in config.xml. ?

21pg avatar Aug 13 '20 14:08 21pg