Hi Google team,
could you please help me to resolve issue. I create lead from asset using REST API :
params = {
"operations": [{
"create": {
"name": "My Lead Form #1234",
"type": "LEAD_FORM",
...
"leadFormAsset": {
...
"customQuestionFields": [
{
"customQuestionText": "Do you own a car?",
"singleChoiceAnswers": {"answers": ["good", "bad", "normal"]}
},
{
"customQuestionText": "Your phonenumber?",
"singleChoiceAnswers": {"answers": ["good", "bad", "normal"]}
}],
...
}
}
}],
}
Issue is with CustomQuestionsFields, when I try to post the data, I receive error:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"fieldError": "INVALID_VALUE"
},
"message": "The field's value is invalid.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "lead_form_asset"
},
{
"fieldName": "custom_question_fields",
"index": 0
},
{
"fieldName": "custom_question_text"
}
]
}
},
{
"errorCode": {
"fieldError": "INVALID_VALUE"
},
"message": "The field's value is invalid.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "lead_form_asset"
},
{
"fieldName": "custom_question_fields",
"index": 1
},
{
"fieldName": "custom_question_text"
}
]
}
}
],
"requestId": "N-OnfIPCBTNTzC2N4etRtg"
}
]
}
}
Could you please help me ?
Thanks.