Represents a Google Ads asset. An asset can be an image, text, or video. Assets are deduplicated within a given customer account, so assets may be shared between different ads.

### Methods:

| Member | Type | Description |
|---|---|---|
| [getDimensions()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getDimensions) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_dimensions` | Returns image dimension info if this asset is an image, or `null` otherwise. |
| [getEntityType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `"Asset"`. |
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getId) | `String` | Returns the ID of the asset. |
| [getImageUrl()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getImageUrl) | `String` | Returns the image URL if this asset is an image, or `null` otherwise. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getName) | `String` | Returns the name of the asset object, or `null` if the asset was created without a name. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getResourceName) | `String` | Returns the resource name of the asset. |
| [getText()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getText) | `String` | Returns asset text if this is a text asset, or `null` otherwise. |
| [getType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getType) | `String` | Returns the asset object's type. |
| [getYouTubeVideoId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getYouTubeVideoId) | `String` | Returns the YouTube video ID if this asset is a YouTube video, or `null` otherwise. |

## `getDimensions()`

Returns image dimension info if this asset is an image, or `null` otherwise.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_dimensions` | Image dimension info if this asset is an image, or `null` otherwise. |

## `getEntityType()`

Returns the type of this entity as a `String`, in this case, `"Asset"`.

### Return values:

| Type | Description |
|---|---|
| `String` | Type of this entity: `"Asset"`. |

## `getId()`

Returns the ID of the asset.

### Return values:

| Type | Description |
|---|---|
| `String` | The ID of the asset. |

## `getImageUrl()`

Returns the image URL if this asset is an image, or `null` otherwise.

### Return values:

| Type | Description |
|---|---|
| `String` | The image URL if this asset is an image, or `null` otherwise. |

## `getName()`

Returns the name of the asset object, or `null` if the asset was created without a name.

### Return values:

| Type | Description |
|---|---|
| `String` | The name of the asset object, or `null` if the asset was created without a name. |

## `getResourceName()`

Returns the resource name of the asset.

### Return values:

| Type | Description |
|---|---|
| `String` | The resource name of the asset. |

## `getText()`

Returns asset text if this is a text asset, or `null` otherwise.

### Return values:

| Type | Description |
|---|---|
| `String` | Asset text if this is a text asset, or `null` otherwise. |

## `getType()`

Returns the asset object's type. This is one of `IMAGE`, `MEDIA_BUNDLE`, `TEXT`, or `YOUTUBE_VIDEO`.

### Return values:

| Type | Description |
|---|---|
| `String` | The asset type. |

## `getYouTubeVideoId()`

Returns the YouTube video ID if this asset is a YouTube video, or `null` otherwise.

### Return values:

| Type | Description |
|---|---|
| `String` | The YouTube video ID if this asset is a YouTube video, or `null` otherwise. |