Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing apn-specific reference #2203

Merged
merged 1 commit into from
Aug 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions prebid-mobile/adops-price-granularity.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
---
layout: page_v2
title: Price Granularity
description: Price granularity
pid: 2
top_nav_section: prebid-mobile
nav_section: prebid-mobile-adops
title: Mobile Price Granularity
description: Mobile Price granularity
sidebarType: 3
---

# Price Granularity
# Prebid Mobile Price Granularity

With Prebid Mobile, you’ll need to setup line items to tell your ad server how much money the “bidder” demand is worth to you. This process is done via key-values.
With Prebid Mobile, you’ll need to setup line items to tell your ad server how much money the “bidder” demand is worth to you. This process is done with an ad server key-value pair: `hb_pb`, which stands for "header bidding price bucket".

Example:


* Prebid Mobile is going to call Prebid Server which calls your bidders for their price, then passes it into your ad server on the query-string. You want to target this bid price with a line item that earns you the same amount if it serves.

* If you had 1-line item for every bid at a penny granularity of $0.01, $0.02, $0.03, ..., 1.23, ..., $4.56 you’d need 1,000 line items just to represent bids from $0-$10. We call this the “Exact” granularity option.

* Creating 1,000 line items can be a hassle, so publishers typically use price buckets to represent price ranges that matter. For example, you could group bids into 10 cent increments, so bids of $1.06 or $1.02 would be rounded down into a single price bucket of $1.00.

The SDK itself doesn't deal with granularity. Instead, these details are set up in Prebid Server and your ad server. The specific details about how to set up the price granularity will differ for each Prebid Mobile managed service company -- check with your provider to get details for their system.

## Accepted values for price granularity

+ `"low"`: $0.50 increments, capped at $5 CPM
+ `"med"`: $0.10 increments, capped at $20 CPM (the default)
+ `"high"`: $0.01 increments, capped at $20 CPM
+ `"auto"`: Applies a sliding scale to determine granularity as shown in the [Auto Granularity](#autoGranularityBucket) table below.
+ `"dense"`: Like `"auto"`, but the bid price granularity uses smaller increments, especially at lower CPMs. For details, see the [Dense Granularity](#denseGranularityBucket) table below.
+ `"custom"`: If none of the above apply, your service provider should provide a way to establish arbitrary price buckets.

Notes:
- Banner and outstream video generally share the same ad server line items.
- PBS-Java support the "mediatypepricegranularity" enhancement, which lets you define different
granularities for banner and video

<a name="autoGranularityBucket"></a>

Expand All @@ -54,10 +58,8 @@ Example:
| CPM > $20 | Caps the price bucket at $20 | $24.82 floored to $20.00 |


{: .alert.alert-success :}
**Action Item:** Once you have decided the price granularity, go to Prebid Server [account page](https://prebid.adnxs.com/account/) to set the price granularity setting for your account.

Please contact your Prebid Mobile host company for details about how to implement granularity.

The below screenshot is taken from the Prebid Server account page where you can choose your price granularity setting from the options.
## Further Reading

![Key-values]({{ site.github.url }}/assets/images/prebid-mobile/adops-price-granularity/pg-setting.png){: .pb-md-img :}
- [Prebid.js MediaTypePriceGranularity](/dev-docs/publisher-api-reference.html#setConfig-MediaType-Price-Granularity)