Reference documentation and code samples for the Google Ads Ad Manager V1 Client class AdUnitSize.
Represents the size, environment, and companions of an ad in an ad unit.
Generated from protobuf message google.ads.admanager.v1.AdUnitSize
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ size
↳ environment_type
int
Required. The EnvironmentType of the AdUnit
↳ companions
array< Size
>
The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER .
getSize
Required. The Size of the AdUnit.
hasSize
clearSize
setSize
Required. The Size of the AdUnit.
$this
getEnvironmentType
Required. The EnvironmentType of the AdUnit
int
setEnvironmentType
Required. The EnvironmentType of the AdUnit
var
int
$this
getCompanions
The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER .
setCompanions
The companions for this ad unit size. Companions are only valid if the environment is VIDEO_PLAYER .
$this