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

[Digital Markets Act
(DMA)](https://digital-markets-act.ec.europa.eu/index_en) consent settings
for the user.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ad_user_data` | `int` Optional. Represents if the user consents to ad user data. |
| `↳ ad_personalization` | `int` Optional. Represents if the user consents to ad personalization. |

### getAdUserData

Optional. Represents if the user consents to ad user data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ConsentStatus](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ConsentStatus). |

### setAdUserData

Optional. Represents if the user consents to ad user data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ConsentStatus](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ConsentStatus). |

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

### getAdPersonalization

Optional. Represents if the user consents to ad personalization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ConsentStatus](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ConsentStatus). |

### setAdPersonalization

Optional. Represents if the user consents to ad personalization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ConsentStatus](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ConsentStatus). |

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