Class: Google::Apis::DisplayvideoV1::SensitiveCategoryAssignedTargetingOptionDetails

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

Overview

Targeting details for sensitive category. This will be populated in the details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SensitiveCategoryAssignedTargetingOptionDetails

Returns a new instance of SensitiveCategoryAssignedTargetingOptionDetails.



9431
9432
9433
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9431

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

Instance Attribute Details

#excluded_targeting_option_idString

Required. ID of the sensitive category to be EXCLUDED. Corresponds to the JSON property excludedTargetingOptionId

Returns:

  • (String)


9424
9425
9426
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9424

def excluded_targeting_option_id
  @excluded_targeting_option_id
end

#sensitive_categoryString

An enum for the DV360 Sensitive category content classifier. Output only in v1. Corresponds to the JSON property sensitiveCategory

Returns:

  • (String)


9429
9430
9431
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9429

def sensitive_category
  @sensitive_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9436
9437
9438
9439
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9436

def update!(**args)
  @excluded_targeting_option_id = args[:excluded_targeting_option_id] if args.key?(:excluded_targeting_option_id)
  @sensitive_category = args[:sensitive_category] if args.key?(:sensitive_category)
end