Google Ads Data Manager V1 Client - Class Consent (0.6.0)

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 \ V1

Methods

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.

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

Returns
Type Description
int Enum of type ConsentStatus.

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

Parameter
Name Description
var int

Enum of type ConsentStatus.

Returns
Type Description
$this

Optional. Represents if the user consents to ad personalization.

Returns
Type Description
int Enum of type ConsentStatus.

Optional. Represents if the user consents to ad personalization.

Parameter
Name Description
var int

Enum of type ConsentStatus.

Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年07月31日 UTC.