Represents a Google Ads user list.

### Methods:

| Member | Type | Description |
|---|---|---|
| [close()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#close) | `void` | Close user list so it will no longer accumulate new members. |
| [excludedAdGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#excludedAdGroups) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroupselector` | Returns a selector of all the search and display ad groups negatively targeting this user list. |
| [excludedCampaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#excludedCampaigns) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | Returns a selector of all the search and display campaigns negatively targeting this user list. |
| [getDescription()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getDescription) | `String` | Returns the description of the user list. |
| [getEntityType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `"UserList"`. |
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getId) | `String` | Returns the ID of the user list. |
| [getMembershipLifeSpan()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getMembershipLifeSpan) | `long` | Returns the number of days a user's cookie stays on your list since its most recent addition to the list. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getName) | `String` | Returns the name of the user list. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getResourceName) | `String` | Returns the resource name of the user list. |
| [getSizeForDisplay()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getSizeForDisplay) | `long` | Estimated number of users in this user list, on the Google Display Network. |
| [getSizeForSearch()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getSizeForSearch) | `long` | Estimated number of users in this user list in the google.com domain. |
| [getSizeRangeForDisplay()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getSizeRangeForDisplay) | `String` | Size range in terms of number of users of the UserList for ads on Google Display Network. |
| [getSizeRangeForSearch()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getSizeRangeForSearch) | `String` | Size range in terms of number of users of the UserList, for Search ads. |
| [getType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#getType) | `String` | Type of this list: remarketing/logical/external remarketing. |
| [isClosed()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#isClosed) | `boolean` | Is the user list closed to new members being added. |
| [isEligibleForDisplay()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#isEligibleForDisplay) | `boolean` | Is the user list eligible for display campaigns/ad groups. |
| [isEligibleForSearch()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#isEligibleForSearch) | `boolean` | Is the user list eligible for search campaigns/ad groups. |
| [isOpen()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#isOpen) | `boolean` | Is the user list accruing new members. |
| [isReadOnly()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#isReadOnly) | `boolean` | Is the user list read only. |
| [open()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#open) | `void` | Open user list to accrue new members. |
| [setDescription(description)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#setDescription_description) | `void` | Sets the description of the user list. |
| [setMembershipLifeSpan(membershipLifeSpan)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#setMembershipLifeSpan_membershipLifeSpan) | `void` | Sets the number of days a user's cookie stays on your list since its most recent addition to the list. |
| [setName(name)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#setName_name) | `void` | Sets the name of the user list. |
| [targetedAdGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#targetedAdGroups) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroupselector` | Returns a selector of all the search and display ad groups targeting this user list. |
| [targetedCampaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_userlist#targetedCampaigns) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | Returns a selector of all the search and display campaigns targeting this user list. |

## `close()`

Close user list so it will no longer accumulate new members.

Returns nothing.

## `excludedAdGroups()`

Returns a selector of all the search and display ad groups negatively targeting this user list.

> [!CAUTION]
> **Caution:** Ad groups in removed campaigns and removed ad groups are not included.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroupselector` | The selector of excluded ad groups. |

## `excludedCampaigns()`

Returns a selector of all the search and display campaigns negatively targeting this user list.

> [!CAUTION]
> **Caution:** Removed campaigns are not included.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | The selector of excluded campaigns. |

## `getDescription()`

Returns the description of the user list.

### Return values:

| Type | Description |
|---|---|
| `String` | Description of the user list. |

## `getEntityType()`

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

### Return values:

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

## `getId()`

Returns the ID of the user list.

### Return values:

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

## `getMembershipLifeSpan()`

Returns the number of days a user's cookie stays on your list since its most recent addition to the list.

### Return values:

| Type | Description |
|---|---|
| `long` | Number of days a user is a member. |

## `getName()`

Returns the name of the user list.

### Return values:

| Type | Description |
|---|---|
| `String` | Name of the user list. |

## `getResourceName()`

Returns the resource name of the user list.

### Return values:

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

## `getSizeForDisplay()`

Estimated number of users in this user list, on the Google Display Network. This value is `null` if the number of users has not yet been determined.

### Return values:

| Type | Description |
|---|---|
| `long` | Number of members in the list. |

## `getSizeForSearch()`

Estimated number of users in this user list in the google.com domain. These are the users available for targeting in search campaigns. This value is `null` if the number of users has not yet been determined.

### Return values:

| Type | Description |
|---|---|
| `long` | Number of members in the list. |

## `getSizeRangeForDisplay()`

Size range in terms of number of users of the UserList for ads on Google Display Network.

### Return values:

| Type | Description |
|---|---|
| `String` | Size range of the list. |

## `getSizeRangeForSearch()`

Size range in terms of number of users of the UserList, for Search ads.

### Return values:

| Type | Description |
|---|---|
| `String` | Size range of the list. |

## `getType()`

Type of this list: remarketing/logical/external remarketing. Enumerations: UNKNOWN, REMARKETING, LOGICAL, EXTERNAL_REMARKETING, RULE_BASED, SIMILAR, CRM_BASED.

### Return values:

| Type | Description |
|---|---|
| `String` | Type type of user list. |

## `isClosed()`

Is the user list closed to new members being added.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if user list not adding more members, `false` if it is accruing new members. |

## `isEligibleForDisplay()`

Is the user list eligible for display campaigns/ad groups.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if user list is eligible for display, `false` if it is NOT eligible for display. |

## `isEligibleForSearch()`

Is the user list eligible for search campaigns/ad groups.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if user list is eligible for search, `false` if it is NOT eligible for search. |

## `isOpen()`

Is the user list accruing new members.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if user list accruing new members, `false` if it is NOT accruing new members. |

## `isReadOnly()`

Is the user list read only.

### Return values:

| Type | Description |
|---|---|
| `boolean` | `true` if user list is read only, `false` if it is editable. |

## `open()`

Open user list to accrue new members.

Returns nothing.

## `setDescription(description)`

Sets the description of the user list.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| description | `String` | The new description for the user list. |

## `setMembershipLifeSpan(membershipLifeSpan)`

Sets the number of days a user's cookie stays on your list since its most recent addition to the list. This field must be between 0 and 540 inclusive. However, for CRM based user lists, this field can be set to 10000 which means no expiration.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| membershipLifeSpan | `long` | Number of days a user is a member. |

## `setName(name)`

Sets the name of the user list.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| name | `String` | The new name for user list. |

## `targetedAdGroups()`

Returns a selector of all the search and display ad groups targeting this user list.

> [!CAUTION]
> **Caution:** Ad groups in removed campaigns and removed ad groups are not included.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroupselector` | The selector of targeted ad groups. |

## `targetedCampaigns()`

Returns a selector of all the search and display campaigns targeting this user list.

> [!CAUTION]
> **Caution:** Removed campaigns are not included.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaignselector` | The selector of targeted campaigns. |