GET /v25.0/{ads-pixel-id}/segments HTTP/1.1
Host: graph.facebook.com
| Parameter | Description |
|---|---|
date_presetstring |
friendly range such as last_7_days, instead of start/end date
|
end_datedatetime |
end date (exclusive) of traffic to analyze
|
site_cpmint64 |
CPM expected for site-wide ads. Used to project segment-level CPM and revenue.
|
sortstring |
Field to sort the result, and direction of sorting. You can specify sorting direction by appending "_ascending" or "_descending" to the sort field. By default, the sorting direction is ascending.
|
start_datedatetime |
first date of traffic to analyze
|
{
"data": [],
"paging": {}
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |