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

2019-01-29 07:57发布

问题:

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.

回答1:

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

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


回答2:

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

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