Class: Google::Apis::DisplayvideoV4::Consent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb

Overview

User consent status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Consent

Returns a new instance of Consent.



4843
4844
4845
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4843

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

Instance Attribute Details

#ad_personalizationString

Represents consent for ad personalization. Corresponds to the JSON property adPersonalization

Returns:

  • (String)


4836
4837
4838
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4836

def ad_personalization
  @ad_personalization
end

#ad_user_dataString

Represents consent for ad user data. Corresponds to the JSON property adUserData

Returns:

  • (String)


4841
4842
4843
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4841

def ad_user_data
  @ad_user_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4848
4849
4850
4851
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4848

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