ClientEventMetadata
In order to correctly model certain types of client events, a clientEventMetadata
object must be specified.
These types of client events, and their corresponding metadata objects, are documented below.
ClientEventAdMetadata
Required for all events with the following ClientEventType
AdImpression
AdInteraction
Category sections, Curation sections, and Client Events
While categoryId
and curationId
are not explicitly required by the Client Events endpoint, it is your responsibility
to include them whenever you want to correctly attribute Ad impressions and interactions to their applicable category
and / or curation.
Property | Type | Description | Required |
---|---|---|---|
serveToken | string | Serve token which was originally returned with the ad | No |
section | Section | ID pertaining to the FI-specific section of the UI where the event took place. For example, if the event took place in a “Featured Offers” section with a sectionId of 5 , the event’s sectionId should be set to 5 |
Yes |
channel | Channel | Channel through which the ad was delivered | Yes |
imageSlots | string[] | Array of string values indicating the position or type of image | No |
categoryId | string | ID of category associated with Ad event. Applicable whenever an Ad Impression or Interaction takes place within a collection of Ads grouped by category. Example: a user taps on or activates an Ad in a "Grocery" category collection. | No |
curationId | string | Same guidelines apply as with categoryId . Include this when a user activates or interacts with an Ad as part of a curation collection. Example: a user taps on or activates an Ad in a "Back to School" curation collection. |
No |
displayPosition | integer | A zero-indexed integer representing the position of an ad if it was presented as part of a category, curation or other logically grouped aggregate | No |
ImageSlots
Note that imageSlots
can be a list of values, such as "logo", "largeRectangle", "smallRectangle", indicating the position or type of image, like this:
```"imageSlots": [ "logo", "largeRectangle" ], "imageSlots": [ "logo" ],
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|