adbuddiz.RewardedVideo_fetch()

Type Function
Return value none
Revision 2017.3060
Keywords ads, advertising, AdBuddiz, rewarded video, fetch
See also adbuddiz.RewardedVideo_isReadyToShow()
adbuddiz.RewardedVideo_show()
adbuddiz.*

Overview

Fetches the next rewarded video ad. Should be called each time before calling adbuddiz.RewardedVideo_show(). Notifies the rewarded video listener via the "didFetch" event value when the video is fetched.

Syntax

adbuddiz.RewardedVideo_fetch()

Example

local function listenerRewardedVideo( event ) 
    if event.value == "didFetch" then
        -- The video has been fetched
    end
end
Runtime:addEventListener( "AdBuddizRewardedVideoEvent", listenerRewardedVideo )

adbuddiz.RewardedVideo_fetch()