Skip to content

Commit

Permalink
Update based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane committed Jan 23, 2018
1 parent 418e3a0 commit c7fe6a1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions dev-docs/publisher-api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,9 @@ See the table below for the list of properties in the `mediaTypes` object of the
{: .table .table-bordered .table-striped }
| Name | Scope | Type | Description |
|----------+--------------------------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------------|
| `banner` | optional. If no other properties are specified, this is the default | Object | Defines properties of a banner ad. For examples, see [the banner example below](#adUnit-banner). |
| `native` | optional | Object | Defines properties of a native ad. For an example native ad unit, see [the native example below](#adUnit-native). |
| `video` | optional | Object | Defines properties of a video ad. For examples, see [the video examples below](#adUnit-video). |
| `banner` | optional. If no other properties are specified, this is the default | Object | Defines properties of a banner ad. For examples, see [the banner example below](#adUnit-banner). |

<a name="addAdUnits-Examples">

Expand Down Expand Up @@ -738,9 +738,16 @@ For examples of a multi-format ad units and behavior, see below.
pbjs.addAdUnits({
code: 'div-banner-outstream-native',
mediaTypes: {
banner: {},
native: {},
video: {context: 'outstream'},
banner: { sizes: [[300, 250], [300, 600]] },
native: {
title: {required: true},
image: {required: true},
body: {required: false},
},
video: {
context: 'outstream',
playerSize: [400, 600],
},
},
bids: [
{
Expand All @@ -764,8 +771,8 @@ pbjs.addAdUnits({
pbjs.addAdUnits({
code: 'div-native-outstream',
mediaTypes: {
native: {},
video: {context: 'outstream'},
native: { type: 'image' },
video: { context: 'outstream', playerSize: [400, 600] },
},
bids: [
{
Expand Down

0 comments on commit c7fe6a1

Please sign in to comment.