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

gptPreAuction: fix missing gpid when using mcmEnabled #12361

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

dgirardi
Copy link
Collaborator

@dgirardi dgirardi commented Oct 23, 2024

Type of change

  • Bugfix

Description of change

Resubmit of #12356, which included its own bug.

@muuki88
Copy link
Collaborator

muuki88 commented Oct 23, 2024

@ChrisHuie am I allowed to merge?

@@ -190,9 +194,9 @@ export const makeBidRequestsHook = (fn, adUnits, ...args) => {
let adserverSlot = deepAccess(context, 'data.adserver.adslot');
let result;
if (customPreAuction) {
result = customPreAuction(adUnit, adserverSlot);
result = customPreAuction(adUnit, adserverSlot, adUnitPaths?.[adUnit.code]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional chaining was missing before, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Without it,

would silently break auctions.

@ChrisHuie ChrisHuie merged commit 0c310c3 into prebid:master Oct 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants