1

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");

        }
    });
OmegaKi113r
  • 99
  • 3
  • 14

2 Answers2

2

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

Aviharsh Shukla
  • 143
  • 3
  • 12
  • 1
    Thank you, the reward not showing till changing the 'AdMode' form VIDEO to REWARDED_VIDEO – Leenah Feb 15 '20 at 15:23
2

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?

Said Erraoudy
  • 1,490
  • 1
  • 13
  • 21