ValueError: Value out of range: x in listing_id_filter

21 views
Skip to first unread message

KHMob

unread,
May 21, 2025, 4:28:29 AM5/21/25
to Google Ads API and AdWords API Forum
I'm trying to create a BusinessProfileLocationSet with listing_id_filters populated. However, I'm running into a peculiar problem using Python. Apparently our ID for the location names are out of range. How can we then filter certain businesses based on this if the location name IDs have become too large to create filters?

Cheers,
Kasper

Google Ads API Forum Advisor

unread,
May 21, 2025, 8:32:21 AM5/21/25
to kas...@mobal.io, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

Upon reviewing your concern, I  understand that you are trying to create a BusinessProfileLocationSet with listing_id_filters populated and are encountering some 'Value Error'. In order to assist you further, kindly let us know whether the error you are encountering is related to the Python client library or it is a Google Ads API related error. 

If the concern is related to the Python client library, please raise a request by clicking the new issue button present in this link as the concerned team is best suited to assist you on this request. But, if the concern is related to Google Ads API, then kindly let us know the exact error you have encountered and provide the complete API logs (request and response with request-id and request header) generated on your end without redacting any information. If you haven't enabled the logging yet, I would request you to enable logging for the Python client library. You can refer to the guide Python 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,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-05-21 12:31:34Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qXlV5:ref" (ADR-00307347)



Reply all
Reply to author
Forward
0 new messages