Create Ad Account Spend Limit Window
POST
/ad_account/spend_limit_windowsCreate a spend limit window with an inclusive start date and exclusive end date. Available only for ad accounts on postpaid invoice billing.
Choose a valid period that does not overlap another limit.
You can schedule up to 60 future date range limits.
Create Ad Account Spend Limit Window
curl https://api.ads.openai.com/v1/ad_account/spend_limit_windows \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
-d '{
"amount_micros": 0,
"end_date": "xxxxxxxxxx",
"start_date": "xxxxxxxxxx"
}'200 — Example
{
"amount_micros": 0,
"can_delete": true,
"can_edit": true,
"can_edit_start_date": true,
"end_date": "end_date",
"io_id": "io_id",
"name": "name",
"start_date": "start_date",
"status": "status",
"window_id": "window_id",
"spent_micros": 0
}Body ParametersJSON
Returns Examples
200 — Example
{
"amount_micros": 0,
"can_delete": true,
"can_edit": true,
"can_edit_start_date": true,
"end_date": "end_date",
"io_id": "io_id",
"name": "name",
"start_date": "start_date",
"status": "status",
"window_id": "window_id",
"spent_micros": 0
}