Represents a Google Ads asset group. An asset can be an image, text, or video. Asset groups are collections of assets primarily used by Performance Max campaigns.

### Methods:

| Member | Type | Description |
|---|---|---|
| [addAsset(asset, fieldType)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#addAsset_asset-fieldType) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetoperation` | Adds an asset to this asset group. |
| [enable()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#enable) | `void` | Enables the asset group. |
| [getEntityType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `"AssetGroup"`. |
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#getId) | `String` | Returns the ID of the asset group. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#getName) | `String` | Returns the name of this asset group. |
| [getPerformanceMaxCampaign()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#getPerformanceMaxCampaign) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_performancemaxcampaign` | Returns the performance max campaign to which this asset group belongs or `null` if it does not belong to a performance max campaign. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#getResourceName) | `String` | Returns the resource name of the asset group. |
| [isEnabled()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#isEnabled) | `boolean` | Returns `true` if the asset group is enabled. |
| [isPaused()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#isPaused) | `boolean` | Returns `true` if the asset group is paused. |
| [isRemoved()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#isRemoved) | `boolean` | Returns `true` if the asset group is removed. |
| [pause()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#pause) | `void` | Pauses the asset group. |
| [removeAsset(asset, fieldType)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#removeAsset_asset-fieldType) | `void` | Removes an asset from this asset group. |
| [setName(name)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#setName_name) | `void` | Sets the name of the asset group. |
| [urls()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroup#urls) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroupurls` | Provides access to this asset group's URL fields. |

## `addAsset(asset, fieldType)`

Adds an asset to this asset group.

### Arguments:

| Name | Type | Description |
|---|---|---|
| asset | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset` | The asset to add to this asset group. |
| fieldType | `String` | The placement of the asset within the asset group. See the [API documentation](https://developers.google.com/google-ads/api/reference/rpc/latest/AssetFieldTypeEnum.AssetFieldType) for a complete list. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetoperation` | The associated asset operation. |

## `enable()`

Enables the asset group.

Returns nothing.

## `getEntityType()`

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

### Return values:

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

## `getId()`

Returns the ID of the asset group.

### Return values:

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

## `getName()`

Returns the name of this asset group.

### Return values:

| Type | Description |
|---|---|
| `String` | The name of this asset group. |

## `getPerformanceMaxCampaign()`

Returns the performance max campaign to which this asset group belongs or `null` if it does not belong to a performance max campaign.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_performancemaxcampaign` | The performance max campaign to which this asset group belongs or `null` if it does not belong to a performance max campaign. |

## `getResourceName()`

Returns the resource name of the asset group.

### Return values:

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

## `isEnabled()`

Returns `true` if the asset group is enabled.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if the asset group is enabled. |

## `isPaused()`

Returns `true` if the asset group is paused.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if the asset group is paused. |

## `isRemoved()`

Returns `true` if the asset group is removed.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if the asset group is removed. |

## `pause()`

Pauses the asset group.

Returns nothing.

## `removeAsset(asset, fieldType)`

Removes an asset from this asset group.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| asset | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset` | The asset to remove from this asset group. |
| fieldType | `String` | The placement of the asset within the asset group. See the [API documentation](https://developers.google.com/google-ads/api/reference/rpc/latest/AssetFieldTypeEnum.AssetFieldType) for a complete list. |

## `setName(name)`

Sets the name of the asset group.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| name | `String` | The new name for the asset group. |

## `urls()`

Provides access to this asset group's URL fields.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetgroupurls` | Access to this asset group's URL fields. |