I am trying to get lifetime reach and frequency metrics for my users' accounts and am unable to formulate the correct request.
I have tried the following call:
act_1234/reportstats?data_columns=['account_id','reach','frequency']&time_increment=all_days
but this just throws
{
"error": {
"type": "Exception",
"message": "You must specify one of time_ranges, time_interval or date_preset.",
"code": 1487533
}
}
The only thing I can think of is to specify the time_ranges as {time_start:0,time_stop:1391385600}
so that the request goes through, but that doesn't return the correct values.
Any ideas?
EDIT 1
I am playing around with specifying the time_interval based on the earliest campaign start time to the current date, not sure if there is a better way.