-
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
Rubicon Bid Adapter: custom price granularity fix #3670
Rubicon Bid Adapter: custom price granularity fix #3670
Conversation
…ebid.js into master-rubicon-clean
# Conflicts: # modules/advangelistsBidAdapter.js # test/spec/modules/advangelistsBidAdapter_spec.js
…ter-remote-updated
…stomPriceBucket from customPriceGranularity
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 have tested this and it LGTM
Sorry I did not catch this before :(
modules/rubiconBidAdapter.js
Outdated
{min: 3.00, max: 8.00, increment: 0.05}, | ||
{min: 8.00, max: 20.00, increment: 0.50} | ||
], | ||
custom: config.getConfig('priceGranularity') === 'custom' ? config.getConfig('customPriceBucket').buckets : undefined |
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.
there's no need for the ternary operator because the custom
param will only be chosen when config.getConfig('priceGranularity') === 'custom'
updating per review
MERGING! |
* Add microadBidAdapter * Remove unnecessary encodeURIComponent from microadBidAdapter * Submit Advangelists Prebid Adapter * Submit Advangelists Prebid Adapter 1.1 * Correct procudtion endpoint for prebid * Fix rubicon adapter price granularity, rename config property name customPriceBucket from customPriceGranularity * add unit test for getPriceGranularity * update getPriceGranularity function for better readability * Update rubiconBidAdapter.js updating per review * adding check before setting custom
* Add microadBidAdapter * Remove unnecessary encodeURIComponent from microadBidAdapter * Submit Advangelists Prebid Adapter * Submit Advangelists Prebid Adapter 1.1 * Correct procudtion endpoint for prebid * Fix rubicon adapter price granularity, rename config property name customPriceBucket from customPriceGranularity * add unit test for getPriceGranularity * update getPriceGranularity function for better readability * Update rubiconBidAdapter.js updating per review * adding check before setting custom
Type of change
Description of change
In the Rubicon Bid Adapter, a config property used in
getPriceGranularity()
, was renamed fromcustomPriceGranularity
tocustomPriceBucket
.Added a test to verify all granularity values return the expected results.