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
. - To list multiple product_type entries, separate them with a comma. For instance:
Home & Garden > Furniture > Living Room, Home & Garden > Popular Living Room Furniture
.
Don´t
- Refrain from including categories such as "Apple," "Sale," or "Black Friday 2023."
- If using a CSV file, do not use comma
,
within a single product_type entry. They will split the entry. For instance,Home, Garden > Furniture > Living Room
will become two separate entries:Home
andGarden > Furniture > Living Room
. - 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
<g:product_type><![CDATA[Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skates]]></g:product_type>
<g:product_type><![CDATA[type 1]]></g:product_type>
<g:product_type><![CDATA[type 2]]></g:product_type>
<g:product_type><![CDATA[computer_accessories]]></g:product_type>
Valid Value
product_type
Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skates
Click to show more valid CSV examples
product_type
Sporting Goods > Athletics > Figure Skating & Hockey > Ice Skates
product_type
"type 1,type 2"
product_type
computer_accessories
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[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (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