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 Daily Spend Limit

POST
/ad_account/daily_spend_limit/delete

Remove the selected daily limit on save. Omit window_id only when at most one active or upcoming Daily rule exists. Historical protected days and their billable allowances are retained for late events and corrections. Does not delete dated or IO limits.

Send expected_revision from the latest list response.

Removal takes effect on save and retains historical accounting for delayed charges. Inspect the updated spend_limits.daily_limits list to verify that the removed window_id is absent. The legacy daily_limit field can still contain another active or upcoming rule; it is null only when no rule is selected.

Delete Ad Account Daily Spend Limit

curl https://api.ads.openai.com/v1/ad_account/daily_spend_limit/delete \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
    -d '{
          "expected_revision": 0
        }'
200 — Example
{
  "spend_limits": {
    "data": [
      {
        "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
      }
    ],
    "object": "object",
    "can_create_daily_limit": true,
    "can_manage_spend_limits": true,
    "daily_limit": {
      "amount_micros": 0,
      "end_date": "end_date",
      "next_reset": "next_reset",
      "remaining_micros": 0,
      "spend_as_of": "spend_as_of",
      "spent_micros": 0,
      "start_date": "start_date",
      "status": "status",
      "timezone": "timezone",
      "window_id": "window_id"
    },
    "daily_limits": [
      {
        "amount_micros": 0,
        "end_date": "end_date",
        "next_reset": "next_reset",
        "remaining_micros": 0,
        "spend_as_of": "spend_as_of",
        "spent_micros": 0,
        "start_date": "start_date",
        "status": "status",
        "timezone": "timezone",
        "window_id": "window_id"
      }
    ],
    "earliest_daily_start_date": "earliest_daily_start_date",
    "earliest_dated_start_date": "earliest_dated_start_date",
    "evaluated_at": "evaluated_at",
    "revision": 0
  }
}
Body Parameters
JSON
expected_revision: integer
minimum0
window_id: optional string

Daily rule ID to remove. Omit only when at most one active or upcoming Daily rule exists.

minLength1
Returns
spend_limits: object { data, object, can_create_daily_limit, 7 more }
data: array of object { amount_micros, can_delete, can_edit, 8 more }
amount_micros: integer
can_delete: boolean
can_edit: boolean
can_edit_start_date: boolean
end_date: string
io_id: string or null
name: string or null
start_date: string
status: string
window_id: string
spent_micros: optional integer
object: string
can_create_daily_limit: optional boolean
can_manage_spend_limits: optional boolean
daily_limit: optional object { amount_micros, end_date, next_reset, 7 more } or null
amount_micros: integer

Current daily billable ad-spend cap.

end_date: string or null

Exclusive account-local end date, YYYY-MM-DD; null means no end.

next_reset: string or null

Next account-local midnight with a fresh allowance, ISO 8601; null before activation or on the final protected day.

remaining_micros: integer or null
spend_as_of: string or null

Actual enforcement counter update timestamp, ISO 8601; null if unavailable.

spent_micros: integer or null

Enforcement-backed spend for this day; null if unavailable or not active.

start_date: string

First protected account-local date, YYYY-MM-DD.

status: string

active or upcoming.

timezone: string

Recorded IANA timezone; immutable while Daily exists.

window_id: optional string

Immutable Daily rule ID for targeted edits and removal.

daily_limits: optional array of object { amount_micros, end_date, next_reset, 7 more }

Active and upcoming Daily rules, ordered by start date ascending.

amount_micros: integer

Current daily billable ad-spend cap.

end_date: string or null

Exclusive account-local end date, YYYY-MM-DD; null means no end.

next_reset: string or null

Next account-local midnight with a fresh allowance, ISO 8601; null before activation or on the final protected day.

remaining_micros: integer or null
spend_as_of: string or null

Actual enforcement counter update timestamp, ISO 8601; null if unavailable.

spent_micros: integer or null

Enforcement-backed spend for this day; null if unavailable or not active.

start_date: string

First protected account-local date, YYYY-MM-DD.

status: string

active or upcoming.

timezone: string

Recorded IANA timezone; immutable while Daily exists.

window_id: optional string

Immutable Daily rule ID for targeted edits and removal.

earliest_daily_start_date: optional string

Earliest accounting-safe account-local start date for a new Daily rule; activation is never same-day. The full interval must also avoid dated and IO limits.

earliest_dated_start_date: optional string or null

Earliest account-local start date, YYYY-MM-DD, for new or retimed Date range limits after retained Daily protection; null if none. Does not restrict amount or metadata edits when the existing dates are unchanged.

evaluated_at: optional string

Evaluation timestamp, ISO 8601; distinct from spend reporting freshness.

revision: optional integer

Current configuration revision for conditional Daily mutations.

Returns Examples
200 — Example
{
  "spend_limits": {
    "data": [
      {
        "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
      }
    ],
    "object": "object",
    "can_create_daily_limit": true,
    "can_manage_spend_limits": true,
    "daily_limit": {
      "amount_micros": 0,
      "end_date": "end_date",
      "next_reset": "next_reset",
      "remaining_micros": 0,
      "spend_as_of": "spend_as_of",
      "spent_micros": 0,
      "start_date": "start_date",
      "status": "status",
      "timezone": "timezone",
      "window_id": "window_id"
    },
    "daily_limits": [
      {
        "amount_micros": 0,
        "end_date": "end_date",
        "next_reset": "next_reset",
        "remaining_micros": 0,
        "spend_as_of": "spend_as_of",
        "spent_micros": 0,
        "start_date": "start_date",
        "status": "status",
        "timezone": "timezone",
        "window_id": "window_id"
      }
    ],
    "earliest_daily_start_date": "earliest_daily_start_date",
    "earliest_dated_start_date": "earliest_dated_start_date",
    "evaluated_at": "evaluated_at",
    "revision": 0
  }
}