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.



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

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)


14125
14126
14127
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14125

def age_range
  @age_range
end

#devicesArray<String>

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

Returns:

  • (Array<String>)


14130
14131
14132
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14130

def devices
  @devices
end

#gendersArray<String>

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

Returns:

  • (Array<String>)


14135
14136
14137
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14135

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


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