Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
How to integrate Admob using Monaca CLI ?
-
I downloaded sample app from here https://docs.monaca.io/en/sampleapp/samples/admob/ .I have installed Cordova plugin but still i am unable to see ads even the test ads. Please help what step am i missing ?
-
@viveksharma619 I created a JS file to simplify this. Check it out here: https://github.com/munsterlander/Onsen-Examples/tree/master/Admob-Example
-
@munsterlander Thanks for the file but still i am not able to see the ads, i followed the following steps
- i started with a simple angular 1 project (project generated by monaca cli )
- installed https://github.com/floatinghotpot/cordova-admob-pro plugin using
cordova plugin add cordova-plugin-admobpro cordova platform add android
- Added the file given by you
- monaca preview / monaca remote build for android
Still i am not bale to see ads , what step am i doing incorrectly ? Please help i am new to onsen ui and cordoava
Github repo https://github.com/viveksharma619/onsenui_app
-
@viveksharma619 You will have to do a debug build and have a paid developers account in order to use third-party plugins.
-
Hi @munsterlander, latest sample projects includes also admob sample app with the plugin enabled. But also i am also facing with “Uncaught ReferenceError: AdMob is not defined” error, when i run the project @monaca debugger client. What else should we do to run sample admob app?Thanks.
Best Regards,
Ferit Ünlü
-
@ferit-unlu You have to do a custom build debugger otherwise the plugin is not included. As this is a thrid-party plugin, this requires a paid Monaca developers account. If you are doing all of that, lets see your code and go from there.
-
yes, you are right. Thanks for the response.