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

Composite data holding identifiers and associated data for a user.

At least one of `user_data` or `ip_data` is required.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user_data` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.UserData` Optional. User-provided data that identifies the user. |
| `↳ ip_data` | `array<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IpData>` Optional. IP address data representing customer interaction used to build the audience. |

### getUserData

Optional. User-provided data that identifies the user.

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

### hasUserData

### clearUserData

### setUserData

Optional. User-provided data that identifies the user.

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

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

### getIpData

Optional. IP address data representing customer interaction used to build
the audience.

| **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.IpData>` |   |

### setIpData

Optional. IP address data representing customer interaction used to build
the audience.

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

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