Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonLeadFormSingleChoiceAnswers

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

Defines possible answers for a single choice question, usually presented as a single-choice drop-down list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonLeadFormSingleChoiceAnswers

Returns a new instance of GoogleAdsSearchads360V23CommonLeadFormSingleChoiceAnswers.



6453
6454
6455
# File 'lib/google/apis/searchads360_v23/classes.rb', line 6453

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

Instance Attribute Details

#answersArray<String>

List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed. Corresponds to the JSON property answers

Returns:

  • (Array<String>)


6451
6452
6453
# File 'lib/google/apis/searchads360_v23/classes.rb', line 6451

def answers
  @answers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6458
6459
6460
# File 'lib/google/apis/searchads360_v23/classes.rb', line 6458

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