-
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
execute bidsBackHandler when auction is canceled by consent module #2555
Conversation
modules/consentManagement.js
Outdated
@@ -163,6 +164,7 @@ export function requestBidsHook(config, fn) { | |||
nextFn = fn; | |||
haveExited = false; | |||
let adUnits = config.adUnits || $$PREBID_GLOBAL$$.adUnits; | |||
bidsBackHandler = config.bidsBackHandler; |
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 this safe? What about concurrent auctions with distinct bidBackHandler functions?
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.
Oh i see this is fine. I assumed it was the global config import { config } from 'src/config';
You probably should rename this param so it's not confused with the global.
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.
Thanks for the feedback, I renamed the variable.
…rebid#2555) * add support to execute bidsBackHandler when auction is canceled by consent module * rename config variable
…rebid#2555) * add support to execute bidsBackHandler when auction is canceled by consent module * rename config variable
Type of change
Description of change
Fixes issue #2551
Currently when the prebid auction is canceled by the consentManagement module, the
bidsBackHandler
included in therequestBids
function is not executed.This fix will now execute the
bidsBackHandler
function when cancellation happens.