# Hermoso: set_openai_ads_spend_window · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/set_openai_ads_spend_window/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / set_openai_ads_spend_window

# `set_openai_ads_spend_window`

Create or edit a ChatGPT Ads spend-limit window destructive

Area: ChatGPT ADS BREADTH · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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](https://hermoso.ai/docs/credits/).

## Related tools

- [list_openai_ads_spend_windows](https://hermoso.ai/docs/reference/ads/list_openai_ads_spend_windows/) List ChatGPT Ads account spending limits
- [delete_openai_ads_spend_window](https://hermoso.ai/docs/reference/ads/delete_openai_ads_spend_window/) Delete a ChatGPT Ads spend-limit window
- [openai_ads_agent_insights](https://hermoso.ai/docs/reference/ads/openai_ads_agent_insights/) ChatGPT Ads Business Agent insights
- [set_openai_ads_daily_spend_limit](https://hermoso.ai/docs/reference/ads/set_openai_ads_daily_spend_limit/) Set the ChatGPT Ads account daily spending limit
- [publish_openai_ads_business_agent](https://hermoso.ai/docs/reference/ads/publish_openai_ads_business_agent/) Publish a ChatGPT Ads Business Agent
- [remove_openai_ads_daily_spend_limit](https://hermoso.ai/docs/reference/ads/remove_openai_ads_daily_spend_limit/) Remove the ChatGPT Ads account daily spending limit
- [preview_openai_ads_business_agent](https://hermoso.ai/docs/reference/ads/preview_openai_ads_business_agent/) Chat with a Business Agent (preview)
- [set_openai_ads_negative_keywords](https://hermoso.ai/docs/reference/ads/set_openai_ads_negative_keywords/) Set ChatGPT Ads account negative keywords
- [get_openai_ads_business_agent](https://hermoso.ai/docs/reference/ads/get_openai_ads_business_agent/) Read a ChatGPT Ads Business Agent
- [list_openai_ads_feeds](https://hermoso.ai/docs/reference/ads/list_openai_ads_feeds/) List ChatGPT Ads product feeds

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
