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.
1184 1185 1186 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1184 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
1176 1177 1178 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1176 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
1182 1183 1184 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1182 def min_age @min_age end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1189 1190 1191 1192 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1189 def update!(**args) @max_age = args[:max_age] if args.key?(:max_age) @min_age = args[:min_age] if args.key?(:min_age) end |