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.
14198 14199 14200 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14198 def initialize(**args) update!(**args) end |
Instance Attribute Details
#age_range ⇒ String
Optional. The age range to target.
Corresponds to the JSON property ageRange
14180 14181 14182 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14180 def age_range @age_range end |
#devices ⇒ Array<String>
Optional. The devices to target.
Corresponds to the JSON property devices
14185 14186 14187 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14185 def devices @devices end |
#genders ⇒ Array<String>
Optional. The gender options to target.
Corresponds to the JSON property genders
14190 14191 14192 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14190 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
14196 14197 14198 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14196 def plannable_location_ids @plannable_location_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14203 14204 14205 14206 14207 14208 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14203 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 |