dfp-prebid-setup icon indicating copy to clipboard operation
dfp-prebid-setup copied to clipboard

Auto / Dense price granularity

Open salvoaranzulla opened this issue 7 years ago • 2 comments

Hi,

Can you implement an option to create line items with "auto" or "dense" price granularity?

http://prebid.org/dev-docs/publisher-api-reference.html#module_pbjs.setPriceGranularity

salvoaranzulla avatar May 12 '17 17:05 salvoaranzulla

I agree this would be helpful. It's a known limitation of this project, and the workaround now is to use the densest bucketing you need.

PR welcome. There's already a FIXME comment in settings.py to make PREBID_PRICE_BUCKETS an array.

kmjennison avatar May 16 '17 15:05 kmjennison

What I did to achieve the 'dense' price granularity is to run the script 3 times on the same order, but changing the PREBID_PRICE_BUCKETS each time. Works like a charm.

The only drawback I found is that the script creates a new set of creative each script run instead of reusing the same creative already created in previous runs, but I can live with that!

Thanks so much for sharing such a great script !

pboisso avatar Sep 24 '17 18:09 pboisso