id
Required Field
This field is required and must not be omitted
Description
Identifier should be unique for every product and not be changed or re-used for other products, a good practice is to use SKUs as ids since they are unique.
Validation Rules
- Length must be between
1-36
- Must be unique
- Only ascii characters
- Trailing whitespace characters are not allowed
- Disallowed characters are
!
+
@
#
$
%
^
&
*
<
>
;
:
Best Practices
Do
- Use SKUs as ids
- You can follow Google format but in some rare cases we might reject some offers due to stricter validation.
Don't
- Re-use, if re-used, your product might end up indexed to the wrong Prisjakt product
- Change over time, if changed, the product will need to be indexed again
- Don't add whitespace characters (" ", "\n", "t") at the beginning or the end of the id field
Example Values
Here are examples of how a valid id value should look like in XML and CSV (with header) respectively.
- XML
- CSV
Valid Value
<g:id><![CDATA[213888]]></g:id>
Click to show more valid XML examples
<g:id><![CDATA[213888]]></g:id>
<g:id><![CDATA[aBCd1123]]></g:id>
<g:id><![CDATA[09az]]></g:id>
<g:id><![CDATA[a b./)(]]></g:id>
Valid Value
id
213888
Click to show more valid CSV examples
id
213888
id
aBCd1123
id
09az
id
a b./)(
Error Codes
Below you will find possible error codes generated when validating this field alongside with an example in XML and CSV that would trigger the code. Please refer to the validation rules to understand the cause.
- XML
- CSV
<g:id><![CDATA[!+@#$%^&*]]></g:id>
<g:id><![CDATA[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]]></g:id>
<g:id><![CDATA[ ]]></g:id>
<g:id></g:id>
<g:id><![CDATA[ąśπœę©]]></g:id>
<g:id><![CDATA[a ]]></g:id>
<g:id><![CDATA[ a]]></g:id>
danger
danger
danger
danger
danger
danger
Properties
Property | Value | Description |
---|---|---|
Data Type | string | Closest data type in code |
Nested | False | Defines if this field consists of one or more sub-fields |
Case Sensitive | True | If small or large letters matter for this field |
Repeatable | False | If you can supply multiple items of this field (it´s a list) |
Repeatable limit | 0 | If a list, this specifices the max number of items |
Changelog
📅 2024-03-30
Added
Initial definition