Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonGenderDimension

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

Dimension specifying users by their gender.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonGenderDimension

Returns a new instance of GoogleAdsSearchads360V23CommonGenderDimension.



5222
5223
5224
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5222

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

Instance Attribute Details

#gendersArray<String>

Included gender demographic segments. Corresponds to the JSON property genders

Returns:

  • (Array<String>)


5214
5215
5216
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5214

def genders
  @genders
end

#include_undeterminedBoolean Also known as: include_undetermined?

Include users whose gender is not determined. Corresponds to the JSON property includeUndetermined

Returns:

  • (Boolean)


5219
5220
5221
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5219

def include_undetermined
  @include_undetermined
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5227
5228
5229
5230
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5227

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