Rewarded Video

Integrate rewarded video ads

Usage

The integration steps for rewarded videos are very similar like for other fullscreen ads. You will just need to use createRewardedVideoPlacement function. If you’ve used rewarded videos before with the normal fullscreen placement, please make sure to use a different placement name for your new Rewarded placement. When the user watches the rewarded video and incentive is earned, the aatkitUserEarnedIncentive event is triggered. See the example of using rewarded video ads below.

createFullscreen: function() {
    AATKitCordova.createPlacement("YourPlacementName", "Fullscreen");
},

initialize: function() {
    document.addEventListener('aatkitHaveAd', function(data){ 
        console.log("aatkitHaveAd: " + data.placementName);
        if(data.placementName == "YourPlacementName") {
            AATKitCordova.showPlacement("fullscreenAd", (interstitialShown) => {
                console.log("interstitialShown " + interstitialShown);
            });
        }    
    });

    document.addEventListener('aatkitUserEarnedIncentive', function(data){
        console.log("aatkitUserEarnedIncentive: " + data);
    });
},

Last updated