Type Function Return value none Revision 2017.3060 Keywords ads, advertising, AdBuddiz, rewarded video, show See also adbuddiz.RewardedVideo_isReadyToShow() adbuddiz.RewardedVideo_fetch() adbuddiz.*
Shows a rewarded video ad. Notifies the rewarded video listener via the "didComplete"
event value when the video is completed — at this point you should give the user an associated reward.
adbuddiz.RewardedVideo_show()
local function listenerRewardedVideo( event ) if event.value == "didComplete" then -- Reward user here end end Runtime:addEventListener( "AdBuddizRewardedVideoEvent", listenerRewardedVideo ) adbuddiz.RewardedVideo_fetch()