Hi team,

I have shared the requested uncropped screenshot and logs by clicking *"Reply 
to author"* for your review.

Can you also please confirm whether it is possible to *create Lead Form 
Segments via the Google Ads API*? If yes, please share the documentation or 
sample code. If not, please confirm that as well.

Thank you.

On Tuesday, August 12, 2025 at 3:11:03 AM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Please find the below answers for your queries
>
>    1. To assist you further, could you please provide an uncropped UI 
>    screenshot by displaying the *Google Ads customer ID* 
>    
> <https://support.google.com/google-ads/answer/1704344?hl=en&sjid=10686818941406815727-AP>
>  
>    while creating the lead form segments manually through the Google Ads UI. 
>    2. Please note that the *UserListRuleItemInfo* 
>    
> <https://developers.google.com/google-ads/api/reference/rpc/v21/UserListRuleItemInfo>
>  
>    method uses the string for the *name* 
>    
> <https://developers.google.com/google-ads/api/reference/rpc/v21/UserListRuleItemInfo#:~:text=Fields-,name,-string>
>  
>    field, which represents the rule variable name, not the asset ID. This 
> name 
>    must match the corresponding key name fired by the pixel. Kindly use the 
>    below GAQL query to retrieve the lead form asset data from *asset* 
>    <https://developers.google.com/google-ads/api/fields/latest/asset> 
>    resource through the Google Ads API. 
>
>
> SELECT asset.lead_form_asset.business_name, 
> asset.lead_form_asset.description, asset.lead_form_asset.fields, 
> asset.lead_form_asset.headline, asset.lead_form_asset.privacy_policy_url, 
> asset.lead_form_asset.delivery_methods, 
> asset.lead_form_asset.custom_question_fields, asset.id FROM asset WHERE 
> asset.type = 'LEAD_FORM'
>
> You can use the* search* 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.googleAds/search?apix=true>
>  
> or* searchStream* 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.googleAds/searchStream?apix=true>
>  
> methods in making the API calls while retrieving the data. Additionally, 
> you can utilize the *Google Ads Query Builder* 
> <https://developers.google.com/google-ads/api/fields/v18/asset_query_builder> 
> and *Query Validator* 
> <https://developers.google.com/google-ads/api/fields/v17/query_validator> 
> to build and validate the queries for retrieving the data from the Google 
> Ads API.
> 3. To assist you further on this, please provide us with complete API logs 
> (*request* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
> and *response* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
> with *request-id* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  
> and *request header* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>  
> generated at your end. 
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides *Java* 
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>, 
> *.Net* 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>,
>  
> *PHP* 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>, 
> *Python* 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>,
>  
> *Ruby* 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging> 
> or *Perl* 
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
> to enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply* to this email.
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
> Feedback
> How was our support today? 
>
> [image: rating1] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001syhMPIAY>
>   
>   [image: rating2] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001syhMPIAY>
>   
>   [image: rating3] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001syhMPIAY>
>   
>   [image: rating4] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001syhMPIAY>
>   
>   [image: rating5] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001syhMPIAY>
> [2025-08-11 21:40:09Z GMT] This message is in relation to case 
> "ref:!00D1U01174p.!500Ht01syhMP:ref" (ADR-00329552)
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/c5077f16-1e60-401d-a73a-051cb76dde49n%40googlegroups.com.
  • RE... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
    • ... Amit Tomar
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to