NAME_ALREADY_USED error when trying to recreate a segment with Google Ads API

37 views
Skip to first unread message

Yun Sun

unread,
Mar 27, 2023, 2:52:31 AM3/27/23
to Google Ads API and AdWords API Forum
Hi team,

I have an issue with Google Ads API (Python SDK) that is very similar to https://groups.google.com/g/adwords-api/c/1LWazdeLJNE.

Below is how the issue comes:
1. I use Python SDK to create a new audience segment (eg, "my_test11")
2. Add some users into this segment
3. Delete this segment with UserListService.mutate_user_lists
4. Search by search_stream method and in Portal, no such name found
5. Recreate a new segment with the same name ("my_test11") with SDK, then I got following error:
企业微信截图_16798996821648.png

Could you help investigate the reason and how should we resolve this issue? 

Thanks,
Sun

Google Ads API Forum Advisor

unread,
Mar 27, 2023, 8:58:46 AM3/27/23
to adwor...@googlegroups.com
Hi Sun,

Thank you for raising this concern to the Google Ads API Forum. We hope that today is going well for you!

To take a closer look at your encountered error, you may please share with us the complete API logs in the format of request and response logs with requestID that were generated on your end. If you haven't yet, logging can be enabled by referring to this guide and using the DEBUG log setting. This information will help our team to better investigate this and provide guidance accordingly.

For security purposes, you can provide it via the Reply privately to the author option. If this option is not available, send it instead to this email address googleadsa...@google.com.

Best regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kBpum:ref
Reply all
Reply to author
Forward
0 new messages