dfp-prebid-setup
dfp-prebid-setup copied to clipboard
Auto / Dense price granularity
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
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.
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 !