乱舞 - 收到广告但未发送任何广告单元

时间:2013-10-21 05:44:04

标签: java flurry

广告服务器已回复但未发送任何广告 单位,为什么我有这个错误??

这是我的代码:

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

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

我对此问题的解决方案: 查找接口函数shouldDisplayAd()并更改返回true:

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