메인 콘텐츠로 건너뛰기
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"
      ]
    }
  }
]
'

본문

application/json
cid
string
필수

Campaign ID this creative belongs to.

height
integer<uint32>
필수

Height of the creative in pixels.

필수 범위: x >= 0
id
string
필수

Unique identifier for the creative (UUID v4).

name
string
필수

Human-readable name of the creative.

owner_id
string
필수

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

status
string
필수

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

type
string
필수

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

width
integer<uint32>
필수

Width of the creative in pixels.

필수 범위: x >= 0
banner
any
기본값:{"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
기본값:{"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.

응답

성공