Represents a Google Ads label.

### Methods:

| Member | Type | Description |
|---|---|---|
| [adGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#adGroups) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroupselector` | Returns the selector of all ad groups to which the label is applied. |
| [ads()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#ads) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adselector` | Returns the selector of all ads to which the label is applied. |
| [campaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#campaigns) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | Returns the selector of all search and display campaigns to which the label is applied. |
| [getColor()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#getColor) | `String` | Returns the color code of the label. |
| [getDescription()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#getDescription) | `String` | Returns the description of the label. |
| [getEntityType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `"Label"`. |
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#getId) | `String` | Returns the ID of the label. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#getName) | `String` | Returns the name of the label. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#getResourceName) | `String` | Returns the resource name of the label. |
| [keywords()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#keywords) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_keywordselector` | Returns the selector of all keywords to which the label is applied. |
| [remove()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#remove) | `void` | Removes the label. |
| [setColor(color)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#setColor_color) | `void` | Sets the background color of the label. |
| [setDescription(description)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#setDescription_description) | `void` | Sets the description for this label. |
| [setName(name)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_label#setName_name) | `void` | Changes the name of the Label. |

## `adGroups()`

Returns the selector of all ad groups to which the label is applied.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroupselector` | The selector of all ad groups to which the label is applied. |

## `ads()`

Returns the selector of all ads to which the label is applied.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adselector` | The selector of all ads to which the label is applied. |

## `campaigns()`

Returns the selector of all search and display campaigns to which the label is applied.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | The selector of all search and display campaigns to which the label is applied. |

## `getColor()`

Returns the color code of the label.

### Return values:

| Type | Description |
|---|---|
| `String` | Color code of the label. The returned string will always be in uppercase `#RRGGBB`, e.g., `#FFAAFF` but never `#ffaaff` or `#FAF`. form. |

## `getDescription()`

Returns the description of the label.

### Return values:

| Type | Description |
|---|---|
| `String` | Description of the label. |

## `getEntityType()`

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

### Return values:

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

## `getId()`

Returns the ID of the label.

### Return values:

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

## `getName()`

Returns the name of the label.

### Return values:

| Type | Description |
|---|---|
| `String` | Name of the label. |

## `getResourceName()`

Returns the resource name of the label.

### Return values:

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

## `keywords()`

Returns the selector of all keywords to which the label is applied.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_keywordselector` | The selector of all keywords to which the label is applied. |

## `remove()`

Removes the label.

Returns nothing.

## `setColor(color)`

Sets the background color of the label.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| color | `String` | The new color. It must be specified in either RGB form (`#RRGGBB` or `#RGB`) or one of the [16 basic CSS color names](http://www.w3.org/TR/css3-color/#html4). |

## `setDescription(description)`

Sets the description for this label. The description may not be longer than 200 characters.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| description | `String` | The description for the label. |

## `setName(name)`

Changes the name of the Label. The name must be unique, non-empty, and may not be longer than 100 characters. Any leading or trailing white spaces will be trimmed.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| name | `String` | The new name. |