Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 196ee36

Browse files
authored
Biddersetting update (prebid#1292)
* adding do-I-need-to-be-a-memmber-faq * clarified price bucket example
1 parent e80e403 commit 196ee36

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

dev-docs/publisher-api-reference.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -841,10 +841,10 @@ pbjs.bidderSettings = {
841841
[...]
842842
},
843843
ix: {
844-
[...]
844+
[...]
845845
},
846846
rubicon: {
847-
[...]
847+
[...]
848848
},
849849
}
850850

@@ -972,17 +972,16 @@ Note that sendStandardTargeting is set to false so that the standard Prebid targ
972972

973973
**Price Buckets**
974974

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.
976976

977977
*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.*
978978

979-
980979
{% highlight js %}
981980

982981
pbjs.bidderSettings = {
983982
standard: {
984983
[...]
985-
{
984+
adserverTargeting: [{
986985
key: "hb_pb",
987986
val: function(bidResponse) {
988987
// define your own function to assign price bucket
@@ -998,11 +997,10 @@ pbjs.bidderSettings = {
998997
return "pb5"; // all bids less than $6 are assigned to price bucket 'pb5'
999998
return "pb6"; // all bids $6 and above are assigned to price bucket 'pb6'
1000999
}
1001-
}
1000+
}]
10021001
[...]
10031002
}
10041003
}
1005-
10061004
{% endhighlight %}
10071005

10081006
##### 2.2. bidCpmAdjustment

0 commit comments

Comments
 (0)