In an XML feed, it is possible to process categories concisely or extensively as product fields.
Concise categories
If you want to use only the category id in Spotler Activate, you can process the following within each item in the feed:
<category_ids>
<category_id>Pants</category_id>
<category_id>Blue</category_id>
</category_ids>
OR
<category_ids>Blue</category_ids>
<category_ids>Pants</category_ids>
The category id in the ViewCategory event needs to match the category id in Spotler Activate!
In the example above, trousers and blue must be forwarded as category_ids at ViewCategory to be forwarded.
Extended categories
If you want to use more information about categories in Spotler Activate, you can process the following within the feed (not at the item level). Here, the id within category refers to the ID you specify for an item at category_id.
<categories>
<category>
<id>1</id>
<title>Pants</title>
<description>Nice Pants</description>
<link>https://mywebsite/pants</link>
</category>
<category>
<id>2</id>
<title>Blue</title>
<description>Blue products</description>
<link>https://mywebsite/pants</link>
</category>
</categories>