# Google Ads Data Manager V1 Client - Class CreateUserListRequest (0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Ads Data Manager V1 Client class CreateUserListRequest.

Request message for CreateUserList.

Generated from protobuf message `google.ads.datamanager.v1.CreateUserListRequest`

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent account where this user list will be created. Format: accountTypes/{account_type}/accounts/{account} |
| `↳ user_list` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserList` Required. The user list to create. |
| `↳ validate_only` | `bool` Optional. If true, the request is validated but not executed. |

### getParent

Required. The parent account where this user list will be created.

Format: accountTypes/{account_type}/accounts/{account}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The parent account where this user list will be created.

Format: accountTypes/{account_type}/accounts/{account}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUserList

Required. The user list to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserList|null` |   |

### hasUserList

### clearUserList

### setUserList

Required. The user list to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserList` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValidateOnly

Optional. If true, the request is validated but not executed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. If true, the request is validated but not executed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent account where this user list will be created. Format: accountTypes/{account_type}/accounts/{account} Please see UserListServiceClient::accountName() for help formatting this field. |
| `userList` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserList` Required. The user list to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.CreateUserListRequest` |   |