AdnovaDocs
Ad Launcher

Update draft

Replaces the draft's ads (and optionally viewType / gridFormData). Send the full list of ads — this is a replace, not a merge. Answers 404 for a draft that was launched or deleted, or that belongs to another organization.

PUT
/meta/drafts/{draftId}

Authentication

authentication
api-key<token>

Create an API key from the Adnova dashboard (Account integrations). Pass the key value in the api-key request header on every call.

In: header

Path Parameters

draftId*string

Draft id from Create a draft or List drafts.

Length1 <= length

Header Parameters

x-workspace-id*string

Workspace the request operates in. Get it from List workspaces.

Length1 <= length
x-org-id*string

Organization context (required on every endpoint). For lookup endpoints the org is derived from the ad account in the URL, so any org id you have access to is accepted.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api.adnova.ai/ad-launcher/v1/meta/drafts/string" \  -H "x-workspace-id: string" \  -H "x-org-id: string" \  -H "Content-Type: application/json" \  -d '{    "ads": [      {        "adName": "Hero Carousel — Spring Sale (v2)",        "adSets": [          "123456789012345"        ],        "creativeDetails": {          "groupType": "carousel",          "creatives": [            {              "_id": "01H8YA...",              "cardTitle": "Spring Sale — 50% Off",              "webLink": "https://example.com/spring-sale"            }          ]        },        "adProfiles": {          "facebook_page_id": "123456789012345"        },        "cta": "SHOP_NOW",        "webLink": "https://example.com/spring-sale"      }    ]  }'
Empty
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}