Class: Google::Apis::DisplayvideoV1::CategoryAssignedTargetingOptionDetails

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

Overview

Assigned category targeting option details. This will be populated in the category_details field when targeting_type is TARGETING_TYPE_CATEGORY.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CategoryAssignedTargetingOptionDetails

Returns a new instance of CategoryAssignedTargetingOptionDetails.



1544
1545
1546
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1544

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

Instance Attribute Details

#display_nameString

Output only. The display name of the category. Corresponds to the JSON property displayName

Returns:

  • (String)


1529
1530
1531
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1529

def display_name
  @display_name
end

#negativeBoolean Also known as: negative?

Indicates if this option is being negatively targeted. Corresponds to the JSON property negative

Returns:

  • (Boolean)


1534
1535
1536
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1534

def negative
  @negative
end

#targeting_option_idString

Required. The targeting_option_id field when targeting_type is TARGETING_TYPE_CATEGORY. Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


1542
1543
1544
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1542

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1549
1550
1551
1552
1553
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1549

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @negative = args[:negative] if args.key?(:negative)
  @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id)
end