diff --git a/features/firstPartyData.md b/features/firstPartyData.md index bcca76f29c..02b8b2f1f8 100644 --- a/features/firstPartyData.md +++ b/features/firstPartyData.md @@ -75,15 +75,13 @@ pbjs.setConfig({ }] }, ext: { - data: { // fields that aren't part of openrtb 2.5 + data: { // fields that aren't part of openrtb 2.6 pageType: "article", category: "repair" } } }, user: { - yob: 1985, - gender: "m", keywords: "a,b", data: [{ name: "dataprovider.com", @@ -169,6 +167,30 @@ pbjs.addAdUnits({ }); {% endhighlight %} +Another case is [declaring rewarded](https://github.com/InteractiveAdvertisingBureau/openrtb2.x/blob/422eedb76e8730c89dcac75c7427c18cfa10e8c4/2.6.md?plain=1#L993). Here is how one might do that: + + +{% highlight js %} +pbjs.addAdUnits({ + code: "test-div-rewarded", + mediaTypes: { + banner: { + sizes: [[300,250]] + } + }, + ortb2Imp: { + rwdd: 1, + ext: { + data: { + pbadslot: "my-rewarded-rectangle", + adUnitSpecificAttribute: "123" + } + } + }, + ... +}); +{% endhighlight %} + You may also specify adUnit-specific transaction IDs using `ortb2Imp.ext.tid`, and Prebid will use them instead of generating random new ones. This is useful if you are auctioning the same slots through multiple header bidding libraries. Note: you must take care to not re-use the same transaction IDs across different ad units or auctions. Here's a simplified example passing a tid through the [requestBids](/dev-docs/publisher-api-reference/requestBids.html) function: {% highlight js %}