Represents a negative keyword list.

### Methods:

| Member | Type | Description |
|---|---|---|
| [addNegativeKeyword(keywordText)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#addNegativeKeyword_keywordText) | `void` | Adds a [SharedNegativeKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sharednegativekeyword) to a negative keyword list. |
| [addNegativeKeywords(keywordTexts)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#addNegativeKeywords_keywordTexts) | `void` | Adds a list of [SharedNegativeKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sharednegativekeyword) objects to a negative keyword list. |
| [campaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#campaigns) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | Returns a selector of all search and display campaigns this negative keyword list has been applied to. |
| [getEntityType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `"NegativeKeywordList"`. |
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#getId) | `String` | Returns the ID of the negative keyword list. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#getName) | `String` | Returns the name of a negative keyword list. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#getResourceName) | `String` | Returns the resource name of the negative keyword list. |
| [negativeKeywords()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#negativeKeywords) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sharednegativekeywordselector` | Returns a selector of the shared negative keywords in a negative keyword list. |
| [setName(name)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#setName_name) | `void` | Sets the name of a negative keyword list. |
| [shoppingCampaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_negativekeywordlist#shoppingCampaigns) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingcampaignselector` | Returns a selector of all shopping campaigns this negative keyword list has been applied to. |

## `addNegativeKeyword(keywordText)`

Adds a [SharedNegativeKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sharednegativekeyword) to a negative keyword list. Match type for the new shared negative keyword is specified as follows:

- `negativeKeywordList.addNegativeKeyword("shoes")` - broad match.
- `negativeKeywordList.addNegativeKeyword("\"shoes\"")` - phrase match.
- `negativeKeywordList.addNegativeKeyword("[leather
  shoes]")` - exact match.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| keywordText | `String` | The text of the keyword. |

## `addNegativeKeywords(keywordTexts)`

Adds a list of [SharedNegativeKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sharednegativekeyword) objects to a negative keyword list. Match type for the new shared negative keywords are specified as follows:

- `negativeKeywordsList.addNegativeKeywords(["planes",
  "trains"])` - broad match.
- `negativeKeywordsList.addNegativeKeywords(["\"planes\"",
  "\"trains\""])` - phrase match.
- `negativeKeywordsList.addNegativeKeywords(["[model planes]",
  "[toy trains]")` - exact match.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| keywordTexts | `String[]` | An array of keyword texts. |

## `campaigns()`

Returns a selector of all search and display campaigns this negative keyword list has been applied to.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | A selector of all search and display campaigns this negative keyword list has been applied to. |

## `getEntityType()`

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

### Return values:

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

## `getId()`

Returns the ID of the negative keyword list.

### Return values:

| Type | Description |
|---|---|
| `String` | The ID of the negative keyword list. |

## `getName()`

Returns the name of a negative keyword list.

### Return values:

| Type | Description |
|---|---|
| `String` | The name of a negative keyword list. |

## `getResourceName()`

Returns the resource name of the negative keyword list.

### Return values:

| Type | Description |
|---|---|
| `String` | The resource name of the negative keyword list. |

## `negativeKeywords()`

Returns a selector of the shared negative keywords in a negative keyword list.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sharednegativekeywordselector` | A selector of the shared negative keywords in a negative keyword list. |

## `setName(name)`

Sets the name of a negative keyword list.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| name | `String` | The new name of the negative keyword list. |

## `shoppingCampaigns()`

Returns a selector of all shopping campaigns this negative keyword list has been applied to.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingcampaignselector` | A selector of all shopping campaigns this negative keyword list has been applied to. |