You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-docs/publisher-api-reference.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -841,10 +841,10 @@ pbjs.bidderSettings = {
841
841
[...]
842
842
},
843
843
ix: {
844
-
[...]
844
+
[...]
845
845
},
846
846
rubicon: {
847
-
[...]
847
+
[...]
848
848
},
849
849
}
850
850
@@ -972,17 +972,16 @@ Note that sendStandardTargeting is set to false so that the standard Prebid targ
972
972
973
973
**Price Buckets**
974
974
975
-
Now let's say you would like to define you own price bucket function rather than use the ones available by default in prebid.js. You can overwrite the bidder settings as the below example shows:
975
+
Now let's say you would like to define a bidder-specific price bucket function rather than use the ones available by default in prebid.js. Even the [priceGranularity config](/dev-docs/publisher-api-reference.html#setConfig-Price-Granularity) option applies to all bidders -- with this approach you can overwrite price buckets.
976
976
977
977
*Note: this will only impact the price bucket sent to the ad server for targeting. It won't actually impact the cpm value used for ordering the bids.*
978
978
979
-
980
979
{% highlight js %}
981
980
982
981
pbjs.bidderSettings = {
983
982
standard: {
984
983
[...]
985
-
{
984
+
adserverTargeting: [{
986
985
key: "hb_pb",
987
986
val: function(bidResponse) {
988
987
// define your own function to assign price bucket
@@ -998,11 +997,10 @@ pbjs.bidderSettings = {
998
997
return "pb5"; // all bids less than $6 are assigned to price bucket 'pb5'
999
998
return "pb6"; // all bids $6 and above are assigned to price bucket 'pb6'
0 commit comments