prebid / Prebid.js

Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.
https://docs.prebid.org
Apache License 2.0
1.28k stars 2.05k forks source link

Prebid + DFP ignoring bids that aren't multiples of $0.10 #1607

Closed raustaburk closed 7 years ago

raustaburk commented 7 years ago

I don't know if this is a bug or an issue with my setup. I used the DFP API to set up 900 line items ranging from $0.01 to $9.00, but the only ones delivering are multiples of $0.10 even though the setup is identical for all of them.

I have my granularity set to $0.01 with a custom price bucket (see code below), but I don't think that's the problem. Looking at my ad partner's numbers they're only winning about 2-5% of what they bid on, and they're only competing against AdSense, so I believe bids that aren't multiples of $0.10 aren't even making it to DFP.

This is my granularity code. I originally used pbjs.setPriceGranularity(customGranularity) before changing it to the following, but neither solved the problem.

const customGranularity = {
                              "buckets" : [{
                                  "precision": 2,
                                  "min" : 0,
                                  "max" : 9,
                                  "increment" : 0.01
                                }]
                            };
                            pbjs.setConfig({
                                priceGranularity: customGranularity
                            });

Any ideas? Thanks.

mkendall07 commented 7 years ago

what's the keys getting sent to the adserver? Do you have a test page? The best way to debug this is to use DFP debug console to see what is winning.

raustaburk commented 7 years ago

I figured it out, I was setting the granularity after requesting the bids. After moving setConfig() to the top everything works fine.