categories parent element in the YML format contains the list of store categories. Each category is described in a separate
YML format example
<categories> <category id="1">Книги</category> <category id="2" parentId="1">Детективы</category> <category id="3" parentId="1">Боевики</category> <category id="4">Видео</category> <category id="5" parentId="4">Комедии</category> <category id="6">Принтеры</category> <category id="7">Оргтехника</category> </categories>
Enter the following:
The category ID in the
The parent category ID in the
parentIdattribute (if the category is a child category). If
parentIdisn't specified, the category is considered a root category.
How to use this element
Categories from the price list are used to assign a product to a respective Yandex.Market category. This takes into account not only the offer's final category, but also all the parent categories. In order to ensure that your offers fall into the right categories, please observe the following rules:
The final category that the product is classified under must match the product.
The list of categories should reflect the names of real product categories and not contain “placeholders” that only the store itself can understand.
Online store products/Clothing
Online store products/Warehouse_1
The categories that the customer drills down through in order to reach the product should be logical.
Товары для детей/Одежда/Детские комбинезоны
If there are no categories of your own
If your store doesn't have its own list of categories or you aren't sure how to specify a category, you can use:
Names from the Yandex.Market category tree. The file is updated daily.
Category names from the Yandex.Market website.
Requirements for identifiers
Category and subcategory identifiers must be unique.
All identifiers must be positive integers.
An identifier cannot be equal to 0.
- The maximum length of an identifier is 18 characters.