Skip to content

Prebid Core: Fix Media Type Price Granularity #7607

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

Merged
merged 4 commits into from
Oct 27, 2021
Merged

Conversation

robertrmartinez
Copy link
Collaborator

@robertrmartinez robertrmartinez commented Oct 20, 2021

Type of change

  • Bugfix

Description of change

Media Type Price Granularity has not really been working as expected since its adoption.

Whichever bid came back first (its mediaType) would be used for all price bucket targeting for that page load.

We need the logic to grab the correct priceGran to run on each adServerTargeting execute.

think this fixes #6545

@lgtm-com
Copy link

lgtm-com bot commented Oct 20, 2021

This pull request introduces 3 alerts when merging 867b2e6 into 2a4f678 - view on LGTM.com

new alerts:

  • 3 for Superfluous trailing arguments

@lgtm-com
Copy link

lgtm-com bot commented Oct 20, 2021

This pull request introduces 1 alert when merging db688eb into 2a4f678 - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments

@ChrisHuie ChrisHuie requested review from ChrisHuie and removed request for musikele October 27, 2021 16:53
@ChrisHuie ChrisHuie assigned ChrisHuie and unassigned musikele Oct 27, 2021
@ChrisHuie ChrisHuie merged commit 213ef75 into master Oct 27, 2021
@ChrisHuie ChrisHuie deleted the fix-mediaType-gran branch October 27, 2021 17:22
cpabst pushed a commit to sovrn/Prebid.js that referenced this pull request Jan 10, 2022
* pass bidReq into targeting function and other fun stuff

* pass through bidReq

* allow granularity override

* Superfluous argument 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.

Incorrect capping when using preset in mediaTypePriceGranularity
4 participants