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

New bid adapter for Smaato #2091

Merged
merged 5 commits into from
Jul 23, 2020
Merged
Changes from 3 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
59 changes: 59 additions & 0 deletions dev-docs/bidders/smaato.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
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 [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 Ad Unit

```javascript
var adUnit = {
"code": "header-bid-tag-1",
"mediaTypes": {
"banner": {
"sizes": [320, 50]
}
},
"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"
Copy link
Contributor

Choose a reason for hiding this comment

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

open rtb specifies yob as an integer... please update. I just fixed the API reference this was copied from.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was confusing me, that's why I created prebid/Prebid.js#5415 .
Is that the only change? OpenRTB also defines keywords as a string (comma seperated keywords), and in the docs context.content.userrating should be a string, not an int.
I'll change user.yob and user.keywords in smaato.md

Copy link
Contributor

Choose a reason for hiding this comment

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

You're right - keywords should be comma-separate strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed all types (also in the adapter itself) to confirm to openrtb, thank you.

}
});
```