Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/365.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Flurry-收到广告但未发送广告单位_Java_Flurry - Fatal编程技术网

Java Flurry-收到广告但未发送广告单位

Java Flurry-收到广告但未发送广告单位,java,flurry,Java,Flurry,广告服务器已响应,但未发送广告 单位,为什么我有这个错误 这是我的代码: public class AcercaDe extends Activity implements FlurryAdListener { protected static final String TAG = null; TextView button; FrameLayout mBanner; @Override public void onCreate(Bundle savedI

广告服务器已响应,但未发送广告 单位,为什么我有这个错误

这是我的代码:

public class AcercaDe extends Activity implements FlurryAdListener {
    protected static final String TAG = null;
    TextView button;
    FrameLayout mBanner;
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
        setContentView(R.layout.acercade);
    }

    public void onStart() {
        super.onStart();
        FlurryAgent.setLogEnabled(true);
        FlurryAgent.setLogEvents(true);
    }
}
这是我的日志:

10-20 13:40:03.964: D/FlurryAgent(537): Attempting to persist AdLogs
10-20 13:40:03.964: D/FlurryAgent(537): Attempting to persist FreqCap
10-20 13:40:19.715: E/FlurryAgent(577): Ad server responded but sent no ad units.
10-20 13:49:30.035: D/FlurryAgent(577): Attempting to persist AdLogs
10-20 13:49:30.035: D/FlurryAgent(577): Attempting to persist FreqCap
10-20 13:49:43.614: D/FlurryAgent(616): Attempting to load FreqCap data
10-20 13:49:45.035: E/FlurryAgent(616): Ad server responded but sent no ad units.
10-20 13:50:49.184: D/FlurryAgent(616): Attempting to persist AdLogs
10-20 13:50:49.184: D/FlurryAgent(616): Attempting to persist FreqCap
10-20 13:51:31.664: D/FlurryAgent(655): Attempting to load FreqCap data

有人能帮我解决这个问题吗?

我的解决方案: 查找接口函数shouldDisplayAd()并将其更改为true:

@Override
public boolean shouldDisplayAd(String arg0, FlurryAdType arg1) {
    return true;
}

你能正确地格式化你的代码吗?我不知道怎么做,我尝试了[code][/code],但它在格式化主题上不起作用:你的问题没有帮助,下面的答案也没有。您是否可以添加完整的生命周期集成以及使其更有用的方法。我们应该在哪里找到该接口?