adbuddiz.RewardedVideo_show()

Type Function
Return value none
Revision 2018.3321
Keywords ads, advertising, AdBuddiz, rewarded video, show
See also adbuddiz.RewardedVideo_isReadyToShow()
adbuddiz.RewardedVideo_fetch()
adbuddiz.*

Overview

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.

Syntax

adbuddiz.RewardedVideo_show()

Example

local function listenerRewardedVideo( event )
    if event.value == "didComplete" then
        -- Reward user here
    end
end
Runtime:addEventListener( "AdBuddizRewardedVideoEvent", listenerRewardedVideo )

adbuddiz.RewardedVideo_fetch()