getOpenStatById
Use this function to get the number of opens.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting total and unique open statistics of the first campaign
$AA.campaigns().getOpenStatById(1);
{
total: 2,
unique: 1
}
|
getClickStatById
Use this function to get the number of clicks on your links in your given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting total and unique click statistics of the first campaign
$AA.campaigns().getClickStatById(1);
{
total: 2,
unique: 1
}
|
getShareStatById
Use this function to get the share statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting total and unique share statistics of the first campaign
$AA.campaigns().getShareStatById(1);
{
total: 0,
unique: 0
}
|
getUnsubscribeStatById
Use this function to get the number of contacts who clicked on the unsubscribe link in the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting total unsubscribe statistics of the first campaign
$AA.campaigns().getUnsubscribeStatById(1);
{
total: 0
}
|
getBounceStatById
Use this function to get the bounce statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting soft and hard bounce statistics of the first campaign
$AA.campaigns().getBounceStatById(1);
{
soft: 0,
hard: 0
}
|
getGeoStatById
Use this function to get the geo statistics of the given campaign.
Please note that opens through proxy servers are not counted by this function.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting the geo statistics of the first campaign
$AA.campaigns().getGeoStatById(1);
//Response is an array, each element represents a region
[
{
count: "1",
country: "HUNGARY",
region: "BUDAPEST"
},
{
count: "3",
country: "USA",
region: "FLORIDA"
}
]
|
getOpenTimeLineById
Use this function to get the array representing the open time line statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting open time line statistics of the first campaign
$AA.campaigns().getOpenTimeLineById(1);
//Response is an array containing 31 elements
[
//First timeframe
{
date :{
date: "15-05-06 02:08:44",
timezone_type:3,
timezone:"Europe\/Budapest"
},
value{
all: {
total: 3,
unique: 2
}
}
},
//Following timeframes
{
date :{
date: "15-05-06 03:10:15",
timezone_type:3,
timezone:"Europe\/Budapest"
},
value{
all: {
total: 3,
unique: 2
}
}
},
{},
.
.
.
]
|
getClickTimeLineById
Use this function to get the array representing the click time line statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting click time line statistics of the first campaign
$AA.campaigns().getClickTimeLineById(1);
//Response is an array containing 31 elements
[
//First timeframe
{
date :{
date: "15-05-06 02:08:44",
timezone_type:3,
timezone:"Europe\/Budapest"
},
value{
all: {
total: 3,
unique: 2
}
}
},
//Following timeframes
{
date :{
date: "15-05-06 03:10:15",
timezone_type:3,
timezone:"Europe\/Budapest"
},
value{
all: {
total: 3,
unique: 2
}
}
},
{},
.
.
.
]
|
getOpenDevicePieById
Use this function to get the array representing the pie chart of opens, showing device statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting pie chart of open device statistics of the first campaign
$AA.campaigns().getOpenDevicePieById(1);
{
"PC\/Laptop": 10,
"Mobile": 3
}
|
getClickDevicePieById
Use this function to get the array representing the pie chart of clicks, showing device statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting pie chart of click device statistics of the first campaign
$AA.campaigns().getClickDevicePieById(1);
{
"PC\/Laptop": 3,
"Mobile": 1
}
|
getOpenOsPieById
Use this function to get the array representing the pie chart of opens, showing operating system device statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting pie chart of opens, showing operating system device statistics of the first campaign
$AA.campaigns().getOpenOsPieById(1);
{
"Windows": 10,
"Linux": 3
}
|
getClickOsPieById
Use this function to get the array representing the pie chart of clicks, showing operating system device statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting pie chart of clicks, showing operating system device statistics of the first campaign
$AA.campaigns().getClickOsPieById(1);
{
"Windows": 3,
"Linux": 1
}
|
getOpenBrowserPieById
Use this function to get the array representing the pie chart of opens, showing browser statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting pie chart of opens, showing browser statistics of the first campaign
$AA.campaigns().getOpenBrowserPieById(1);
{
"Firefox": 2,
"Chrome": 5,
"Chrome Mobile": 3
}
|
getClickBrowserPieById
Use this function to get the array representing the pie chart of clicks, showing browser statistics of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting pie chart of clicks, showing browser statistics of the first campaign
$AA.campaigns().getClickBrowserPieById(1);
{
"Firefox": 1,
"Chrome": 2,
"Chrome Mobile": 1
}
|
getOpenDomainListById
Use this function to get the object representing the list of opens, showing domain statistics of the given campaign.
You can also use getOpenDomainPieById as an alias.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
limit : The maximum number of domains you want to get. Default: false , all domains returned.
uniqueContacts : Set it true to show unique opens only. false by default.
|
Request Response
//Getting list of opens, showing domain statistics of the first campaign
$AA.campaigns().getOpenDomainListById(1);
{
"gmail.com": 8,
"hotmail.com": 2,
}
|
getClickDomainListById
Use this function to get the object representing the list of clicks, showing domain statistics of the given campaign.
You can also use getClickDomainPieById as an alias.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format).If false , endpoint will be the current date and time.
limit : The maximum number of domains you want to get. Default: false , all domains returned.
uniqueContacts : Set it true to show unique clicks only. false by default.
|
Request Response
//Getting list of clicks, showing domain statistics of the first campaign
$AA.campaigns().getClickDomainListById(1);
{
"gmail.com": 3,
"hotmail.com": 1,
}
|
getDomainTopListById
Use this function to get the array showing domain statistics about the number of sent emails in descending order. The data shows how many emails were sent to a particular domain.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format).If false , endpoint will be the current date and time.
limit : The maximum number of domains you want to get. Default: false , all domains returned.
|
Request Response
//Getting list about the number of sent emails, showing domain statistics of the first campaign
$AA.campaigns().getDomainTopListById(1);
[
{
"domain": "gmail.com",
"sent": "120",
},
{
"domain": "hotmail.com",
"sent": "22",
}
]
|
getHeatMapById
Use this function to get the clicked links of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
from : The startpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , startpoint will be the date when the campaign was sent.
to : The endpoint of the statistics. (date, yyyy-MM-dd hh:mm:ss format). If false , endpoint will be the current date and time.
|
Request Response
//Getting the clicked links of the first campaign
$AA.campaigns().getHeatMapById(1);
//Response is an array, each element represents a link
[
{
count:"1",
url: "[{webversion}]"
},
{
count:"1",
url: "[{unsubscribelink}]"
}
]
|
getLinksById
Use this function to get the links in the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
|
Request Response
//Getting the clicked links of the first campaign
$AA.campaigns().getLinksById(1);
//Response is an object, each element represents a link
{
"[{unsubscribelink}]",
"[{webversion}]",
"[{confirmlink}]",
"https://www.facebook.com/sharer/sharer.php?u=[{webversion}]"
}
|
getCombinedById
Use this function to get multiple types of data of the given campaign.
Parameters:
id : The id of the campaign you want to inspect.
data : The types of data you want to get. The keys of the response object will be the same you specified in the data object.
|
Request Response
//Getting different types of data of the first campaign in different formats
$AA.campaigns().getCombinedById(1, {
open: {
type:'open',
format:'total',
from: "2015.11.01",
to: "2015.11.10"
},
deviceOpenPie: {
type:'open',
format:'aggregate',
groupBy: 'device',
from: "2015.11.01",
to: "2015.11.10"
},
geoChart: {
type:'geo-location',
format:'raw',
from: "2015.11.01",
to: "2015.11.10"
}
});
{
deviceOpenPie: {
"PC\/Laptop": 10,
"Mobile": 3
},
geoChart:[
{
count: "4",
country: "HUNGARY",
region: "BUDAPEST"
},
{
count: "9",
country: "USA",
region: "FLORIDA"
}
],
open:{
total: 13,
unique: 8
}
}
|