0.16.0 (latest) 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 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` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CreativeAsset|null` |   |

### hasAsset

### clearAsset

### setAsset

Required. The asset.

To view the asset, use `CreativeAsset.asset_url`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CreativeAsset` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |