Hello,
I have set up revmob in one of my apps but its not working…
My code is-
in _ main.lua _
local RevMob = require("revmob") local REVMOB\_IDS = { ["Android"] = "56179fddd45f678378bbad99", ["iPhone OS"] = "5617a00dd45f678378bbada7" } RevMob.startSession(REVMOB\_IDS)
In menu.lua
local composer = require( "composer" ) -- Load scene with same root filename as this file local scene = composer.newScene() RevMob = require("revmob") revmobListener = function(event) print("Event: " .. event.type) end PLACEMENT\_IDS\_FULLSCREEN = { ["Android"] = "561cbc6593828bd609ef2127", ["iPhone OS"] = "561cbcf15f39e9d773589d50" } fullscreen = RevMob.createFullscreen(revmobListener, PLACEMENT\_IDS\_FULLSCREEN) ------------------------------------------------------------------------------- function scene:create( event ) local sceneGroup = self.view -- Called when the scene's view does not exist -- -- INSERT code here to initialize the scene -- e.g. add display objects to 'sceneGroup', add touch listeners, etc end function scene:show( event ) local sceneGroup = self.view local phase = event.phase if phase == "will" then -- Called when the scene is off screen and is about to move on screen elseif phase == "did" then fullscreen:show() end end function scene:hide( event ) local sceneGroup = self.view local phase = event.phase if event.phase == "will" then -- Called when the scene is on screen and is about to move off screen -- -- INSERT code here to pause the scene -- e.g. stop timers, stop animation, unload sounds, etc.) elseif phase == "did" then -- Called when the scene is now off screen end end function scene:destroy( event ) local sceneGroup = self.view -- Called prior to the removal of scene's "view" (sceneGroup) -- -- INSERT code here to cleanup the scene -- e.g. remove display objects, remove touch listeners, save state, etc end ------------------------------------------------------------------------------- -- Listener setup scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) ------------------------------------------------------------------------------- return scene
I have no idea what i am doing wrong?
Please Help me…
And tell me if there is any other options for interstitial ads…except admob…