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.



297
298
299
# File 'lib/google/apis/datamanager_v1/classes.rb', line 297

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)


290
291
292
# File 'lib/google/apis/datamanager_v1/classes.rb', line 290

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)


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