set_openai_ads_spend_window
Create or edit a ChatGPT Ads spend-limit window destructive
Description
Create (no windowId) or edit (windowId) an account-level spend-limit window on ChatGPT Ads: startDate YYYY-MM-DD inclusive, endDate YYYY-MM-DD EXCLUSIVE (the window ends the day before), amount in the account currency (sent as micros), optional name and insertion-order id (ioId). A window is a CEILING on what the whole account may spend in that range; it never makes anything spend, and campaign budgets still apply underneath it. On edit, pass only the fields that change; a window whose canEdit is false (already started, per OpenAI) cannot be edited. Raising the amount lets campaigns spend up to their budgets, so show the user the old and new amounts. Reply carries the stored window (amount, spent so far, status). The live API serves this path since at least 2026-09-12 (it answered "Invalid URL" on 2026-09-03). It needs postpaid INVOICE billing and billing-management permission; a card-billed account is refused whatever key is used.
Parameters
| Parameter | Type | Description |
|---|---|---|
windowId | string | spend-limit window id to edit; omit to create a new window |
startDate | string | YYYY-MM-DD, first day of the window (inclusive) |
endDate | string | YYYY-MM-DD, end of the window (exclusive; the window ends the day before) |
amount | number | spend ceiling for the whole account over the window, in the account currency |
name | string | window name |
ioId | string | insertion-order id, when billing uses one |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/set_openai_ads_spend_window.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_openai_ads_spend_window","arguments":{}}}
CLI
hermoso call set_openai_ads_spend_window --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_openai_ads_spend_windowsList ChatGPT Ads account spending limitsdelete_openai_ads_spend_windowDelete a ChatGPT Ads spend-limit windowopenai_ads_agent_insightsChatGPT Ads Business Agent insightsset_openai_ads_daily_spend_limitSet the ChatGPT Ads account daily spending limitpublish_openai_ads_business_agentPublish a ChatGPT Ads Business Agentremove_openai_ads_daily_spend_limitRemove the ChatGPT Ads account daily spending limitpreview_openai_ads_business_agentChat with a Business Agent (preview)set_openai_ads_negative_keywordsSet ChatGPT Ads account negative keywordsget_openai_ads_business_agentRead a ChatGPT Ads Business Agentlist_openai_ads_feedsList ChatGPT Ads product feeds