campaign_timeline_clicked_hour
php
array|boolean campaign_timeline_clicked_hour ( number $campaignId )Returns click counts by hour 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 hour:\n");
$data = campaign_timeline_clicked_hour($campaingId);
if (empty($data)) {
print("no clicks recorded yet");
exit();
}
$len = count($data)-1;
for ($i = 0 to $len) {
$clickedAmount = $data[$i];
if ($clickedAmount > 0) {
print($i." ".$clickedAmount."\n");
}
}The result will look similar to:
Clicks in campaign 1 by hour: 11 7 12 4 14 20 15 3