I am putting ads on my app and I’ve analyzed the error and its saying it cant find the ads that i try to implement in my app . This makes no sense because ive added plugins :
plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", }, },
I’ve put the app provider and app id:
local ads = require "ads" ads.init("vungle", "have app id in my code but not showing here" )
and I put this where I want to show the ads:
ads.show( "interstitial" )
I’ve looked over all of this for hours and I see nothing wrong . Why am I getting this . What is the problem here . Does vungle not work with corona sdk users?
Error:
Windows simulator build date: May 27 2015 @ 18:15:50 Copyright (C) 2009-2015 C o r o n a L a b s I n c . Version: 3.0.0 Build: 2015.2646 Platform: SM-G900S / x64 / 6.2 / Intel(R) HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646 Loading project from: c:\users\true\documents\corona projects\tapthe meme Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents WARNING: display.setStatusBarMode() not supported in the simulator for SM-G900S device WARNING: The 'ads' provider (vungle) is not available on the simulator Runtime error c:\users\true\documents\corona projects\tapthe meme\gameOver.lua:4: attempt to index global 'ads' (a nil value) stack traceback: [C]: in function 'error' ?: in function 'gotoScene' c:\users\true\documents\corona projects\tapthe meme\game.lua:139: in function '\_listener' ?: in function \<?:141\> ?: in function \<?:221\>
Thank you.