GET /v25.0/{campaign-id}/budget_schedules HTTP/1.1
Host: graph.facebook.com
high_demand_periods:[{
id:1,
time_start:1,
time_end:3,
...
},{
id:2,
time_start:3,
time_end:5,
...
},{
id:3,
time_start:6,
time_end:8,
...
}]
time_start prameter as shown below
curl -X GET
-d 'access_token={ACCESS_TOKEN}'
https://graph.facebook.com/{API_VERSION}/{CAMPAIGN_ID}/budget_schedules?time_start=5
time_end value greater than time_start parameter, returning
data:[{
id:3,
time_start:6,
time_end:8,
...
}]
time_stop parameter as shown below
curl -X GET
-d 'access_token={ACCESS_TOKEN}'
https://graph.facebook.com/{API_VERSION}/{CAMPAIGN_ID}/budget_schedules?time_stop=3
time_start value less than time_stop parameter, returning
data:[{
id:1,
time_start:1,
time_end:3,
...
}]
| Parameter | Description |
|---|---|
time_startdatetime/timestamp |
Search period start time. Filters out any HDPs with stop time <= time_start from the response.
|
time_stopdatetime/timestamp |
Search period stop time. Filters out any HDPs with start time >= time_stop from the response.
|
{
"data": [],
"paging": {}
}
| Error Code | Description |
|---|---|
613 | Calls to this api have exceeded the rate limit. |
100 | Invalid parameter |
| Parameter | Description |
|---|---|
budget_valueint64 |
Amount of budget increase during the high demand period. Can be expressed in either an absolute amount, or a multiplier value. The type is specified through the budget value type.
required |
budget_value_typeenum{ABSOLUTE, MULTIPLIER} |
Type of budget value. This sets if the specified budget value is an increase by an absolute amount or by a multiplier value.
required |
time_endint64 |
Time when the high demand period should end.
required |
time_startint64 |
Time when the high demand period should start.
required |
Struct {
id: numeric string,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |