AdUnitSize
Stay organized with collections
Save and categorize content based on your preferences.
Represents the size, environment, and companions of an ad in an ad unit.
| JSON representation |
{
"companions": [
{
object (Size)
}
],
"size": {
object (Size)
},
"environmentType": enum (EnvironmentType)
} |
| Fields |
companions[] |
object (Size)
The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER.
|
size |
object (Size)
Required. The Size of the AdUnit.
|
environmentType |
enum (EnvironmentType)
Required. The EnvironmentType of the AdUnit
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-27 UTC.
[null,null,["Last updated 2026-07-27 UTC."],[],[]]