prebid / prebid-mobile-ios

Prebid Mobile SDK for iOS applications
Apache License 2.0
48 stars 92 forks source link

Server response is flaky #145

Closed ignazioc closed 4 years ago

ignazioc commented 5 years ago

I'm trying to integrate this SDK into a black project. The setup is pretty straightforward: On the AppDelegate

PBLogManager.setPBLogLevel(.all)
        let adUnit = PBBannerAdUnit(adUnitIdentifier: "PREBID-MOBILE-SLOT-ID", andConfigId: "7486dd91-d6fc-4622-a7b9-**************")
        adUnit.add(kGADAdSizeMediumRectangle.size)
        PrebidMobile.register([adUnit], withAccountId: "bc1eac66-845e-4d8b-a274-************", with: PBServerHost.appNexus, andPrimaryAdServer: PBPrimaryAdServerType.DFP)

then when I need one ad:

        PrebidMobile.setBidKeywordsOnAdObject(bannerView,
                                              withAdUnitId: "PREBID-MOBILE-SLOT-ID",
                                              withTimeout: 10000) {

                                                  // add all the keys to the DFP 
                                                  bannerView.load(request)
}

The issue I'm finding is that I never get any winner bidder from the API response.

The response looks always like:

{
    "id": "0155E2E1-B2D5-4DE8-BF97-014CBBBAF640",
    "ext": {
        "responsetimemillis": {
            "appnexus": 140,
            "rubicon": 153
        },
        "tmaxrequest": 500
    }
}

Only once or twice in the previous days I was able to see some winner, can this be a client side integration problem?

thanks

GEverding commented 4 years ago

You still having this issue? We’ve been seeing very weird behaviour from prebid on iOS too

yoalex5 commented 4 years ago

Hello @ignazioc,

If you have an empty response you can try to use "test": 1 entry in your request to get more information

ignazioc commented 4 years ago

thanks @yoalex5, this issue is almost 1 year old, In the meantime I was able to have a more-or-less working setup. But thanks for your suggestions. I'll keep in mind next time I have to debug