Skip to main content
POST
/
api
/
cache
/
creatives
Update Creatives
curl --request POST \
  --url https://your_a2_service/api/cache/creatives \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "cid": "<string>",
    "height": 1,
    "id": "<string>",
    "name": "<string>",
    "owner_id": "<string>",
    "status": "<string>",
    "type": "<string>",
    "width": 1,
    "banner": {
      "ext": {},
      "img": "",
      "link": {
        "ext": {},
        "url": ""
      }
    },
    "description": "<string>",
    "native": {
      "ext": {},
      "link": {
        "ext": {},
        "url": ""
      }
    },
    "video": {
      "adm": "",
      "ctype": 2,
      "dur": 0,
      "ext": {
        "cdn": "",
        "linear": 1,
        "url": ""
      },
      "mime": [
        "video/mp4"
      ]
    }
  }
]
'

Body

application/json
cid
string
required

Campaign ID this creative belongs to.

height
integer<uint32>
required

Height of the creative in pixels.

Required range: x >= 0
id
string
required

Unique identifier for the creative (UUID v4).

name
string
required

Human-readable name of the creative.

owner_id
string
required

Owner ID of the creative (e.g., advertiser or account owner).

status
string
required

Status of the creative (e.g., "active", "inactive").

type
string
required

Type of the creative (e.g., "banner", "video", "native"). Refer to: a2_adm/db/models/creative.py:Creative

width
integer<uint32>
required

Width of the creative in pixels.

Required range: x >= 0
banner
any
default:{"ext":{},"img":"","link":{"ext":{},"url":""}}

Banner creative content (custom format). Note: This format is not identical to OpenRTB's banner object.

description
string | null

Optional description of the creative.

native
any
default:{"ext":{},"link":{"ext":{},"url":""}}

Native creative content (custom format). Note: This format is not identical to OpenRTB's native object.

video
object

Video creative content (custom format). Note: This format is not identical to OpenRTB's video object.

Response

Success