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

Data that identifies the user. At least one identifier is required.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user_identifiers` | `array<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserIdentifier>` Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 `userIdentifiers` can be provided in a single [AudienceMember](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.AudienceMember) or [Event](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Event). |

### getUserIdentifiers

Required. The identifiers for the user. It's possible to provide multiple
instances of the same type of data (for example, multiple email addresses).

To increase the likelihood of a match, provide as many identifiers as
possible. At most 10 `userIdentifiers` can be provided in a single
[AudienceMember](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.AudienceMember) or
[Event](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Event).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserIdentifier>` |   |

### setUserIdentifiers

Required. The identifiers for the user. It's possible to provide multiple
instances of the same type of data (for example, multiple email addresses).

To increase the likelihood of a match, provide as many identifiers as
possible. At most 10 `userIdentifiers` can be provided in a single
[AudienceMember](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.AudienceMember) or
[Event](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Event).

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

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