HTML Encoding violates character limits in ResponsiveSearchAds

16 views
Skip to first unread message

CFJ

unread,
Oct 10, 2018, 2:00:40 PM10/10/18
to AdWords API and Google Ads API Forum
For many years, we have HTML Encoded the various text elements (e.g. headline, description) of ads.  It's been many years, so I don't recall which characters caused issues, but I do recall that the HTML Encoding allowed characters to be uploaded through the API that otherwise caused errors.  

Today, while uploading new ResponsiveSearchAds, I got a StringLengthError thrown for one of the TextAsset elements in the descriptions element of the ResponsiveSearchAd.  In investigating, my string was 93 characters long because the "&" value was counted as 5 literal characters instead of 1 character ("&").  I was able to remove the HTML encoding for the ampersand and upload the ad without error.  

Although I was able to successfully upload this specific ad, I'm worried that removing the HTML encoding may eventually throw an error on whatever character or characters I had added HTML encoding to fix.  For other ad types, HTML encoding is not literally counted toward the character limits.  That in mind, I'm wondering if this is an oversight with respect to the back end validation of RSAs?  Thoughts from the API team?

Luis Xander Talag (AdWords API Team)

unread,
Oct 10, 2018, 6:45:05 PM10/10/18
to AdWords API and Google Ads API Forum
Hi,

To further investigate this, could you provide the complete SOAP request and response logs when you encountered the StringLengthError error that you mentioned when you uploaded the ResponsiveSearchAd? Please reply via Reply privately to author.

Thanks and regards,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages