For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Delete Ad Account Spend Limit Window

POST
/ad_account/spend_limit_windows/{window_id}/delete

Delete an active or scheduled spend limit window before it ends. Available only for ad accounts on postpaid invoice billing.

No request body is required. You can delete active or upcoming limits, but not completed limits. Deletion takes effect on save and does not erase historical spend.

Delete Ad Account Spend Limit Window

curl https://api.ads.openai.com/v1/ad_account/spend_limit_windows/$WINDOW_ID/delete \
    -X POST \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "deleted": true,
  "object": "object",
  "window_id": "window_id"
}
Path Parameters
window_id: string
minLength1
Returns
deleted: boolean
object: string
window_id: string
Returns Examples
200 — Example
{
  "deleted": true,
  "object": "object",
  "window_id": "window_id"
}