Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAgeSegment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_ageFixnum

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

Returns:

  • (Fixnum)


1116
1117
1118
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1116

def max_age
  @max_age
end

#min_ageFixnum

Minimum age to include. A minimum age must be specified and must be at least

  1. Allowed values are 18, 25, 35, 45, 55, and 65. Corresponds to the JSON property minAge

Returns:

  • (Fixnum)


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