“Ad server responded but sent no ad units” in Flur

2019-01-29 08:07发布

I want to integrate Flurry Ad from here. But I'm facing issue in log..

01-06 11:05:28.746: E/FlurryAgent(440): Ad server responded but sent no ad units.

http://support.flurry.com/index.php?title=Publisher/GettingStarted/TechnicalQuickStart/Android

I have created adSpace @ http://support.flurry.com/index.php?title=Publisher/GettingStarted/SetUp

My code is

FlurryAgent.enableTestAds(true);
FrameLayout fViewGroup = (FrameLayout) findViewById(R.id.bannerframe);
if (mContext != null) {
        FlurryAgent.onStartSession(mContext, API_KEY);
        FlurryAgent.setUserId(Utils.getUserId(mContext));
        FlurryAgent.setLogEnabled(Debug.DEBUG);
        FlurryAgent.initializeAds(mContext);
    } else {
        Debug.e("", "mContext is null");
    }

FlurryAgent.getAd(Flurry.getContext(), "my adSpace", fViewGroup,
            FlurryAdSize.BANNER_BOTTOM, 0);

Note :

"my adSpace" is replaced with my original ad Space on Flurry.

Help!!! Thanks.

2条回答
不美不萌又怎样
2楼-- · 2019-01-29 08:31

My solution for this issue: Find interface function shouldDisplayAd() and change return to true :

@Override
public boolean shouldDisplayAd(String arg0, FlurryAdType arg1) {
    return true;
}
查看更多
神经病院院长
3楼-- · 2019-01-29 08:36

Try calling enableTestAds() after the call to onStartSession().

(Full disclosure: I work in the Support team at Flurry)

查看更多
登录 后发表回答