Class: Google::Apis::DatamanagerV1::Consent
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::Consent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamanager_v1/classes.rb,
lib/google/apis/datamanager_v1/representations.rb,
lib/google/apis/datamanager_v1/representations.rb
Overview
Digital Markets Act (DMA) consent settings for the user.
Instance Attribute Summary collapse
-
#ad_personalization ⇒ String
Optional.
-
#ad_user_data ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Consent
constructor
A new instance of Consent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Consent
Returns a new instance of Consent.
297 298 299 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_personalization ⇒ String
Optional. Represents if the user consents to ad personalization.
Corresponds to the JSON property adPersonalization
290 291 292 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 290 def ad_personalization @ad_personalization end |
#ad_user_data ⇒ String
Optional. Represents if the user consents to ad user data.
Corresponds to the JSON property adUserData
295 296 297 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 295 def ad_user_data @ad_user_data end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
302 303 304 305 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 302 def update!(**args) @ad_personalization = args[:ad_personalization] if args.key?(:ad_personalization) @ad_user_data = args[:ad_user_data] if args.key?(:ad_user_data) end |