Hi Karl, thank you for reply.

Second question was related to 1st one for example I created lead form with 
this body:
params = {
"operations": [{
"create": {
"resourceName": "customers/XXXXX/assets/XXXXX",
"name": "My Lead Form #12345",
"type": "LEAD_FORM",
"final_urls": ["XXXXXX"],
"leadFormAsset": {
"businessName": "Cats LTD New",
"callToActionType": "LEARN_MORE",
"callToActionDescription": "Learn more",
"headline": "New Test Lead Form23",
"description": "New Test Lead Form description",
"privacyPolicyUrl": "XXXXX",
"fields": [
{
"inputType": "EMAIL"
},
{
"inputType": "FIRST_NAME"
},
{
"inputType": "LAST_NAME"
},
{
"inputType": "PHONE_NUMBER"
},
{
"inputType": "COUNTRY"
}
],
"postSubmitCallToActionType": "VISIT_SITE",
"desiredIntent": "LOW_INTENT",
"postSubmitHeadline": "Thank you!",
"postSubmitDescription": "Thanks for filling Lead Form",

}

}
}],
}
and I want to update lead form asset, by removing field :
{
"inputType": "COUNTRY"
}
and add field:
{
"inputType": "CITY"
},
So I do Update request:
params = {
"operations": [{
"updateMask": "name,leadFormAsset.businessName,leadFormAsset.fields",
"update": {
"resourceName": "customers/XXXXX/assets/XXXXX",
"name": "My Lead Form #12345",
"type": "LEAD_FORM",
"final_urls": ["XXXXXX"],
"leadFormAsset": {
"businessName": "Cats LTD New",
"callToActionType": "LEARN_MORE",
"callToActionDescription": "Learn more",
"headline": "New Test Lead Form23",
"description": "New Test Lead Form description",
"privacyPolicyUrl": "XXXXX",
"fields": [
{
"inputType": "EMAIL"
},
{
"inputType": "FIRST_NAME"
},
{
"inputType": "LAST_NAME"
},
{
"inputType": "PHONE_NUMBER"
},
{
"inputType": "CITY"
},
],
"postSubmitCallToActionType": "VISIT_SITE",
"desiredIntent": "LOW_INTENT",
"postSubmitHeadline": "Thank you!",
"postSubmitDescription": "Thanks for filling Lead Form",

}

}
}],
}

But it doesn't work, response is I can't update leadFormAsset.fields  
field. So is it possible to add/remove question(update "fields") in 
leadFormAsset  somehow ?
Thanks in advance.

On Thursday, September 15, 2022 at 9:56:38 PM UTC+3 adsapi wrote:

> Hi Anna,
>
> Thanks for following up. I'm a developer relations engineer jumping in to 
> help out here.
>
> For your first question, I believe it's not possible to update the 
> lead_form_asset.fields field on an Asset, but I am double-checking with 
> the team to make sure. It's possible our documentation may not be specific 
> enough on this point.
>
> And for your second questions, I'm not entirely sure what you mean, could 
> you please elaborate?
>
> Thanks,
> [image: Google Logo] 
> Ben Karl 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2dwfov:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5a7a94bb-4781-48a9-82ab-8b67e67880d8n%40googlegroups.com.
  • Up... Anna Lysak
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Anna Lysak
        • ... Anna Lysak
          • ... Anna Lysak
            • ... Anna Lysak
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to