Skip to content

Commit

Permalink
New bid adapter for Smaato (#2091)
Browse files Browse the repository at this point in the history
* Smaato: Initial version of bid adapter doc.

* Smaato: Add fpd info

* Smaato: Adjust first party data confif example

* Smaato: Adjust adapter docs to reference correct yob and keywords

* Smaato: Add video ad unit example
  • Loading branch information
sbrosinski authored Jul 23, 2020
1 parent 2f5cda0 commit 4f35f04
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions dev-docs/bidders/smaato.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
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, video
---

### 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 [email protected] 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` |

### Example Banner Ad Unit

```javascript
var adUnit = {
"code": "header-bid-tag-1",
"mediaTypes": {
"banner": {
"sizes": [320, 50]
}
},
"bids": [{
"bidder": "smaato",
"params": {
"publisherId": "1100012345",
"adspaceId": "11002234"
}
}]
}
```

### 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
pbjs.setConfig({
fpd: {
context: {
keywords: "power tools"
},
user: {
keywords: "a,b",
gender: "M",
yob: 1984
}
});
```

0 comments on commit 4f35f04

Please sign in to comment.