StringRuleItem length for AdwordsUserListService

26 views
Skip to first unread message

Lóránd Balog

unread,
Apr 26, 2019, 7:12:46 AM4/26/19
to AdWords API and Google Ads API Forum
Hi Google Team!

I would like to ask you about the maximum length of a StringRuleItem connected to UserLists (https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.StringRuleItem)

I got StringLengthError.TOO_LONG exception, could you please tell me what is the maximum length of a StringRuleItem value? 

Currently the maximum length is 94 for me. It would be great to know the limitations. 

Other question, what should I do when I would like to pass 94 characters length string, and got this TOO_LONG exception? 



Thanks,
Lorand

googleadsapi...@google.com

unread,
Apr 26, 2019, 3:02:16 PM4/26/19
to lor...@gmail.com, AdWords API and Google Ads API Forum
Hi Lorand, 

Could you please share the API SOAP logs for the error that you're receiving to check this further? You can reply back via Reply privately to author option.

Regards,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Lóránd Balog

unread,
Apr 28, 2019, 6:38:31 AM4/28/19
to AdWords API and Google Ads API Forum
Hi Bharani,

How can I do that through C# AdWords Library?

googleadsapi...@google.com

unread,
Apr 29, 2019, 10:16:51 AM4/29/19
to lor...@gmail.com, AdWords API and Google Ads API Forum
Hi Lóránd, 

If you're referring to the maximum length of the StringRuleItem key, please note that this should consist of UTF8 code that is greater than 127 and consist of US-ascii letters or digits or underscore or UTF8 code that is greater than 127. There are no specific limits on the StringRuleItem value. If you're still having an issue, please check this guide on how to enable logging for the .NET client library. You can share the details privately via Reply privately to author option.

Regards,
Bharani, Google Ads API Team
Reply all
Reply to author
Forward
0 new messages