Commit 24737f5
authored
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments