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.



6393
6394
6395
# File 'lib/google/apis/searchads360_v23/classes.rb', line 6393

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>)


6391
6392
6393
# File 'lib/google/apis/searchads360_v23/classes.rb', line 6391

def answers
  @answers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6398
6399
6400
# File 'lib/google/apis/searchads360_v23/classes.rb', line 6398

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