Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAgeSegment
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAgeSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
Contiguous age range.
Instance Attribute Summary collapse
-
#max_age ⇒ Fixnum
Maximum age to include.
-
#min_age ⇒ Fixnum
Minimum age to include.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonAgeSegment
constructor
A new instance of GoogleAdsSearchads360V23CommonAgeSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonAgeSegment
Returns a new instance of GoogleAdsSearchads360V23CommonAgeSegment.
1124 1125 1126 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_age ⇒ Fixnum
Maximum age to include. A maximum age need not be specified. If specified,
max_age must be greater than min_age, and allowed values are 24, 34, 44, 54,
and 64.
Corresponds to the JSON property maxAge
1116 1117 1118 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1116 def max_age @max_age end |
#min_age ⇒ Fixnum
Minimum age to include. A minimum age must be specified and must be at least
- Allowed values are 18, 25, 35, 45, 55, and 65.
Corresponds to the JSON property
minAge
1122 1123 1124 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1122 def min_age @min_age end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1129 1130 1131 1132 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1129 def update!(**args) @max_age = args[:max_age] if args.key?(:max_age) @min_age = args[:min_age] if args.key?(:min_age) end |