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

PubMatic 1.0 Adapter Updates #530

Merged
merged 3 commits into from
Jan 31, 2018
Merged
Changes from 2 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
32 changes: 28 additions & 4 deletions dev-docs/bidders/pubmatic.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: bidder
title: Pubmatic
description: Prebid Pubmatic Bidder Adaptor
title: PubMatic
description: Prebid PubMatic Bidder Adaptor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add prebid_1_0_supported : true to the header so it appears in the 1.0 download option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the flag

top_nav_section: dev_docs
nav_section: reference
Expand All @@ -17,10 +17,34 @@ biddercode_longer_than_12: false
### Prebid Server Note:
Before configuring the PubMatic adapter as S2S, you must reach out to the PubMatic team for approval and setup steps.

### Prebid 1.0 Upgrade Note:
If you upgrading from a Prebid version prior to 1.0, please reach out to your PubMatic Customer Success Manager prior to your upgrade. Publisher accounts need new settings to function correctly with the PubMatic Prebid 1.0 adapter and your Customer Success Manager will ensure your account is setup correctly.

### bid params

{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example |
| :--- | :---- | :---------- | :------ |
| `publisherId` | required | The publisher ID | "32572" |
| `adSlot` | required | the unit ID | "38519891@300x250" |
| `publisherId` | required | Publisher ID | "32572" |
| `adSlot` | required | Ad Unit ID | "38519891@300x250" |
| `pmzoneid` | optional | Zone ID | "zone1,zone2" |
| `lat` | optional | Latitude | "40.712775" |
| `lon` | optional | Longitude | "-74.005973" |
| `yob` | optional | Year of Birth | "1982" |
| `gender` | optional | Gender | "M" |
| `kadpageurl` | optional | Overrides Page URL | "http://www.yahoo.com/" |
| `kadfloor` | optional | Bid Floor | "1.75" |

### Configuration

PubMatic recommends the UserSync configuration below. Without it, the PubMatic adapter will not able to perform user syncs, which lowers match rate and reduces monetization.

```javascript
pbjs.setConfig({
userSync: {
iframeEnabled: true,
enabledBidders: ['pubmatic'],
syncDelay: 6000
}});
```
Note: Combine the above the configuration with any other UserSync configuration. Multiple setConfig() calls overwrite each other and only last call for a given attribute will take effect.