Hei all,
I am trying to implement revmob and I am rying to show a rewarded video, without success at all. I think it might be because wrong App Id. I am confused, as I found here in the forums App Id and Placement Id, whereas in the Revmob dashboard I only can find a Media ID.
Here is my code:
local revmob = require( "plugin.revmob" ) local placementID = "What to put here?" local function adListener( event ) print("ad phase: " .. event.phase) if ( event.phase == "init" ) then -- Successful initialization print( event.isError ) elseif ( event.phase == "sessionStarted" ) then -- Successful initialization -- Load a RevMob ad revmob.load( "rewardedVideo", placementID ) elseif ( event.phase == "loaded" ) then -- The ad was successfully loaded print( event.type ) elseif ( event.phase == "failed" ) then -- The ad failed to load print( event.type ) print( event.isError ) print( event.response ) end end -- Initialize RevMob revmob.init( adListener, { appId="576f1744ba2d1fde3bf9924e" } )
As appId I used the mediaID from an Ad that I created for Android in the Revmob Media panel. (Only testing on Android for now)…
When starting my App I get:
ad phase: init nil
And nothing more.
revmob.isLoaded( placementID ) is false afterwards.
For the placementID I used the Name of the Ad Unit for now, but I think I never arrive in the part of the code that would request the ad…
Any idea what could be wrong? (I used the daily build from today)
Best,
Felix