LeadFormField
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[null,null,["Last updated 2025-08-07 UTC."],[],[],null,["# LeadFormField\n\nOne input field instance within a form.\n\n| Fields ||\n|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `input_type` | [LeadFormFieldUserInputType](/google-ads/api/reference/rpc/v20/LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType) Describes the input type, which may be a predefined type such as \"full name\" or a pre-vetted question like \"What kind of vehicle do you have?\". |\n| Union field ### `answers` `answers`. Defines answer configuration that this form field accepts. If oneof is not set, this is a free-text answer. `answers` can be only one of the following: ||\n| ### `single_choice_answers` | [LeadFormSingleChoiceAnswers](/google-ads/api/reference/rpc/v20/LeadFormSingleChoiceAnswers) Answer configuration for a single choice question. Can be set only for pre-vetted question fields. Minimum of 2 answers required and maximum of 12 allowed. |\n| ### `has_location_answer` | `bool` Answer configuration for location question. If true, campaign/account level location data (state, city, business name etc) will be rendered on the Lead Form. Starting V13.1, has_location_answer can only be set for \"What is your preferred dealership?\" question, for advertisers with Location Assets setup at campaign/account level. |"]]