categories

Note. This element is used only in the YML format.

The categories parent element in the YML format contains the list of store categories. Each category is described in a separate category element.

  • Category name.

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 id attribute.

  • The parent category ID in the parentId attribute (if the category is a child category). If parentId isn'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.

    Correct
    Электроника/Фото/Объективы
    Incorrect
    Electronics/Photo
  • The list of categories should reflect the names of real product categories and not contain “placeholders” that only the store itself can understand.

    Correct
    Online store products/Clothing
    Incorrect
    Online store products/Warehouse_1
  • The categories that the customer drills down through in order to reach the product should be logical.

    Correct
    Товары для детей/Одежда/Детские комбинезоны
    Incorrect
    Clothing/Women's clothing/Outerwear/Dresses

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:

Attention. The name of the same category may differ slightly on the Yandex.Market website and in the category tree (for example, “Уход за лицом (Facial care)” and “Средства по уходу за лицом (Face care products)”).

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.