Skip to main content

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.

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 and Garden > 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.

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>

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.

<g:product_type><![CDATA[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 751 characters value)]]></g:product_type>

Properties

PropertyValueDescription
Data TypestringClosest data type in code
NestedFalseDefines if this field consists of one or more sub-fields
Case SensitiveFalseIf small or large letters matter for this field
RepeatableTrueIf you can supply multiple items of this field (it´s a list)
Repeatable limit100If 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

References