Class: Google::Apis::DisplayvideoV1::AgeRangeAssignedTargetingOptionDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb

Overview

Represents a targetable age range. This will be populated in the details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_AGE_RANGE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AgeRangeAssignedTargetingOptionDetails

Returns a new instance of AgeRangeAssignedTargetingOptionDetails.



420
421
422
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 420

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#age_rangeString

Output only. The age range of an audience. We only support targeting a continuous age range of an audience. Thus, the age range represented in this field can be 1) targeted solely, or, 2) part of a larger continuous age range. The reach of a continuous age range targeting can be expanded by also targeting an audience of an unknown age. Corresponds to the JSON property ageRange

Returns:

  • (String)


412
413
414
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 412

def age_range
  @age_range
end

#targeting_option_idString

Required. The targeting_option_id of a TargetingOption of type TARGETING_TYPE_AGE_RANGE. Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


418
419
420
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 418

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



425
426
427
428
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 425

def update!(**args)
  @age_range = args[:age_range] if args.key?(:age_range)
  @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id)
end