AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Ads
1.7K members online now
1.7K members online now
For questions related to Google Shopping and Merchant Center. Learn to optimize your Shopping ads
Guide Me
star_border
Reply

Product Feed Specification - Restriction on id attributes

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

On https://support.google.com/merchants/answer/188494?vid=1-635761701146501002-2788016822 under Basic Product Information in 'id [id] - An identifier of the item' section there are following restricted type unicode characters mentioned :

    • control characters (except carriage return 0x0D)
    • function characters
    • private area characters
    • surrogate pairs
    • non assigned code points (in particular any code point larger than 0x10FFFF)

Can you explain these with some examples and give range of these characters ? 

Also if you can suggest some libraries(for java) which can help me in filtering these type of characters ?

 

Thanks

 

2 Expert replyverified_user

Re: Product Feed Specification - Restriction on id attributes

Top Contributor
# 2
Top Contributor
Hi First,
Your best bet is to simply stick to the integer data type. Depending on the volume of listings, 32bit may not be enough but a long or big certainly will be. Might be worth noting that a GUID will not be any use here either.

Re: Product Feed Specification - Restriction on id attributes

[ Edited ]
Top Contributor
# 3
Top Contributor


a best-practice is to simply use plain us-ascii text,
with a mix of letters and numbers, -- in the ranges
of 30-39 and 61-7a (hex) or [0-9a-z] -- especially if
a spreadsheet is being used; e.g.
abc123uk

id must be unique per item across all data (feeds)
and should never change once assigned to an item.

see also
http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#replaceAll%28java.lang.String,%20java...
http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html