# AdSize

- [JSON representation](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1alpha/AdSize#SCHEMA_REPRESENTATION)
- [Type](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1alpha/AdSize#Type)

Represents size of a single ad slot, or a creative.

| JSON representation |
|---|
| ``` { "width": string, "height": string, "type": enum (`https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1alpha/AdSize#Type`) } ``` |

| Fields ||
|---|---|
| `width` | `string (https://developers.google.com/discovery/v1/type-format format)` The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. |
| `height` | `string (https://developers.google.com/discovery/v1/type-format format)` The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`. |
| `type` | ``enum (`https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1alpha/AdSize#Type`)`` The type of the ad slot size. |

## Type

Represents different types of ad slot/creative sizing.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | A placeholder for an undefined size type. |
| `PIXEL` | Ad slot with size specified by height and width in pixels. |
| `INTERSTITIAL` | Special size to describe an interstitial ad slot. |
| `NATIVE` | Native (mobile) ads rendered by the publisher. |
| `FLUID` | Fluid size (responsive size) can be resized automatically with the change of outside environment. |