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.



14160
14161
14162
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14160

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)


14142
14143
14144
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14142

def age_range
  @age_range
end

#devicesArray<String>

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

Returns:

  • (Array<String>)


14147
14148
14149
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14147

def devices
  @devices
end

#gendersArray<String>

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

Returns:

  • (Array<String>)


14152
14153
14154
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14152

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>)


14158
14159
14160
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14158

def plannable_location_ids
  @plannable_location_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14165
14166
14167
14168
14169
14170
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14165

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