admob is not defined - Cordova CLI

123 Views Asked by At

I'm tring to include admob ads to my app. I'm using Cordova CLI to build my android app.

using cordova plugin add cordova-admob --save from the documentations I have installed admob plugin using cordova cli also have included the plugin in the config.xml. And made all the required configs using ad ids.

But after when I run the app in device and inspect. I see

Uncaught ReferenceError: admob is not defined

How to make admob available to window. My understanding was adding plugin tag to config.xml will take care of it. But it seems to be not correctly working. Any idea?

0

There are 0 best solutions below