Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion features/firstPartyData.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pbjs.setConfig({
userrating: "4",
data: [{
name: "www.dataprovider1.com",
ext: { "segtax": 1 },
ext: { segtax: 4 },
segment: [
{ id: "687" },
{ id: "123" }
Expand Down Expand Up @@ -177,6 +177,54 @@ pbjs.setBidderConfig({ // different bidders can receive different data
});
{% endhighlight %}

### Supplying App Content Data

Occasionally, an app which embeds a webview might run Prebid.js. In this case, the app object is often specified for OpenRTB, and the site object would be invalid. When this happens, one should specify app.content.data in place of site.content.data.

{% highlight js %}
pbjs.setConfig({
ortb2: {
app: {
name: "myappname",
keywords: "power tools, drills",
content: {
data: [
{
name: "www.dataprovider1.com",
ext: {
segtax: 6
},
segment: [
{
id: "687"
},
{
id: "123"
}
]
},
{
name: "www.dataprovider1.com",
ext: {
segtax: 7
},
segment: [
{
id: "456"
},
{
id: "789"
}
]
}
]
}
}
}
)

{% endhighlight %}

## Segments and Taxonomy

The [IAB](https://iab.com) offers standard content and audience taxonomies for categorizing sites and users. Prebid supports defining these values as first party data in `site.content.data` or `user.data` as shown in the examples above.
Expand Down