StartApp Rewarded Video ads not showing

2.5k views Asked by At

I'm implementing a android application which uses StartApp ad network. In my app i use rewarded ads. I follow the instruction to the letter as the documentation suggested.

But when i load an Rewarded ad video it gives

ERROR EXECUTE EXCEPTION ERROR SendGetWithResponseCode =[204]

Why i'm getting this error. I tried with both debug mode and release mode, emulator and real devices. Nothing is working.

Can anyone help?

startAppAd.loadAd(VIDEO, new AdEventListener() {
        @Override
        public void onReceiveAd(Ad ad) {
            Log.i("startApp","rewarded Loaded");
            startAppAd.showAd();

        }

        @Override
        public void onFailedToReceiveAd(Ad ad) {

            Toast.makeText(getApplicationContext(),ad.getErrorMessage(),Toast.LENGTH_LONG).show();
        }
    });
    startAppAd.setVideoListener(new VideoListener() {
        @Override
        public void onVideoCompleted() {
            Log.i("VideoWatched","watched");

        }
    });
2

There are 2 answers

2
Said Erraoudy On BEST ANSWER

Failed to load rewarded video :

Sometimes this message appears when there are no videos to show Try using VPN

and Check that FullScreenActivity is declared in AndroidManifest.xml:

See https://github.com/StartApp-SDK/Documentation/wiki/Android-InApp-Documentation#activities

android API level above 16?

1
Aviharsh Shukla On

Try replacing the first line with thisstartAppAd.loadAd(StartAppAd.AdMode.REWARDED_VIDEO, new AdEventListener() {