Each action should be triggering an event to the function you passed to revmob.init(). Perhaps something like:
local function handleRevMobEvents( event ) if event.phase == "videoPlaybackEnded" then -- do something after a video has ended elseif event.phase == "rewardedVideoPlaybackEnded" then -- do something after a rewarded video has ended elseif event.phase == "rewardedVideoCompleted" "then -- do something after the user has completed the rewarded video process end end revmob.init( handleRevMobEvents, { appId="YOUR\_APP\_ID" } )
That code is untested btw…
See: https://docs.coronalabs.com/plugin/revmob/event/adsRequest/phase.html