-
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
getCpmInNewCurrency to use current value of bid.cpm and bid.currency #3845
getCpmInNewCurrency to use current value of bid.cpm and bid.currency #3845
Conversation
Before the fix: After the fix: |
Test Page: http://jsfiddle.net/tfsercgk/ |
Hello @jsnellbaker , |
Hello @jsnellbaker , |
hey @pm-harshad-mane |
Sure @mkendall07 , i will update as I am done. |
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.
I think this should be fine.
Hello @mkendall07 , @snapwich , |
I've been ooo for a little while, checking over this PR now. |
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.
LGTM
Thank you @jsnellbaker , @snapwich , @mkendall07, and @mike-chowla :) |
…rebid#3845) * getCpmInNewCurrency to use current value of bid.cpm and bid.currency * added a test case for boosted bid, this test fails with old code
* Fixing the issue introduced in #3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
…rebid#3845) * getCpmInNewCurrency to use current value of bid.cpm and bid.currency * added a test case for boosted bid, this test fails with old code
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
Type of change
Description of change
bid.getCpmInNewCurrency should use the latest value of bid.cpm and bid.currency as we allow publishers to update the value of bid.cpm (using bidAdjustment and bidResponse event) hence the bid.getCpmInNewCurrency API should return the bid.cpm equivalent value in the requested currency.
#3837