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

Body

application/json · object[]
cid
string
required

Campaign ID this creative belongs to.

height
integer
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
required

Width of the creative in pixels.

Required range: x >= 0
banner
any

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

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

video
any

Response

204

Success