edit_chatgpt_ad
Edit selected fields of a ChatGPT ad draft; pass its latest revision from get_chatgpt_ads. For a launched ad, creative/targeting/bid/duration changes require replacement=true and a new requestKey: this creates a replacement DRAFT and leaves the original unchanged. Clearly explain this, show the new quote, then start the replacement and end the original only as authorized. Use update_chatgpt_ad_budget for a live budget-only edit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>",
"changes": "<changes>"
},
"name": "edit_chatgpt_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Only the ad fields to change. | |
| revision | No | The draft’s latest revision UUID from get_chatgpt_ads; rejects the edit if it changed meanwhile. | |
| campaignId | Yes | oriiion campaign ID returned by these tools, never an external account/ad ID. | |
| requestKey | No | Generate one UUID for this operation and reuse it on retries. | |
| replacement | No | Required true to change creative/targeting/bid/duration of a launched ad: creates a replacement draft. Default false. |