EVGItem Class Reference
|Inherits from||Declared in|
Abstract base class. An item is something in a site or app that users can view or otherwise engage with. Typical examples are products, articles and blogs. Marketing Cloud Personalization tracks descriptive fields and user activity against items. This activity can be used to build reports and to promote relevant items to users.
All fields are optional unless otherwise stated. Generally, optional fields should only be sent if they are specific to this transaction (e.g.
lineItem.item.price) or if they aren’t already being sent along with web activity on the same dataset.
Required. Uniquely identifies an Item. The ID of a category must also identify its parents, separated by pipe | characters. If a category has the ID
parent and another category is the child of the first, the child’s ID might be
Name of a product, category or tag. For an article or blog this is the title.
Overview text about the item.
Link to this item.
Fully-qualified URL for the image representing this item.
If set, this item will be published/available on or after this time. Unpublished items will be excluded from promotion campaigns.
If set, this item will be expired/unavailable on or after this time. Expired items will be excluded from promotion campaigns.
Additional descriptive tags about an item such as
Brand for products or
Keywords for articles.
An optional promotion state that modifies how items will be selected and ordered for promotion. For allowed values and their meanings, see
Location related to this item.
Overall score for the item.
Total number of ratings given to this item, >=0
EVGItem subclass of the appropriate type from the provided JSON.
|A type of item in JSON form|
EVGItem subclass, or nil if JSON is invalid
Create an array of
EVGItem subclasses from the provided JSON array.
|A JSON array of items to convert to an array of |
An array of
EVGItem subclasses, or nil if JSON is invalid