Google Ads Ad Manager V1 Client - Class CustomCreativeAsset (0.15.0)

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

A CustomCreativeAsset is an association between a CustomCreative and an asset. Any assets that are associated with a creative can be inserted into its HTML snippet.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ macro_name string

Optional. The name by which the associated asset will be referenced. For example, if the value is "foo", then the asset can be inserted into an HTML snippet using the macro: "%%FILE:foo%%".

↳ asset CreativeAsset

Required. The asset. To view the asset, use CreativeAsset.asset_url.

getMacroName

Optional. The name by which the associated asset will be referenced. For example, if the value is "foo", then the asset can be inserted into an HTML snippet using the macro: "%%FILE:foo%%".

Returns
Type Description
string

hasMacroName

clearMacroName

setMacroName

Optional. The name by which the associated asset will be referenced. For example, if the value is "foo", then the asset can be inserted into an HTML snippet using the macro: "%%FILE:foo%%".

Parameter
Name Description
var string
Returns
Type Description
$this

getAsset

Required. The asset.

To view the asset, use CreativeAsset.asset_url.

Returns
Type Description
CreativeAsset|null

hasAsset

clearAsset

setAsset

Required. The asset.

To view the asset, use CreativeAsset.asset_url.

Parameter
Name Description
var CreativeAsset
Returns
Type Description
$this