Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randyzwitch/ef3425b136015e50747d to your computer and use it in GitHub Desktop.
Save randyzwitch/ef3425b136015e50747d to your computer and use it in GitHub Desktop.
REQUEST:
{
"reportDescription":{
"dateFrom":"2013-01-01",
"dateTo":"2013-11-16",
"reportSuiteID":"",
"segment_id":"53c059aee4b07cd3c4332163",
"metrics":[
{
"id":"bouncerate"
},
{
"id":"event24"
},
{
"id":"event25"
},
{
"id":"event26"
},
{
"id":"event27"
},
{
"id":"event65"
},
{
"id":"event68"
},
{
"id":"event1"
},
{
"id":"orders"
},
{
"id":"f:837960"
},
{
"id":"f:837959"
},
{
"id":"revenue"
}
],
"elements":[
{
"id":"trackingCode",
"top":0,
"startingWith":0,
"selected":[
"Tactical",
"LifeCycle",
"Loyalty",
"Remarketing"
],
"classification":"Campaign Type"
},
{
"id":"trackingCode",
"top":0,
"startingWith":0,
"classification":"Campaign Name"
}
]
}
}
RESPONSE:
{
"report":{
"type":[
"ranked"
],
"elements":[
{
"id":"trackingcode",
"name":"External Campaign ID (cid)",
"classification":"Campaign Type"
},
{
"id":"trackingcode",
"name":"External Campaign ID (cid)",
"classification":"Campaign Name"
}
],
"reportSuite":{
"id":[
""
],
"name":[
""
]
},
"period":[
"Mon. 10 Nov. 2014 - Sun. 16 Nov. 2014"
],
"metrics":[
{
"id":"event31",
"name":"Emails Clicked (ET Total)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event95",
"name":"Emails Clicked (ET Unique)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event29",
"name":"Emails Delivered (ET Total)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event30",
"name":"Emails Opened (ET Total)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event94",
"name":"Emails Opened (ET Unique)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event38",
"name":"Emails Sent (ET Total)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event33",
"name":"Emails Total Bounces (ET Total)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
},
{
"id":"event32",
"name":"Emails Unsubscribed (ET Total)",
"type":"number",
"decimals":0,
"latency":0,
"current":false
}
],
"segments":[
{
"id":"53c059aee4b07cd3c4332163",
"name":"AeM: Non E-Mail Segment (excludes PCP & NoCat) - Royal"
}
],
"data":[
{
"name":"Loyalty",
"url":"",
"counts":[
"84574",
"60706",
"1128232",
"437210",
"308630",
"1136379",
"0",
"739"
],
"breakdown":[
{
"name":"Loyalty Tactical",
"url":"",
"counts":[
"83361",
"59980",
"1122336",
"429169",
"305075",
"1129870",
"0",
"726"
]
},
{
"name":"Loyalty Trigger",
"url":"",
"counts":[
"1132",
"717",
"5611",
"7835",
"3527",
"6224",
"0",
"13"
]
},
{
"name":"Internal",
"url":"",
"counts":[
"81",
"9",
"285",
"206",
"28",
"285",
"0",
"0"
]
}
]
},
{
"name":"LifeCycle",
"url":"",
"counts":[
"14553",
"8091",
"101132",
"50895",
"22132",
"101945",
"95",
"52"
],
"breakdown":[
{
"name":"Precruise",
"url":"",
"counts":[
"12741",
"6822",
"87150",
"41493",
"16321",
"87780",
"95",
"11"
]
},
{
"name":"Welcome",
"url":"",
"counts":[
"1200",
"865",
"8881",
"5407",
"3345",
"8994",
"0",
"28"
]
},
{
"name":"Postcruise",
"url":"",
"counts":[
"549",
"398",
"4744",
"3918",
"2446",
"4814",
"0",
"13"
]
},
{
"name":"Internal",
"url":"",
"counts":[
"63",
"6",
"357",
"77",
"20",
"357",
"0",
"0"
]
}
]
}
],
"totals":[
"365555",
"259853",
"8837915",
"2441355",
"1795592",
"8903683",
"4282",
"8690"
],
"version":[
"1.4.14.10"
]
},
"waitSeconds":[
"0.831"
],
"runSeconds":[
"7.324"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment