Skip to content

Commit 24737f5

Browse files
Update medianet.md: video is optional and not required (#6232)
The `video` in the Bid Params is optional for video ad units and not required. Reasons: * The example further down in the docs "Example of Instream Video Ad-unit" doesn't contain a `video` in the bids params. * The actual code in the bid adapter can deal with missing video. See https://github.com/prebid/Prebid.js/blob/fb3f801f4099798b1dd6e1aeb9e3dfc6e41982c9/modules/medianetBidAdapter.js#L215 : ```javascript const videoInMediaType = deepAccess(bidRequest, 'mediaTypes.video') || {}; const videoInParams = deepAccess(bidRequest, 'params.video') || {}; const videoCombinedObj = Object.assign({}, videoInParams, videoInMediaType); ```
1 parent 0970b1a commit 24737f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-docs/bidders/medianet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ endpoint_compression: false
3636
| `cid` | required | The customer id provided by Media.net. | `'8CUX0H51C'` | `string` |
3737
| `crid` | required | The placement id provided by Media.net | `'1234567'` | `string` |
3838
| `bidfloor` | optional | Bidfloor for the impression | `1.0` | `float` |
39-
| `video` | required for video Ad units | Object containing video targeting parameters. See [Video Object](#media.net-video-object) for details.|`video: { maxduration: 60 }` | `object` |
39+
| `video` | optional for video Ad units | Object containing video targeting parameters. See [Video Object](#media.net-video-object) for details.|`video: { maxduration: 60 }` | `object` |
4040

4141
<a name="media.net-video-object"></a>
4242

0 commit comments

Comments
 (0)