From 0a91bfa13716c9eb6abfd67954460bf7c3a0f6cf Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 22 Jun 2020 14:27:05 +0200 Subject: [PATCH 1/5] Smaato: Initial version of bid adapter doc. --- dev-docs/bidders/smaato.md | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 dev-docs/bidders/smaato.md diff --git a/dev-docs/bidders/smaato.md b/dev-docs/bidders/smaato.md new file mode 100644 index 0000000000..d374ac64f3 --- /dev/null +++ b/dev-docs/bidders/smaato.md @@ -0,0 +1,53 @@ +--- +layout: bidder +title: Smaato +description: Prebid Smaato Bidder Adaptor +hide: true +biddercode: smaato +gdpr_supported: true +usp_supported: true +coppa_supported: true +media_types: banner +--- + +### Note + +The Smaato adapter requires setup and approval from the Smaato team, even for existing Smaato publishers. Please reach out to your account team or prebid@smaato.com for more information. + +### Bid Params + +{: .table .table-bordered .table-striped } +| Name | Scope | Description | Example | Type | +|------------|----------|----------------------|------------|----------| +| `publisherId` | required | Your Smaato publisher id | `'1100012345'` | `string` | +| `adspaceId` | required | Your Smaato adspace id | `'11002234'` | `string` | +| `yob` | optional | Users year of birth | `1950` | `integer` | +| `gender` | optional | Users gender (f,m,o) | `'f'` | `string` | +| `lat` | optional | Users latitude | `53.575` | `float` | +| `lon` | optional | Users longitude | `10.015` | `float` | +| `keywords` | optional | Site keywords | `'keyword1,keyword2,keyword3'` | `string` | + +### Example Ad Unit + +```javascript +var adUnit = { + "code": "header-bid-tag-1", + "mediaTypes": { + "banner": { + "sizes": [320, 50] + } + }, + "bids": [{ + "bidder": "smaato", + "params": { + "publisherId": "1100012345", + "adspaceId": "11002234", + "yob": 1950, + "gender": "f", + "lat": 53.575, + "lon": 10.015, + "keywords": "keyword1,keyword2,keyword3" + } + }] +} +``` \ No newline at end of file From fc18e176c74e70d4a3825bd2de0ce08a78e72cc7 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 24 Jun 2020 10:26:45 +0200 Subject: [PATCH 2/5] Smaato: Add fpd info --- dev-docs/bidders/smaato.md | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/dev-docs/bidders/smaato.md b/dev-docs/bidders/smaato.md index d374ac64f3..9df504a40c 100644 --- a/dev-docs/bidders/smaato.md +++ b/dev-docs/bidders/smaato.md @@ -21,11 +21,6 @@ The Smaato adapter requires setup and approval from the Smaato team, even for ex |------------|----------|----------------------|------------|----------| | `publisherId` | required | Your Smaato publisher id | `'1100012345'` | `string` | | `adspaceId` | required | Your Smaato adspace id | `'11002234'` | `string` | -| `yob` | optional | Users year of birth | `1950` | `integer` | -| `gender` | optional | Users gender (f,m,o) | `'f'` | `string` | -| `lat` | optional | Users latitude | `53.575` | `float` | -| `lon` | optional | Users longitude | `10.015` | `float` | -| `keywords` | optional | Site keywords | `'keyword1,keyword2,keyword3'` | `string` | ### Example Ad Unit @@ -41,13 +36,27 @@ var adUnit = { "bidder": "smaato", "params": { "publisherId": "1100012345", - "adspaceId": "11002234", - "yob": 1950, - "gender": "f", - "lat": 53.575, - "lon": 10.015, - "keywords": "keyword1,keyword2,keyword3" + "adspaceId": "11002234" } }] } +``` + +The Smaato adapter supports passing through first party data configured in your prebid integration. + +```javascript +pbjs.setConfig({ + fpd: { + context: { + keywords: ["power tools"], + search: "drill", + content: { userrating: 4 } + }, + user: { + keywords: ["a","b"], + gender: "M", + yob: "1984", + geo: { country: "ca" } + } +}); ``` \ No newline at end of file From 1c7ac4e1863aaa76098c0e3d938a168c015832b4 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 25 Jun 2020 09:31:24 +0200 Subject: [PATCH 3/5] Smaato: Adjust first party data confif example --- dev-docs/bidders/smaato.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dev-docs/bidders/smaato.md b/dev-docs/bidders/smaato.md index 9df504a40c..b053ead510 100644 --- a/dev-docs/bidders/smaato.md +++ b/dev-docs/bidders/smaato.md @@ -48,15 +48,12 @@ The Smaato adapter supports passing through first party data configured in your pbjs.setConfig({ fpd: { context: { - keywords: ["power tools"], - search: "drill", - content: { userrating: 4 } + keywords: ["power tools"] }, user: { keywords: ["a","b"], gender: "M", - yob: "1984", - geo: { country: "ca" } + yob: "1984" } }); ``` \ No newline at end of file From 43e1adf98b007fe33f84273f66fc798bde151bb5 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 30 Jun 2020 08:47:17 +0200 Subject: [PATCH 4/5] Smaato: Adjust adapter docs to reference correct yob and keywords --- dev-docs/bidders/smaato.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-docs/bidders/smaato.md b/dev-docs/bidders/smaato.md index b053ead510..2eccb84a88 100644 --- a/dev-docs/bidders/smaato.md +++ b/dev-docs/bidders/smaato.md @@ -48,12 +48,12 @@ The Smaato adapter supports passing through first party data configured in your pbjs.setConfig({ fpd: { context: { - keywords: ["power tools"] + keywords: "power tools" }, user: { - keywords: ["a","b"], + keywords: "a,b", gender: "M", - yob: "1984" + yob: 1984 } }); ``` \ No newline at end of file From dce2a8193f62a376cf5fada6a9e3839ee144509e Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 10 Jul 2020 14:34:26 +0200 Subject: [PATCH 5/5] Smaato: Add video ad unit example --- dev-docs/bidders/smaato.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/dev-docs/bidders/smaato.md b/dev-docs/bidders/smaato.md index 2eccb84a88..508f06a2f2 100644 --- a/dev-docs/bidders/smaato.md +++ b/dev-docs/bidders/smaato.md @@ -7,7 +7,7 @@ biddercode: smaato gdpr_supported: true usp_supported: true coppa_supported: true -media_types: banner +media_types: banner, video --- ### Note @@ -22,7 +22,7 @@ The Smaato adapter requires setup and approval from the Smaato team, even for ex | `publisherId` | required | Your Smaato publisher id | `'1100012345'` | `string` | | `adspaceId` | required | Your Smaato adspace id | `'11002234'` | `string` | -### Example Ad Unit +### Example Banner Ad Unit ```javascript var adUnit = { @@ -42,6 +42,37 @@ var adUnit = { } ``` +### Example Video Ad Unit + +```javascript +var adUnit = { + "code": "video unit", + "mediaTypes": { + "video": { + "context": "instream", + "playerSize": [640, 480], + "mimes": ["video/mp4"], + "minduration": 5, + "maxduration": 30, + "startdelay": 0, + "linearity": 1, + "protocols": [7], + "skip": 1, + "skipmin": 5, + "api": [7], + "ext": {"rewarded": 0} + } + }, + "bids": [{ + "bidder": "smaato", + "params": { + "publisherId": "1100012345", + "adspaceId": "11002234" + } + }] +}; +``` + The Smaato adapter supports passing through first party data configured in your prebid integration. ```javascript