Class: Google::Apis::DisplayvideoV1::GenderAssignedTargetingOptionDetails

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

Details for assigned gender targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_GENDER.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenderAssignedTargetingOptionDetails

Returns a new instance of GenderAssignedTargetingOptionDetails.



5336
5337
5338
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 5336

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

Instance Attribute Details

#genderString

The gender of the audience. Output only in v1. Required in v2. Corresponds to the JSON property gender

Returns:

  • (String)


5328
5329
5330
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 5328

def gender
  @gender
end

#targeting_option_idString

Required. The targeting_option_id of a TargetingOption of type TARGETING_TYPE_GENDER. Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


5334
5335
5336
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 5334

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5341
5342
5343
5344
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 5341

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