This API aggregates top-lists for the standard groups associated with the DMP events fed for the given site and/or site group.
For using the API, you must be authenticated and have read permissions to the given sites. Sites in requests must be set up with DMP event feeding.
The origin items are always prefixed.
Request
Identical to /traffic/event except that:
-
the only fields that can be aggregated are
eventsanduniqueUsers,whereeventsis an implicit field and theuniqueUsersfield has to be specified explicitly -
historyFieldsare unsupported -
groupsmust always be specified explicitly – use/describesubpath to list available groups.
Response
Identical to /traffic/event. See the first example below.
Examples
Bash
$ python cx.py /dmp/traffic/event/describe '{"siteId":"9222302702321341959", "start":"-1d"}'
{
"start": 1413361798,
"stop": 1413448198,
"groups": [
"type",
"origin"
]
}
Bash
$ python cx.py /dmp/traffic/event '{"siteId":"9222302702321341959", "start":"-1d", "groups":["origin","type"]}'
{
"start": 1413361823,
"stop": 1413448223,
"groups": [
{
"items": [
{
"item": "conversion",
"data": {
"events": 2577
}
},
{
"item": "impression",
"data": {
"events": 1789
}
},
{
"item": "click",
"data": {
"events": 174
}
}
],
"group": "type"
},
{
"items": [
{
"item": "cxd-funnel",
"data": {
"events": 2577
}
},
{
"item": "cxd-cxensedisplay",
"data": {
"events": 1963
}
}
],
"group": "origin"
}
]
}