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

execute bidsBackHandler when auction is canceled by consent module #2555

Merged
merged 2 commits into from
May 22, 2018

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

Fixes issue #2551

Currently when the prebid auction is canceled by the consentManagement module, the bidsBackHandler included in the requestBids function is not executed.

This fix will now execute the bidsBackHandler function when cancellation happens.

@mkendall07 mkendall07 added the needs 2nd review Core module updates require two approvals from the core team label May 16, 2018
@@ -163,6 +164,7 @@ export function requestBidsHook(config, fn) {
nextFn = fn;
haveExited = false;
let adUnits = config.adUnits || $$PREBID_GLOBAL$$.adUnits;
bidsBackHandler = config.bidsBackHandler;
Copy link
Member

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?

Copy link
Member

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.

Copy link
Collaborator Author

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.

@jaiminpanchal27 jaiminpanchal27 merged commit 60cabb7 into master May 22, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
…rebid#2555)

* add support to execute bidsBackHandler when auction is canceled by consent module

* rename config variable
@mkendall07 mkendall07 deleted the gdpr_bidsbackhandler branch August 17, 2018 15:13
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
…rebid#2555)

* add support to execute bidsBackHandler when auction is canceled by consent module

* rename config variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants