-
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
Empty bidRequests in AST adapter each time new auction begins #1305
Empty bidRequests in AST adapter each time new auction begins #1305
Conversation
therefore bidRequests must be emptied each time new auction begins Fixes prebid#1304
const placement = bidRequests[bid.adId].placementCode; | ||
bidmanager.addBidResponse(placement, bid); | ||
|
||
if (bid.adId in bidRequests) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there ever a reason the adId
isn't in bidRequests
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if the response from the 1st auction is extremely slow and arrives after the 2nd auction has already started and bidRequests
list has been emptied, then bidRequests will have adId's from the second auction, and adId from the first auction will have no corresponding entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that makes sense. In that case we are OK to throw away the bid response so this is ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
…#1305) When error occurs adapter issues response for each bid in `bidRequests` therefore bidRequests must be emptied each time new auction begins Fixes prebid#1304
…#1305) When error occurs adapter issues response for each bid in `bidRequests` therefore bidRequests must be emptied each time new auction begins Fixes prebid#1304
…#1305) When error occurs adapter issues response for each bid in `bidRequests` therefore bidRequests must be emptied each time new auction begins Fixes prebid#1304
When error occurs adapter issues response for each bid in
bidRequests
therefore bidRequests must be emptied each time new auction begins
Fixes #1304
Type of change
Description of change
Empty bidRequests each time new auction begins, because when an error occurs adapter issues a response for each request in this array.
Other information
#1304