AdnovaDocs
Ad Launcher

Duplicate a campaign

Creates one copy of a campaign, without its ad sets or ads. Copy the ad sets into it with Duplicate an ad set and targetCampaignId, then fill them with Create a launch. For N copies, call this N times one after another with distinct names. Get campaignId from campaign.id in List adsets. Omit budget to keep the source campaign's budget. Budgets are in minor units (cents). bidStrategy needs a campaign budget on the copy. Supply an Idempotency-Key header so a retry does not create a second campaign.

POST
/meta/ad-accounts/{adAccountId}/campaigns/{campaignId}/duplicate

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

adAccountId*string
Length1 <= length
campaignId*string

The campaign to duplicate. Must belong to this ad account.

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
Idempotency-Key?string

Optional. Any string ≤64 chars. Retries with the same key return the original response for 24h.

Lengthlength <= 64

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

application/json

application/json

curl -X POST "https://api.adnova.ai/ad-launcher/v1/meta/ad-accounts/string/campaigns/string/duplicate" \  -H "x-workspace-id: string" \  -H "x-org-id: string" \  -H "Content-Type: application/json" \  -d '{    "name": "Spring Sale copy 1",    "launchAsActive": false  }'
{
  "campaignId": "120246999999990500"
}
{
  "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"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}