Skip to content

Commit

Permalink
Update description of sizes per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Loveland committed Jan 30, 2018
1 parent c24e6b5 commit f3ffb3a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dev-docs/adunit-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ This page describes the properties of the `adUnit` object.
See the table below for the list of properties on the ad unit. For example ad units, see the [Examples](#adUnit-examples) below.

{: .table .table-bordered .table-striped }
| Name | Scope | Type | Description |
|--------------+----------+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `code` | Required | String | Unique identifier you create and assign to this ad unit. Used to set query string targeting on the ad. If using GPT, we recommend setting this to slot element ID. |
| `sizes` | Required | Array[Number] or Array[Array[Number]] | All sizes this ad unit can accept. Examples: `[400, 600]`, `[[300, 250], [300, 600]]`. For 1.0 and later, prefer one of the `mediaTypes.*.sizes` listed below. |
| `bids` | Required | Array[Object] | Each bid represents a request to a bidder. For a list of properties, see [Bids](#adUnit.bids) below. |
| `mediaTypes` | Optional | Object | Defines the media type of the ad. For a list of properties, see [`adUnit.mediaTypes`](#adUnit.mediaTypes) below. |
| `labelAny` | Optional | Array[String] | Used for [conditional ads][conditionalAds]. Works with `sizeConfig` argument to [pbjs.setConfig][setConfig]. |
| `labelAll` | Optional | Array[String] | Used for [conditional ads][conditionalAds]. Works with `sizeConfig` argument to [pbjs.setConfig][setConfig]. |
| Name | Scope | Type | Description |
|--------------+----------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `code` | Required | String | Unique identifier you create and assign to this ad unit. Used to set query string targeting on the ad. If using GPT, we recommend setting this to slot element ID. |
| `sizes` | Required | Array[Number] or Array[Array[Number]] | All sizes this ad unit can accept. Examples: `[400, 600]`, `[[300, 250], [300, 600]]`. For 1.0 and later, define sizes within the appropriate `mediaTypes.{banner,native,video}` object. |
| `bids` | Required | Array[Object] | Each bid represents a request to a bidder. For a list of properties, see [Bids](#adUnit.bids) below. |
| `mediaTypes` | Optional | Object | Defines the media type of the ad. For a list of properties, see [`adUnit.mediaTypes`](#adUnit.mediaTypes) below. |
| `labelAny` | Optional | Array[String] | Used for [conditional ads][conditionalAds]. Works with `sizeConfig` argument to [pbjs.setConfig][setConfig]. |
| `labelAll` | Optional | Array[String] | Used for [conditional ads][conditionalAds]. Works with `sizeConfig` argument to [pbjs.setConfig][setConfig]. |

<a name="adUnit.bids" />

Expand Down

0 comments on commit f3ffb3a

Please sign in to comment.