Google Ads Ad Manager V1 Client - Class Size (0.1.1)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Size.

Represents the dimensions of an AdUnit, LineItem, or Creative.

Generated from protobuf message google.ads.admanager.v1.Size

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ width int

Required. The width of the Creative, AdUnit, or LineItem.

↳ height int

Required. The height of the Creative, AdUnit, or LineItem.

↳ size_type int

Required. The SizeType of the Creative, AdUnit, or LineItem.

getWidth

Required. The width of the Creative, AdUnit, or LineItem.

Returns
Type Description
int

setWidth

Required. The width of the Creative, AdUnit, or LineItem.

Parameter
Name Description
var int
Returns
Type Description
$this

getHeight

Required. The height of the Creative, AdUnit, or LineItem.

Returns
Type Description
int

setHeight

Required. The height of the Creative, AdUnit, or LineItem.

Parameter
Name Description
var int
Returns
Type Description
$this

getSizeType

Required. The SizeType of the Creative, AdUnit, or LineItem.

Returns
Type Description
int

setSizeType

Required. The SizeType of the Creative, AdUnit, or LineItem.

Parameter
Name Description
var int
Returns
Type Description
$this