Rewarded Video Ads | Android

Similar to interstitial ad units, rewarded video ads are shown in full-screen mode and can be placed before, in-between or after the app content.

The video ad will be loaded in the background and will be waiting for a signal to show up.

1) The rewarded video player first requires the following activity declaration in your AndroidManifest.xml:

<activity android:name="" android:configChanges="keyboardHidden|orientation|screenSize" />

2) You will then need to instantiate a rewarded video object in the activity where you want to show rewarded video ads and implement the RewardedVideoListener interface to have more control over the rewarded video ads.


public class MyActivity extends Activity implements RewardedVideoListener {

    RewardedVideo rewardedVideo;

    protected void onCreate(Bundle savedInstanceState) {
        rewardedVideo = new RewardedVideo(MyActivity.this);

        // Called when the banner has been loaded.
        public void onReadyToShow() {
  ;   // call this when to show the RewardedVideo ad.

        // Called when the ad will be displayed.
        public void onWillShow() { }

        // Called when the RewardedVideo or the EndCard is clicked after video completion
        public void onWillOpenLandingPage () { }

        // Called when the ad is closed.
        public void onWillClose () { }

        // Called when there is No ad or Ad failed to Load
        public void onFailedToLoadAd () { }

        public void onRewardedVideoStarted () { }

        public void onFirstQuartileCompleted () { }

        public void onSecondQuartileCompleted () { }

        public void onThirdQuartileCompleted () { }

        // Called when the Video ad display completed.
        public void onRewardedVideoCompleted () { } // TODO


3) You will then need to provide the SDK with your Smaato Publisher ID and AdSpace IDs. Please use the following code:


4) Last, to load a new video ad, use the following method:


Destroying the Video Ad

When you finish using a video ad format and want to clean up memory usage, please call the destroy() method:

public void onDestroy() {

Last Modified: February 20, 2020 at 1:56 pm

© 2005-2020 Smaato, Inc. All Rights Reserved. Smaato® is a registered trademark of Smaato, Inc.

Privacy Policy | Cookie Policy | Support