Skip to content

Commit

Permalink
Dailymotion Bid Adaptor: drop support for non standard fields in medi…
Browse files Browse the repository at this point in the history
…aTypes.video
  • Loading branch information
Kevin Siow committed May 7, 2024
1 parent ce0d356 commit d10d648
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions dev-docs/bidders/dailymotion.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const adUnits = [
bids: [{
bidder: 'dailymotion',
params: {
apiKey: 'dailymotion-testing'
apiKey: 'dailymotion-testing',
},
}],
code: 'test-ad-unit',
Expand Down Expand Up @@ -87,7 +87,10 @@ const adUnits = [
bids: [{
bidder: 'dailymotion',
params: {
apiKey: 'dailymotion-testing'
apiKey: 'dailymotion-testing',
video: {
xid: 'x123456' // Dailymotion infrastructure unique video ID
},
}
}],
code: 'test-ad-unit',
Expand All @@ -98,7 +101,6 @@ const adUnits = [
startdelay: 0,
w: 1280,
h: 720,
xid: 'x123456' // Dailymotion infrastructure unique video ID
},
}
}
Expand All @@ -118,7 +120,17 @@ const adUnits = [
params: {
apiKey: 'dailymotion-testing',
video: {
description: 'overriden video description'
description: 'this is a video description',
duration: 556,
iabcat1: ['IAB-2'],
iabcat2: ['6', '17'],
id: '54321',
lang: 'FR',
livestream: 0,
private: false,
tags: 'tag_1,tag_2,tag_3',
title: 'test video',
topics: 'topic_1, topic_2',
}
}
}],
Expand All @@ -127,18 +139,7 @@ const adUnits = [
video: {
api: [2, 7],
context: 'instream',
description: 'this is a video description',
duration: 556,
iabcat1: ['IAB-2'],
iabcat2: ['6', '17'],
id: '54321',
lang: 'FR',
livestream: 0,
private: false,
startdelay: 0,
tags: 'tag_1,tag_2,tag_3',
title: 'test video',
topics: 'topic_1, topic_2',
w: 1280,
h: 720,
},
Expand All @@ -147,8 +148,7 @@ const adUnits = [
];
```

Each of the following video metadata fields can be added in mediaTypes.video or bids.params.video.
If a field exists in both places, it will be overridden by bids.params.video.
Each of the following video metadata fields can be added in bids.params.video.

* `description` - Video description
* `duration` - Video duration in seconds
Expand All @@ -165,12 +165,12 @@ If a field exists in both places, it will be overridden by bids.params.video.

If you already specify [First-Party data](https://docs.prebid.org/features/firstPartyData.html) through the `ortb2` object when calling [`pbjs.requestBids(requestObj)`](https://docs.prebid.org/dev-docs/publisher-api-reference/requestBids.html), we will fallback to those values when possible. See the mapping below.

| From ortb2 | Metadata fields |
|---------------------------------------------------------------------|-----------------|
| `ortb2.site.content.data` where `ext.segtax` is `4` | `iabcat1` |
| `ortb2.site.content.data` where `ext.segtax` is `5`, `6` or `7` | `iabcat2` |
| `ortb2.site.content.id` | `id` |
| `ortb2.site.content.language` | `lang` |
| `ortb2.site.content.livestream` | `livestream` |
| `ortb2.site.content.keywords` | `tags` |
| `ortb2.site.content.title` | `title` |
| From ortb2 | Metadata fields |
|---------------------------------------------------------------------------------|-----------------|
| `ortb2.site.content.cat` OR `ortb2.site.content.data` where `ext.segtax` is `4` | `iabcat1` |
| `ortb2.site.content.data` where `ext.segtax` is `5`, `6` or `7` | `iabcat2` |
| `ortb2.site.content.id` | `id` |
| `ortb2.site.content.language` | `lang` |
| `ortb2.site.content.livestream` | `livestream` |
| `ortb2.site.content.keywords` | `tags` |
| `ortb2.site.content.title` | `title` |

0 comments on commit d10d648

Please sign in to comment.