My whole application is complete. The only thing that is left for me to do is make sure vungle, admob, and iad all work before I send it off to be reviewed by apple.
It is very hard for me to do trial and error attempts since I do not own a mac and I use my friend’s on teamviewer each time I want to do a test build. I have searched the forums for this exact cause and have found many, many different information regarding changes in ios 9 for vungle, how to enable test mode etc and keep reading many different things.
All I want to do is have a single interstitial ad show each time the user loses my game. I want it to try vungle for the ad, then admob, and then resort to iad if there isn’t anything else. Here is what I have and I’m not seeing a thing on my device.
build.settings
plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" },
game over file
local ads = require("ads") local appID local function vungleListener( event ) -- Video ad not yet downloaded and available if (event.type == "adStart" and event.isError) then ads:setCurrentProvider("admob") ads.show("interstitial", {testMode = true }) end return true end local function iAdsListener( event ) if ( event.isError ) then --No ads were available at all. end return true end local function adMobListener( event ) if (event.isError) then ads:setCurrentProvider("iads") ads:show("interstitial") end return true end appID = "XXXXXXXXX" ads.init("vungle", appID, vungleListener) ads.init("iads", appID, iAdsListeners) ads.init("admob", appID, adMobListener) function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then elseif ( phase == "did" ) then ads:setCurrentProvider("vungle") ads.show("interstitial") updateScores() end end
This might be a very noob question, but do I need an appId filed in if I am only using on a test device?
Any help would be great!