campaign_timeline_clicked_day
php
array|boolean campaign_timeline_clicked_day ( number $campaignId )Returns click counts by day for the campaign whose ID is supplied as the parameter. Returns false if the campaign ID does not exist.
Example:
php
$campaingId = 1;
print("Clicks in campaign ". $campaingId." by day:\n");
$data = campaign_timeline_clicked_day($campaingId);
if (empty($data)) {
print("no clicks recorded yet");
exit();
}
$len = count($data)-1;
for ($i = 0 to $len) {
print(key($data)." ".current($data)."\n");
next($data);
}The result will look similar to:
Clicks in campaign 1 by day: 2014-10-08 5 2014-10-13 2 2014-10-16 3 2014-10-20 7