EVGItem Class Reference
Inherits from | Declared in |
---|---|
NSObject | EVGItems.h |
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.
See Also
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 parent|child
.
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 Author
and 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 EVGPromotionState
.
Location related to this item.
Availability
1.3.0
Overall score for the item.
Availability
1.3.0
Total number of ratings given to this item, >=0
Availability
1.3.0
Create an EVGItem
subclass of the appropriate type from the provided JSON.
Parameters
Parameter | Description |
---|---|
json | A type of item in JSON form |
Return Value
An EVGItem
subclass, or nil if JSON is invalid
Create an array of EVGItem
subclasses from the provided JSON array.
Parameters
Parameter | Description |
---|---|
json | A JSON array of items to convert to an array of EVGItem subclasses |
Return Value
An array of EVGItem
subclasses, or nil if JSON is invalid