Skip to content

Commit 3129a96

Browse files
karimMourrakarimJWP
and
karimJWP
authored
updates docs and demo for fpd changes (#6302)
Co-authored-by: karimJWP <[email protected]>
1 parent 83e8222 commit 3129a96

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

integrationExamples/gpt/jwplayerRtdProvider_example.html

+23-25
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,30 @@
1010
var PREBID_TIMEOUT = 1000;
1111

1212
var adUnits = [{
13-
code: 'div-gpt-ad-1460505748561-0',
14-
fpd: {
15-
context: {
16-
data: {
17-
jwTargeting: {
18-
// Note: the following Ids are placeholders and should be replaced with your Ids.
19-
playerID: '123',
20-
mediaID: 'abc'
13+
code: 'div-gpt-ad-1460505748561-0',
14+
ortb2Imp: {
15+
ext: {
16+
data: {
17+
jwTargeting: {
18+
// Note: the following Ids are placeholders and should be replaced with your Ids.
19+
playerID: '123',
20+
mediaID: 'abc'
21+
}
22+
}
2123
}
22-
},
23-
}
24-
},
25-
26-
mediaTypes: {
27-
banner: {
28-
sizes: [[300, 250], [300,600]],
29-
}
30-
},
31-
// Replace this object to test a new Adapter!
32-
bids: [{
33-
bidder: 'appnexus',
34-
params: {
35-
placementId: 13144370
36-
}
37-
}]
38-
24+
},
25+
mediaTypes: {
26+
banner: {
27+
sizes: [[300, 250], [300,600]],
28+
}
29+
},
30+
// Replace this object to test a new Adapter!
31+
bids: [{
32+
bidder: 'appnexus',
33+
params: {
34+
placementId: 13144370
35+
}
36+
}]
3937
}];
4038

4139
var pbjs = pbjs || {};

modules/jwplayerRtdProvider.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ pbjs.setConfig({
2525
}
2626
});
2727
```
28-
Lastly, include the content's media ID and/or the player's ID in the matching AdUnit's `fpd.context.data`:
28+
Lastly, include the content's media ID and/or the player's ID in the matching AdUnit's `ortb2Imp.ext.data`:
2929

3030
```javascript
3131
const adUnit = {
3232
code: '/19968336/prebid_native_example_1',
3333
...
34-
fpd: {
35-
context: {
34+
ortb2Imp: {
35+
ext: {
3636
data: {
3737
jwTargeting: {
3838
// Note: the following Ids are placeholders and should be replaced with your Ids.
@@ -52,7 +52,7 @@ pbjs.que.push(function() {
5252
});
5353
```
5454

55-
**Note**: You may also include `jwTargeting` information in the prebid config's `fpd.context.data`. Information provided in the adUnit will always supersede, and information in the config will be used as a fallback.
55+
**Note**: You may also include `jwTargeting` information in the prebid config's `ortb2.site.ext.data`. Information provided in the adUnit will always supersede, and information in the config will be used as a fallback.
5656

5757
##Prefetching
5858
In order to prefetch targeting information for certain media, include the media IDs in the `jwplayerDataProvider` var and set `waitForIt` to `true`:
@@ -117,3 +117,7 @@ To view an example:
117117
`http://localhost:9999/integrationExamples/gpt/jwplayerRtdProvider_example.html`
118118

119119
**Note:** the mediaIds in the example are placeholder values; replace them with your existing IDs.
120+
121+
#Maintainer info
122+
123+
Maintained by JW Player. For any questions, comments or feedback please contact Karim Mourra, [email protected]

0 commit comments

Comments
 (0)