Admob is not working

admob was supported earlier in my game. but it stopped working suddenly.
ERROR:SCRIPT: /login/login.gui_script:167: attempt to index global 'admob' (a nil value) stack traceback: /login/login.gui_script:167: in function </login/login.gui_script:142>

Which admin extension are you using? How are you using? With a bundled app or using the mobile dev app?

https://github.com/Lerg/extension-admob/archive/master.zip
I’m using it with mobile dev app and i’m running it in my mobile using USB connection

Yes, that won’t work. The mobile dev app is a clean version of Defold without any native extensions (eg AdMob).

We will add a warning to the mobile dev app that it doesn’t contain any native extensions and add an option to bundle a dev app based on your current project. In the meantime you can follow the instructions in the page I linked.

3 Likes