Class: Google::Apis::DatamanagerV1::Consent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Consent

Returns a new instance of Consent.



313
314
315
# File 'lib/google/apis/datamanager_v1/classes.rb', line 313

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ad_personalizationString

Optional. Represents if the user consents to ad personalization. Corresponds to the JSON property adPersonalization

Returns:

  • (String)


306
307
308
# File 'lib/google/apis/datamanager_v1/classes.rb', line 306

def ad_personalization
  @ad_personalization
end

#ad_user_dataString

Optional. Represents if the user consents to ad user data. Corresponds to the JSON property adUserData

Returns:

  • (String)


311
312
313
# File 'lib/google/apis/datamanager_v1/classes.rb', line 311

def ad_user_data
  @ad_user_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



318
319
320
321
# File 'lib/google/apis/datamanager_v1/classes.rb', line 318

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