Google Ads Ad Manager V1 Client - Class CreativePlaceholder (0.14.1)

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

Describes a slot that a creative is expected to fill. This is used in forecasting and to validate that the correct creatives are associated with the line item.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ size Size

Required. The size that the creative is expected to have.

↳ companions array<CreativePlaceholderCompanion>

Optional. The companions that the creative is expected to have. This attribute can only be set if the line item it belongs to has an EnvironmentType of VIDEO_PLAYER or roadblocking_type of CREATIVE_SET.

↳ expected_creative_count int

Optional. Non-empty default. Expected number of creatives that will be uploaded corresponding to this creative placeholder. This estimate is used to improve the accuracy of forecasting; for example, if label frequency capping limits the number of times a creative may be served. By default, the expected creative count is set to 1.

↳ applied_labels array<AppliedLabel>

Optional. Set of labels applied directly to this CreativePlaceholder.

↳ amp_only bool

Optional. Non-empty default. Indicates if the expected creative of this placeholder has an AMP only variant. This is used to improve the accuracy of forecasting and has no effect on serving. By default, the value is false.

↳ creative_targeting_display_name string

Optional. The display name of the creative targeting that this CreativePlaceholder represents.

getSize

Required. The size that the creative is expected to have.

Returns
Type Description
Size|null

hasSize

clearSize

setSize

Required. The size that the creative is expected to have.

Parameter
Name Description
var Size
Returns
Type Description
$this

getCompanions

Optional. The companions that the creative is expected to have. This attribute can only be set if the line item it belongs to has an EnvironmentType of VIDEO_PLAYER or roadblocking_type of CREATIVE_SET.

Returns
Type Description
Google\Protobuf\RepeatedField<CreativePlaceholderCompanion>

setCompanions

Optional. The companions that the creative is expected to have. This attribute can only be set if the line item it belongs to has an EnvironmentType of VIDEO_PLAYER or roadblocking_type of CREATIVE_SET.

Parameter
Name Description
var array<CreativePlaceholderCompanion>
Returns
Type Description
$this

getExpectedCreativeCount

Optional. Non-empty default. Expected number of creatives that will be uploaded corresponding to this creative placeholder. This estimate is used to improve the accuracy of forecasting; for example, if label frequency capping limits the number of times a creative may be served. By default, the expected creative count is set to 1.

Returns
Type Description
int

hasExpectedCreativeCount

clearExpectedCreativeCount

setExpectedCreativeCount

Optional. Non-empty default. Expected number of creatives that will be uploaded corresponding to this creative placeholder. This estimate is used to improve the accuracy of forecasting; for example, if label frequency capping limits the number of times a creative may be served. By default, the expected creative count is set to 1.

Parameter
Name Description
var int
Returns
Type Description
$this

getAppliedLabels

Optional. Set of labels applied directly to this CreativePlaceholder.

Returns
Type Description
Google\Protobuf\RepeatedField<AppliedLabel>

setAppliedLabels

Optional. Set of labels applied directly to this CreativePlaceholder.

Parameter
Name Description
var array<AppliedLabel>
Returns
Type Description
$this

getAmpOnly

Optional. Non-empty default. Indicates if the expected creative of this placeholder has an AMP only variant. This is used to improve the accuracy of forecasting and has no effect on serving. By default, the value is false.

Returns
Type Description
bool

hasAmpOnly

clearAmpOnly

setAmpOnly

Optional. Non-empty default. Indicates if the expected creative of this placeholder has an AMP only variant. This is used to improve the accuracy of forecasting and has no effect on serving. By default, the value is false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getCreativeTargetingDisplayName

Optional. The display name of the creative targeting that this CreativePlaceholder represents.

Returns
Type Description
string

hasCreativeTargetingDisplayName

clearCreativeTargetingDisplayName

setCreativeTargetingDisplayName

Optional. The display name of the creative targeting that this CreativePlaceholder represents.

Parameter
Name Description
var string
Returns
Type Description
$this