Class: Google::Apis::DisplayvideoV4::Targeting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_rangeString

Optional. The age range to target. Corresponds to the JSON property ageRange

Returns:

  • (String)


14180
14181
14182
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14180

def age_range
  @age_range
end

#devicesArray<String>

Optional. The devices to target. Corresponds to the JSON property devices

Returns:

  • (Array<String>)


14185
14186
14187
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14185

def devices
  @devices
end

#gendersArray<String>

Optional. The gender options to target. Corresponds to the JSON property genders

Returns:

  • (Array<String>)


14190
14191
14192
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14190

def genders
  @genders
end

#plannable_location_idsArray<Fixnum>

Required. IDs of plannable locations to target. Plannable locations can be retrieved using the RetrievePlannableLocations method. Corresponds to the JSON property plannableLocationIds

Returns:

  • (Array<Fixnum>)


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