AdnovaDocs
Ad Launcher

Duplicate an ad copy template

Duplicates a template into the target ad account with the supplied name. A default template updates the target account's default template.

POST
/meta/ad-copy-templates/{templateId}/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

templateId*string

Template identifier returned by Create an ad copy template.

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

application/json

curl -X POST "https://api.adnova.ai/ad-launcher/v1/meta/ad-copy-templates/string/duplicate" \  -H "x-workspace-id: string" \  -H "x-org-id: string" \  -H "Content-Type: application/json" \  -d '{    "templateName": "string",    "adAccountId": "string"  }'
{
  "data": {
    "_id": "string",
    "templateName": "string",
    "isDefault": true,
    "adAccountId": "string",
    "defaultPrimaryText": "string",
    "primaryTextVariations": [
      "string"
    ],
    "defaultHeadline": "string",
    "headlineVariations": [
      "string"
    ],
    "adDescription": "string",
    "descriptionVariations": [
      "string"
    ],
    "cta": "string",
    "webLink": "string",
    "phoneNumber": "string",
    "utm": "string",
    "displayLink": "string",
    "appCustomProductPage": "string",
    "appDeeplink": "string",
    "androidAppLink": "string",
    "iosAppLink": "string",
    "aiMediaDisclosure": true,
    "productSetData": {
      "business_id": "string",
      "catalog_id": "string",
      "product_set_id": "string"
    },
    "productSetId": "string",
    "adSets": [
      "string"
    ],
    "adProfiles": {
      "facebook_page_id": "string",
      "instagram_account_id": "string",
      "page_backed_instagram_account_id": "string",
      "facebook_page_info": {},
      "instagram_account_info": {}
    }
  }
}
{
  "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"
}