Skip to content

Rubicon Bid Adapter: custom price granularity fix#3670

Merged
robertrmartinez merged 14 commits intoprebid:masterfrom
rubicon-project:fix-rubicon-adapter-price-granularity
Mar 26, 2019
Merged

Rubicon Bid Adapter: custom price granularity fix#3670
robertrmartinez merged 14 commits intoprebid:masterfrom
rubicon-project:fix-rubicon-adapter-price-granularity

Conversation

@idettman
Copy link
Contributor

@idettman idettman commented Mar 23, 2019

Type of change

  • Bugfix

Description of change

In the Rubicon Bid Adapter, a config property used in getPriceGranularity(), was renamed from customPriceGranularity to customPriceBucket.
Added a test to verify all granularity values return the expected results.

@idettman idettman changed the title Fix for rubicon adapter custom price granularity Rubicon Bid Adapter: custom price granularity fix Mar 23, 2019
@idettman idettman added the bug label Mar 23, 2019
@idettman idettman requested a review from harpere March 23, 2019 08:09
Copy link
Collaborator

@robertrmartinez robertrmartinez left a 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 :(

{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
Copy link
Collaborator

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'

@robertrmartinez
Copy link
Collaborator

robertrmartinez commented Mar 26, 2019

Example PBS Requests in browser:

With custom granularity:
image

With high granularity:
image

@robertrmartinez
Copy link
Collaborator

MERGING!

@robertrmartinez robertrmartinez merged commit 0f01ce3 into prebid:master Mar 26, 2019
@idettman idettman deleted the fix-rubicon-adapter-price-granularity branch June 5, 2019 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments