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

OpenRTB 2.5 supported parameters #4994

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Changes from all 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
38 changes: 38 additions & 0 deletions dev-docs/bidders/nextMillennium.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,41 @@ pbjs.setBidderConfig({
},
})
```

#### OpenRTB 2.5 supported parameters

The adapter for Prebid.js supports the following options: `site.pagecat`, `site.content.cat` and `site.content.language`. You can set these parameters through the Prebid.js configuration setup functions: [pbjs.setConfig](https://docs.prebid.org/dev-docs/publisher-api-reference/setConfig.html) or [pbjs.setBidderConfig](https://docs.prebid.org/dev-docs/publisher-api-reference/setBidderConfig.html).
An example of setting openrtb parameters for the entire prebid.js script.

```javascript
pbjs.setConfig({
ortb2: {
site: {
pagecat: ['IAB2-11', 'IAB2-12', 'IAB2-14'],
content: {
cat: ['IAB2-11', 'IAB2-12', 'IAB2-14'],
language: 'EN'
},
}
}
});
```

An example of setting openrtb parameters only for the NextMillennium adapter.

```javascript
pbjs.setBidderConfig({
bidders: ['bidderB'],
config: {
ortb2: {
site: {
pagecat: ['IAB2-11', 'IAB2-12', 'IAB2-14'],
content: {
cat: ['IAB2-11', 'IAB2-12', 'IAB2-14'],
language: 'EN'
},
}
}
}
});
```