-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index ignores unsupported sizes, bid manager still expects bid response #1341
Comments
There is some custom code for this already in here, can probably be fixed in a similar way? Lines 52 to 71 in fd7ae19
|
@indexexchange should adjust their adapter to send bid responses back so we can get rid of the workaround in that bit of the code. |
Hi. We're looking into this and will have a fix out shortly. |
Since this is fixed, we need to drop this https://github.com/prebid/Prebid.js/blob/master/src/bidmanager.js#L52 now |
Type of issue
Bug
Description
bidsBackAll
method inbidmanager
compares the number of requests with the number of responses. As indexExchange issues a response for every size in the ad unit, bidsBackAll counts all the sizes to determine the number of requests. But if some size is not supported by indexExchange, it will be ignored inside the adapter and there won't be any response for this size. So the number of requests will always exceed the number of responses. Which means that the only condition on which the auction ends is the timeout.Not sure what's the best way to fix that. As a temporary measure, I've modified the
bidmanager
to count only those sizes that are supported by Index Exchange. But I had to copy the list of supported sizes tobidmanager
and it doesn't seem to be a good practice. But if it's ok, I can submit my fix as a PR.Steps to reproduce
Expected results
Auction ends as soon as response from indexExchange is received
Actual results
Auction ends only after 10 seconds
Platform details
prebid v 0.25
The text was updated successfully, but these errors were encountered: