product_type
Optional Field
This field is optional, but omitting it may leave out functionality on Prisjakt for your offers
Description
It's strongly recommended to use this attribute if google_product_category
is not present.
Effects When Used
- This field is used for product categorization.
Related Fields
Validation Rules
- Length must be between
1-750
characters
Best Practices
Do
- Include the complete category hierarchy, such as
Home & Garden > Furniture > Living Room
. Categories should be separated by>
,|
or/
. - Product should only exist in one category. If the product fits in multiple categories, choose the most relevant one.
Don´t
- Refrain from including categories such as "Apple," "Sale," or "Black Friday 2023."
- When using XML, always use a distinct <product_type> tag for each category instead of combining them within one tag.
Example Values
Here are examples of how a valid product_type value should look like in XML and CSV (with header) respectively.
- XML
- CSV
Valid Value
<g:product_type><![CDATA[Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skates]]></g:product_type>
Click to show more valid XML examples
Valid Value
product_type
Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skates
Click to show more valid CSV examples
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:product_type><![CDATA[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 751 characters value)
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 | False | If small or large letters matter for this field |
Repeatable | True | If you can supply multiple items of this field (it´s a list) |
Repeatable limit | 100 | If a list, this specifices the max number of items |
Changelog
📅 2023-08-21
Added
Change length limit for product_type to 750 characters
📅 2023-02-07
Added
Remove requirement on product_type
if google_product_category
is not present
📅 2022-12-07
Added
Initial definition