Skip to content
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

Bugs in sendBidsControl.dealPrioritization #5424

Closed
jbartek25 opened this issue Jun 26, 2020 · 2 comments
Closed

Bugs in sendBidsControl.dealPrioritization #5424

jbartek25 opened this issue Jun 26, 2020 · 2 comments
Labels

Comments

@jbartek25
Copy link
Contributor

Type of issue

Bug

Description

sendBidsControl.dealPrioritization doesn't work.

Steps to reproduce

Enable sendBidsControl.dealPrioritization and run a HB auction as usual. This will lead to a syntax error:

Screenshot 2020-06-24 at 12 29 06
This can be easily fixed by bucketBids.sort(sortByDealAndPriceBucketOrCpm(true)) in
https://github.com/prebid/Prebid.js/blob/master/src/targeting.js#L47.

However, after applying the fix another error appears:

Screenshot 2020-06-24 at 12 33 14

The problem is that method sortByDealAndPriceBucketOrCpm looks for hb_deal inside adUnitTargeting object which only exists when sortByDealAndPriceBucketOrCpm gets called from within filterTargetingKeys. However, when sortByDealAndPriceBucketOrCpm is called in getHighestCpmBidsFromBidPool, hb_deal is in adserverTargeting object and adUnitTargeting is undefined.

@jbartek25
Copy link
Contributor Author

@bretg bretg assigned ghost Jul 16, 2020
@bretg bretg added the bug label Jul 16, 2020
@ChrisHuie
Copy link
Collaborator

closing out with merge of #5504

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

3 participants