Focus mode

Rewarded video

Rewarded is a video ad format displayed full-screen, that gives users a reward (e.g. an extra life, extra time, virtual currency etc.) for playing the full video ad. 


Setup Rewarded

Create a rewarded video ad using your Tappx key, as per example below: 

TappxRewardedVideo tappxRewardedVideo = new TappxRewardedVideo(this, "**YOUR-APP-KEY**");
tappxRewardedVideo.loadAd();
val tappxRewardedVideo = TappxRewardedVideo(this, "**YOUR-APP-KEY**")
tappxRewardedVideo.loadAd()

loadAd will load all the necessary information to display the ad:

tappxRewardedVideo.loadAd();
tappxRewardedVideo.loadAd()

isReady lets you check that the ad is ready to be shown. It receives a "true" when the ad is ready and a "false" when it’s not:

tappxRewardedVideo.isReady();
tappxRewardedVideo.isReady()

show displays the ad that was loaded previously:

tappxRewardedVideo.show();
tappxRewardedVideo.show()

TIP: we recommend sending additional information with your ad requests to improve performance. Check Advanced Settings section.

Set Listeners

rewardedVideo.setListener(new TappxRewardedVideoListener() {
   @Override
   public void onRewardedVideoLoaded(TappxRewardedVideo rewardedVideo) {
       Log.v("Tappx", "Tappx: onRewardedVideoLoaded");
   }
   @Override
   public void onRewardedVideoLoadFailed(TappxRewardedVideo rewardedVideo, TappxAdError tappxAdError) {
       Log.v("Tappx", "Tappx: onRewardedLoadFailed");
   }
   @Override
   public void onRewardedVideoStart(TappxRewardedVideo rewardedVideo) {
       Log.v("Tappx", "Tappx: onRewardedVideoStart");
   }
   @Override
   public void onRewardedVideoClicked(TappxRewardedVideo rewardedVideo) {
       Log.v("Tappx", "Tappx: onRewardedVideoClicked");
   }
   @Override
   public void onRewardedVideoPlaybackFailed(TappxRewardedVideo rewardedVideo) {
       Log.v("Tappx", "Tappx: onRewardedVideoPlaybackFailed");
   }
   @Override
   public void onRewardedVideoClosed (TappxRewardedVideo rewardedVideo) {
       Log.v("Tappx", "Tappx: onRewardedVideoClosed");
   }
   @Override
   public void onRewardedVideoCompleted (TappxRewardedVideo rewardedVideo) {
       Log.v("Tappx", "Tappx: onRewardedVideoCompleted");
   }
});

tappxRewardedVideo.setListener(object : TappxRewardedVideoListener {
    override fun onRewardedVideoLoaded(rewardedVideo: TappxRewardedVideo) {
        Log.v("TappxSDK", "Tappx: onRewardedVideoLoaded")
    }
    override fun onRewardedVideoLoadFailed(
        rewardedVideo: TappxRewardedVideo,
        tappxAdError: TappxAdError
    ) {
        Log.v("TappxSDK", "Tappx: onRewardedLoadFailed")
    }
    override fun onRewardedVideoStart(rewardedVideo: TappxRewardedVideo) {
        Log.v("TappxSDK", "Tappx: onRewardedVideoStart")
    }
    override fun onRewardedVideoClicked(rewardedVideo: TappxRewardedVideo) {
        Log.v("TappxSDK", "Tappx: onRewardedVideoClicked")
    }
    override fun onRewardedVideoPlaybackFailed(rewardedVideo: TappxRewardedVideo) {
        Log.v("TappxSDK", "Tappx: onRewardedVideoPlaybackFailed")
    }
    override fun onRewardedVideoClosed(rewardedVideo: TappxRewardedVideo) {
        Log.v("TappxSDK", "Tappx: onRewardedVideoClosed")
    }
    override fun onRewardedVideoCompleted(rewardedVideo: TappxRewardedVideo) {
        Log.v("TappxSDK", "Tappx: onRewardedVideoCompleted")
    }
})

Setting up the Endpoint (Recommended)

Please, if you don’t have an Endpoint contact our supply team at sdk@tappx.com.

You can set your Endpoint when requesting ads from your app project. Add the following lines:

rewardedVideo.loadAd(new AdRequest().setEndpoint("[ENDPOINT]"));
rewardedVideo.loadAd(AdRequest().setEndpoint("[ENDPOINT]"))

Examples on GitHub

Rewarded ads example: Java | Kotlin

Complete demo: Java | Kotlin

Rewarded video
×

Tappx logo white

Important Security Notice
Beware of scammers impersonating Tappx brand

We have identified fraudulent activities where malicious actors are imitating Tappx assets. These scams may compromise your security.

⚠️ Warning: The URL you came from has been flagged as potentially harmful. 

To stay safe, only trust communications and services from the official Tappx domain: tappx.com

×

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Etiam elit tortor, consequat sit amet ultricies ut, pellentesque a magna. Etiam mattis odio ut nibh pulvinar bibendum. Curabitur porta gravida urna sit amet tincidunt. Etiam sit amet nunc vulputate, blandit mauris sit amet, lacinia arcu. Morbi in orci tincidunt, tincidunt dolor vitae, hendrerit sem. Etiam in suscipit purus. Morbi dignissim vitae nibh ut condimentum.

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.