From 02d00950638683877c3029267534adb8ef6f5371 Mon Sep 17 00:00:00 2001 From: Mike Chowla Date: Thu, 4 Jan 2018 14:15:11 -0800 Subject: [PATCH 1/3] PubMatic 1.0 Adapter Updates --- dev-docs/bidders/pubmatic.md | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/dev-docs/bidders/pubmatic.md b/dev-docs/bidders/pubmatic.md index a19fe0e851..a6d76efbdc 100644 --- a/dev-docs/bidders/pubmatic.md +++ b/dev-docs/bidders/pubmatic.md @@ -1,7 +1,7 @@ --- layout: bidder -title: Pubmatic -description: Prebid Pubmatic Bidder Adaptor +title: PubMatic +description: Prebid PubMatic Bidder Adaptor top_nav_section: dev_docs nav_section: reference @@ -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 and reduces monetization. + +```javascript +$$PREBID_GLOBAL$$.setConfig({ + userSync: { + iframeEnabled: true, + enabledBidders: ['pubmatic'], + syncDelay: 6000 + }}); +``` +Note: Combine the above the configuration with any other UserSync configuration. Multiple setConfig() overwrite each other and only last call for a given attribute will take effect. From 3af671f1503d6618f3eaf01de4c6f3b5823e8fec Mon Sep 17 00:00:00 2001 From: Mike Chowla Date: Fri, 5 Jan 2018 11:44:51 -0800 Subject: [PATCH 2/3] Remove $$PREBID_GLOBAL$$ reference --- dev-docs/bidders/pubmatic.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-docs/bidders/pubmatic.md b/dev-docs/bidders/pubmatic.md index a6d76efbdc..aebd9b0637 100644 --- a/dev-docs/bidders/pubmatic.md +++ b/dev-docs/bidders/pubmatic.md @@ -37,14 +37,14 @@ If you upgrading from a Prebid version prior to 1.0, please reach out to your Pu ### Configuration -PubMatic recommends the UserSync configuration below. Without it, the PubMatic adapter will not able to perform user syncs, which lowers match and reduces monetization. +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 -$$PREBID_GLOBAL$$.setConfig({ +pbjs.setConfig({ userSync: { iframeEnabled: true, enabledBidders: ['pubmatic'], syncDelay: 6000 }}); ``` -Note: Combine the above the configuration with any other UserSync configuration. Multiple setConfig() overwrite each other and only last call for a given attribute will take effect. +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. From 58fdae465de9a6dcc1c5e1a7a02f0f3ef8727bbb Mon Sep 17 00:00:00 2001 From: Mike Chowla Date: Mon, 8 Jan 2018 17:31:51 -0800 Subject: [PATCH 3/3] Add prebid_1_0_supported flag --- dev-docs/bidders/pubmatic.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dev-docs/bidders/pubmatic.md b/dev-docs/bidders/pubmatic.md index aebd9b0637..bf6ed4f346 100644 --- a/dev-docs/bidders/pubmatic.md +++ b/dev-docs/bidders/pubmatic.md @@ -2,16 +2,12 @@ layout: bidder title: PubMatic description: Prebid PubMatic Bidder Adaptor - top_nav_section: dev_docs nav_section: reference - hide: true - biddercode: pubmatic - biddercode_longer_than_12: false - +prebid_1_0_supported : true --- ### Prebid Server Note: