You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, after applying the fix another error appears:
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.
The text was updated successfully, but these errors were encountered:
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:This can be easily fixed by
bucketBids.sort(sortByDealAndPriceBucketOrCpm(true))
inhttps://github.com/prebid/Prebid.js/blob/master/src/targeting.js#L47.
However, after applying the fix another error appears:
The problem is that method sortByDealAndPriceBucketOrCpm looks for
hb_deal
insideadUnitTargeting
object which only exists whensortByDealAndPriceBucketOrCpm
gets called from withinfilterTargetingKeys
. However, whensortByDealAndPriceBucketOrCpm
is called ingetHighestCpmBidsFromBidPool
,hb_deal
is inadserverTargeting
object andadUnitTargeting
is undefined.The text was updated successfully, but these errors were encountered: