# type AdUnitSize (v202511)

**Service** **InventoryService** [SuggestedAdUnitService](https://developers.google.com/ad-manager/api/reference/v202511/SuggestedAdUnitService.AdUnitSize) **Dependencies** [AdUnit](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.AdUnit) [AdUnitSize](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.AdUnitSize) [getAdUnitSizesByStatement()](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService#getAdUnitSizesByStatement) ▼ **AdUnitSize**

An `AdUnitSize` represents the size of an ad in an ad unit. This also represents the
environment and companions of a particular ad in an ad unit. In most cases, it is a simple size
with just a width and a height (sometimes representing an aspect ratio).

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202511`

| ## Field ||
|---|---|
| ### `size` | ` https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.Size ` The permissible creative size that can be served inside this ad unit. |
| ### `environmentType` | ` https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.EnvironmentType ` The environment type of the ad unit size. The default value is [EnvironmentType.BROWSER](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.EnvironmentType#BROWSER). *** ** * ** *** **Enumerations** `BROWSER` :   A regular web browser. `VIDEO_PLAYER` :   Video players. <br /> |
| ### `companions` | ` https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.AdUnitSize[]` The companions for this ad unit size. Companions are only valid if the environment is [EnvironmentType.VIDEO_PLAYER](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.EnvironmentType#VIDEO_PLAYER). If the environment is [EnvironmentType.BROWSER](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.EnvironmentType#BROWSER) including companions results in an error. |
| ### `fullDisplayString` | ` xsd:string` The full (including companion sizes, if applicable) display string of the size, e.g. `"300x250"` or `"300x250v (180x150)"` |
| ### `isAudio` | ` xsd:boolean` Whether the inventory size is audio. If set to true, `Size` will be set to `"1x1"` and `EnvironmentType` will be set to [EnvironmentType.VIDEO_PLAYER](https://developers.google.com/ad-manager/api/reference/v202511/InventoryService.EnvironmentType#VIDEO_PLAYER) regardless of user input. |