Class: Google::Apis::DisplayvideoV2::Consent
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::Consent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
User consent status.
Instance Attribute Summary collapse
-
#ad_personalization ⇒ String
Represents consent for ad personalization.
-
#ad_user_data ⇒ String
Represents consent for ad user data.
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.
3153 3154 3155 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_personalization ⇒ String
Represents consent for ad personalization.
Corresponds to the JSON property adPersonalization
3146 3147 3148 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3146 def ad_personalization @ad_personalization end |
#ad_user_data ⇒ String
Represents consent for ad user data.
Corresponds to the JSON property adUserData
3151 3152 3153 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3151 def ad_user_data @ad_user_data end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3158 3159 3160 3161 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3158 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 |