# Google Ads Data Manager V1 Client - Class CreateUserListDirectLicenseRequest (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 CreateUserListDirectLicenseRequest.

Request to create a
[UserListDirectLicense](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserListDirectLicense)
resource.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The account that owns the user list being licensed. Should be in the format accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID} |
| `↳ user_list_direct_license` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserListDirectLicense` Required. The user list direct license to create. |

### getParent

Required. The account that owns the user list being licensed. Should be in
the format accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}

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

### setParent

Required. The account that owns the user list being licensed. Should be in
the format accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}

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

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

### getUserListDirectLicense

Required. The user list direct license to create.

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

### hasUserListDirectLicense

### clearUserListDirectLicense

### setUserListDirectLicense

Required. The user list direct license to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The account that owns the user list being licensed. Should be in the format accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID} Please see UserListDirectLicenseServiceClient::accountName() for help formatting this field. |
| `userListDirectLicense` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserListDirectLicense` Required. The user list direct license to create. |

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