Skip to content

Commit

Permalink
Add section on renderer.options (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane authored and rmloveland committed Feb 8, 2018
1 parent 753439e commit a791219
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dev-docs/show-outstream-video-ads.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,25 @@ pbjs.addAdUnit({

{% endhighlight %}

Some demand partners that return a renderer with their video bid responses may support renderer configuration with the `adUnit.renderer.options` object. These configurations are bidder specific and may include options for skippability, player size, and ad text, for example. An example renderer configuration follows:

{% highlight js %}

pbjs.addAdUnit({
code: 'video1',
mediaTypes: {
video: { context: 'outstream', playerSize: [640, 480] }
},
renderer: {
options: {
adText: 'This text was configured in the ad unit',
}
},
...
});

{% endhighlight %}

For more technical information about renderers, see [the pull request adding the 'Renderer' type](https://github.com/prebid/Prebid.js/pull/1082)

## Step 2: Show ads in the page body
Expand Down

0 comments on commit a791219

Please sign in to comment.