[ prebid ] custom CPM ( Cost Per Thousand ) buckets sizing

NOTE : The “M” in CPM represents the Roman numeral for 1,000.

 

pbjs.que.push(function() {

const customConfigObject = {
 "buckets" : [{
 "precision": 2, //default is 2 if omitted - means 2.1234 rounded to 2 decimal places = 2.12
 "min" : 0,
 "max" : 5,
 "increment" : 0.01
 },
 {
 "precision": 2,
 "min" : 5,
 "max" : 8,
 "increment" : 0.05
 },
 {
 "precision": 2,
 "min" : 8,
 "max" : 20,
 "increment" : 0.5
 }]
};

//set custom config object
pbjs.setPriceGranularity(customConfigObject);

});

 

This means

CPM $0-$5, Granularity $0.01 increments

CPM $5-$8, Granularity $0.05 increments ( Example $5.87 floored to $5.85 )

CPM $8-$20, Granularity $0.5 increments ( Example $14.26 floored to $14.00 )

 

ref : http://prebid.org/dev-docs/publisher-api-reference.html#pbjssetpricegranularity

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s