Skip to content

Cleanest way to get the winning bidder/priority order? #377

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

Closed
tomraa opened this issue May 25, 2016 · 3 comments
Closed

Cleanest way to get the winning bidder/priority order? #377

tomraa opened this issue May 25, 2016 · 3 comments
Labels

Comments

@tomraa
Copy link
Contributor

tomraa commented May 25, 2016

It appears there is no method to get the quickly get the winning bidder info straight away in the main callback. Currently I'm using

var oWinnerInfo = pbjs.getAdserverTargeting()[ sMyAdDivId ];

to give me the winning bidder's name and the price bucket. It seems like there should be a method to get the full info directly, or the bidResponses obj which gets passed to bidsBackHandler should mark the winner or priority order somehow. Unless I'm missing something? :)

Backup question: when two bidders bid the same amount, how is the winning decision made? Is response time taken into account?

Thanks to anyone who can provide some info, or tell me to read the code more thoroughly!

@tomraa tomraa changed the title Cleanest way to get the winning bidder? Cleanest way to get the winning bidder/priority order? May 25, 2016
@tomraa
Copy link
Contributor Author

tomraa commented May 25, 2016

Silly me, have finally come across onEvent('bidWon', callback) for getting the winner. Leaving this open in case anyone can answer the second question^.

@mkendall07
Copy link
Member

@tr-coull
for your 2nd question, it's going to be implemented that the bid with a faster response is returned (#372) for 0.9.x release.

For 0.8.x < release it was automatically sorted based on time to respond (as the bids collected in the array as they are returned).

@tomraa
Copy link
Contributor Author

tomraa commented May 31, 2016

@mkendall07 great, thanks for the info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants