0

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.

Bhavesh Hirpara
  • 22,255
  • 15
  • 63
  • 104
  • Hello @sunshine, did you have any luck with it? I'm having the same issue. Did you find what's wrong? Thanks... – CdB Mar 01 '13 at 17:52
  • Yes, I have solved.. Have you read http://support.flurry.com/index.php?title=Publisher/GettingStarted/TechnicalQuickStart/Android and you have to wait for getting ad for first time. – Bhavesh Hirpara Mar 08 '13 at 04:28
  • how much time should we wait to receive actual ads and not the test ads? – dd619 Jun 05 '13 at 07:07
  • How much we need to wait for getting ad for first time – user1767260 May 02 '16 at 08:28

2 Answers2

2

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

@Override
public boolean shouldDisplayAd(String arg0, FlurryAdType arg1) {
    return true;
}
Vitaliy A
  • 3,651
  • 1
  • 32
  • 34
0

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

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

Aman Bansal
  • 1,581
  • 8
  • 14