{
"clientEventMessages":[
// For events that happen on an ad
// include the ad ID, impressionToken, and other ad-specific fields
{
"eventTypeId": 3, // link clicked
"adId": 1,
"impressionToken" : "91e471aed3c04b81bee792f23ad4859d",
"channelId" : 1,
"locationId" : 32,
"displayTypeId" : 6,
"tags": [
"purchase-channel"
],
"imageSlots": [
"logo",
"heroImage"
],
"displayPosition": 4
},
// For events on ads filtered by category, include the category ID
{
"eventTypeId": 3,
"adId": 2,
"impressionToken" : "91e471aed3c04b81bee792f23ad4859d",
"channelId" : 1,
"locationId" : 32,
"displayTypeId" : 6,
"tags": [],
"imageSlots": [
"logo"
],
"displayPosition": 2, // position in the filtered view
"groupTypeId" : 1, // Category
"groupId" : 5 // Category filtered by
},
// For events directly on collections or categories, ad information can be omitted
{
"eventTypeId": 224,
"channelId" : 1,
"locationId" : 32,
"displayTypeId" : 6,
"displayPosition": 2, // relative position of the ad or category
"groupTypeId" : 1, // Category
"groupId" : 5 // Category interacted with
},
// For events not related to an ad or group, most fields can be omitted
{
"eventTypeId": 18,
"channelId": 1,
"locationId": 32,
"displayTypeId": 6,
}
]
}