Class: Google::Apis::DisplayvideoV4::Targeting
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::Targeting
- 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
Targeting settings for a planned campaign.
Instance Attribute Summary collapse
-
#age_range ⇒ String
Optional.
-
#devices ⇒ Array<String>
Optional.
-
#genders ⇒ Array<String>
Optional.
-
#plannable_location_ids ⇒ Array<Fixnum>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Targeting
constructor
A new instance of Targeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Targeting
Returns a new instance of Targeting.
14143 14144 14145 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#age_range ⇒ String
Optional. The age range to target.
Corresponds to the JSON property ageRange
14125 14126 14127 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14125 def age_range @age_range end |
#devices ⇒ Array<String>
Optional. The devices to target.
Corresponds to the JSON property devices
14130 14131 14132 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14130 def devices @devices end |
#genders ⇒ Array<String>
Optional. The gender options to target.
Corresponds to the JSON property genders
14135 14136 14137 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14135 def genders @genders end |
#plannable_location_ids ⇒ Array<Fixnum>
Required. IDs of plannable locations to target. Plannable locations can be
retrieved using the RetrievePlannableLocations method.
Corresponds to the JSON property plannableLocationIds
14141 14142 14143 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14141 def plannable_location_ids @plannable_location_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14148 14149 14150 14151 14152 14153 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14148 def update!(**args) @age_range = args[:age_range] if args.key?(:age_range) @devices = args[:devices] if args.key?(:devices) @genders = args[:genders] if args.key?(:genders) @plannable_location_ids = args[:plannable_location_ids] if args.key?(:plannable_location_ids) end |