简体   繁体   English

StartApp奖励视频广告未展示

[英]StartApp Rewarded Video ads not showing

I'm implementing a android application which uses StartApp ad network. 我正在实现一个使用StartApp广告网络的android应用程序。 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] 错误执行异常错误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");

        }
    });

Failed to load rewarded video : 无法加载奖励视频:

Sometimes this message appears when there are no videos to show Try using VPN 当没有视频使用VPN显示尝试有时会出现此消息

and Check that FullScreenActivity is declared in AndroidManifest.xml : 并检查是否在AndroidManifest.xml声明了FullScreenActivity:

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

android API level above 16? android API级别高于16?

尝试用此startAppAd.loadAd(StartAppAd.AdMode.REWARDED_VIDEO, new AdEventListener() {

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM