Method signature

For FLASH games attribute’s wmode value must be set to opaque to display video ads properly

To get advertisement placement reward a contract is required:

FAPI.UI.showLoadedAd();

Example usage

/*
* Starts to play a previously prepared rewarded ad 
*/
function showRewardedAd() {
    FAPI.UI.showLoadedAd();
}

Callback example

Following arguments can be passed to API_callback function as a result:

Callback if video was successfully shown (web, mobile web)

method: “showLoadedAd”

result: “ok”

data: “complete”

Callback if video was successfully shown (android)

method: “showLoadedAd”

result: “ok”

data: “ad_shown”

Callback if video was not found

method: “showLoadedAd”

result: “error”

data: “not_prepared”

Callback if video ads are not available for current user

method: “showLoadedAd”

result: “error”

data: “mp4_not_supported”

How it works

Requires a video prepared by method FAPI.UI.loadAd before method’s invoking.
Function should be called only when a video ad was found. 10-15 seconds await between methods’ invocations is a must.

How it looks

Web

Mobile

Android app