Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

ix/indexExchange ignores unit if media type is not set

Open dmitriyshashkin opened this issue 8 years ago • 7 comments

Type of issue

Bug

Description

According to the docs, media type field for ad unit is optional. Yet ixBidAdapter expects it to bet, otherwise, it just ignores that banner. Seen a major drop in impressions since updated to 1.x

if (utils.deepAccess(validBidRequest, 'mediaTypes.banner') ||
        validBidRequest.mediaType === 'banner') {
        bannerImp = bidToBannerImp(validBidRequest);
        bannerImps.push(bannerImp);
}

Steps to reproduce

Create an ad unit, add ix to bidders, do not specify the media type.

Test page

Expected results

Index competes for the impression

Actual results

Index excludes this unit from bid request. "Imp" field in https request to cygnus server is empty

Platform details

Prebid 1.11

dmitriyshashkin avatar May 19 '18 12:05 dmitriyshashkin

@dmitriyshashkin Not able to reproduce. Here is the test page https://jsfiddle.net/8z103Lpc/ I can see the call to http://as.casalemedia.com/cygnus... and get {id: "3cf1af3371e3d4"} as response.

jaiminpanchal27 avatar May 21 '18 19:05 jaiminpanchal27

This happens with us as well. Also if the size is not set as a param (bidder param), will error out.

rachelrj avatar May 21 '18 20:05 rachelrj

There should also be some sort of communication that siteID changed to sideId. This has been a major issue for upgrades.

rachelrj avatar May 21 '18 20:05 rachelrj

Hi @jaiminpanchal27, It doesn't look like prebid.js is loading on your fiddle, I get a 404 on the call to https://fiddle.jshell.net/build/dev/prebid.js. Also, I believe the call to http://as.casalemedia.com/cygnus... is still made when the mediaTypes object is excluded, but with an empty imp array (as the code snippet pointed out by @dmitriyshashkin skips adding the bid to the imp array without that field), which is the issue.

The size as a bidder param is also an interesting change. Is the publisher only allowed to specify one size in bid requests to ix now?

aprakash-sovrn avatar May 21 '18 20:05 aprakash-sovrn

regarding @rachelrj 's and @aprakash-sovrn's comments about size - I found the docs ambiguous, and opened an issue over here: https://github.com/prebid/Prebid.js/issues/2590

I think (hope) the docs might have a typo

ptim avatar May 23 '18 02:05 ptim

@ix-prebid-support, are you able to shed light on some of these issues?

aprakash-sovrn avatar May 23 '18 15:05 aprakash-sovrn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 06 '18 16:06 stale[bot]