This API aggregates top-lists for the custom parameters 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.
Request
Identical to /traffic/event except that that the only fields that can be aggregated are events and uniqueUsers, where events is an implicit field and the uniqueUsers field has to be specified explicitly, historyFields are unsupported and groups must always be specified (use /describe subpath to list available groups). It is also possible to resolve item titles fed via /dmp/title/update by specifying title as a field. The titles are resolved via the used origin (if specified). With multiple or unspecified origins, item titles are resolved by the first match.
Response
Identical to /traffic/event. See the first example below.
Examples
$ python cx.py /dmp/traffic/custom/describe '{"siteId":"9222302702321341959", "start":"-1d"}'
{
"start": 1413361892,
"stop": 1413448292,
"groups": [
"funnelname",
"step",
"stepname",
"advertiser",
"bookedimpressions",
"campaign",
"campaignend",
"campaignstart",
"content unit",
"creative",
"creativeurl",
"dimensions",
"priority",
"type",
"value",
"product",
"card",
"price",
"priceunit",
"newsletter"
]
}
$ python cx.py /dmp/traffic/custom '{"siteId":"9222302702321341959", "start":"-1d", "groups":["advertiser","campaign"]}'
{
"start": 1413361935,
"stop": 1413448335,
"groups": [
{
"items": [
{
"item": "Pear Sports",
"data": {
"events": 654
}
},
{
"item": "Kenneth Cole",
"data": {
"events": 341
}
},
{
"item": "Starbucks",
"data": {
"events": 332
}
},
{
"item": "Tesla Motors",
"data": {
"events": 326
}
},
{
"item": "One Mega Group",
"data": {
"events": 301
}
}
],
"group": "advertiser"
},
{
"items": [
{
"item": "Watch",
"data": {
"events": 341
}
},
{
"item": "What pushes you (male)",
"data": {
"events": 333
}
},
{
"item": "The best coffee",
"data": {
"events": 332
}
},
{
"item": "Model S",
"data": {
"events": 326
}
},
{
"item": "What pushes you (female)",
"data": {
"events": 321
}
},
{
"item": "Travel Magazine",
"data": {
"events": 301
}
}
],
"group": "campaign"
}
]
}