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

yieldmo adapter device.ip support #3199

Closed
Closed
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
20 changes: 14 additions & 6 deletions dev-docs/bidders/yieldmo.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ The Yieldmo adapter supports in-stream video as of Prebid v4.18. Out-stream will
| `skippable` | optional | If 'true', user can skip ad | `true` | `boolean` |
| `skipafter` | optional | Number of seconds a video must play before skipping is enabled; only applicable if the ad is `skippable` | `5` | `integer` |
| `mimes` | required | List of the content MIME types supported by the player | `["video/mp4"]` | `Array<string>` |
| `device` | optional | User's device information. Currently we are expecting `ip` property only| `{ip: "111.222.333.444"}` | `object` |

### device object
{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example | Type |
|-------------------|----------|--------------------------------------------------------|-----------------|------------------|
| `ip` | optional | User's IP address |`111.222.333.444`| `string` |

### mediaTypes.video object
Following video parameters might be also defined in `mediaTypes.video` in order to simplify bidders configuration. If the same parameters was also defined in `params.video` it will be overriten by `params.video`. More details - https://docs.prebid.org/dev-docs/adunit-reference.html

In addition, Yieldmo adapter relies on parameters specified in the `mediaTypes.video` definition of the video ad-units, namely:
Expand All @@ -60,7 +68,7 @@ var videoAdUnits = [{
mediaTypes: {
video: {
playerSize: [640, 480], // required
context: 'instream',
context: 'instream', // required
mimes: ['video/mp4'], // required, array of strings
placement: 1, // required, integer
maxduration: 30, // required, integer
Expand Down Expand Up @@ -88,9 +96,9 @@ var videoAdUnit = [{
code: 'div-video-ad-1234567890',
mediaTypes: {
video: {
playerSize: [640, 480], // required
context: 'outstream',
mimes: ['video/mp4'], // required, array of strings
playerSize: [640, 480], // required
context: 'outstream', // required
mimes: ['video/mp4'], // required, array of strings
placement: 3, // required, integer ( 3,4,5 )
maxduration: 30, // required, integer
protocols: [2, 3], // required, array of integers
Expand All @@ -101,10 +109,10 @@ var videoAdUnit = [{
bids: [{
bidder: 'yieldmo',
params: {
placementId: '1524592390382976659' // required
placementId: '1524592390382976659' // required
}
}]
}];
```

> Prebid out-stream demo - https://prebid-outstream-qa.yieldmo.com/prebid-outstream.html
> [Prebid out-stream demo](https://prebid-outstream-qa.yieldmo.com/prebid-outstream.html)