Reference documentation and code samples for the Google Ads Data Manager V1 Client class Consent.
Digital Markets Act (DMA) consent settings for the user.
Generated from protobuf message google.ads.datamanager.v1.Consent
Namespace
Google \ Ads \ DataManager \ V1Methods
__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. |
setAdUserData
Optional. Represents if the user consents to ad user data.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ConsentStatus. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAdPersonalization
Optional. Represents if the user consents to ad personalization.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ConsentStatus. |
setAdPersonalization
Optional. Represents if the user consents to ad personalization.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ConsentStatus. |
| Returns | |
|---|---|
| Type | Description |
$this |
|