更新创意组件
开发环境
开发环境
POST
/v1.3/creative_components/update
请求参数
名称 | 类型 | 描述 |
---|---|---|
account_id* | integer | 广告主帐号 id,有操作权限的帐号 id,不支持代理商 id |
component_id* | integer | 创意组件 id |
component_type* | enum | 创意组件类型,[枚举详情] 枚举列表:{ LIVE_IMAGE_UNKNOWN, LIVE_IMAGE_COMPONENT, LIVE_CONV_COMPONENT } |
component_spec* | struct | 创意组件详情 |
live_image_component | struct | 喝彩图&背景图创意组件详情 |
bg_img_url | string | 背景图 url 字段长度最小 0 字节,长度最大 1024 字节 |
bg_img_id | string | 背景图 id 字段长度最小 0 字节,长度最大 64 字节 |
cheer_icon | struct[] | 背景图列表信息 数组最大长度 4 |
icon_url | string | 喝彩图 url 字段长度最小 0 字节,长度最大 1024 字节 |
icon_img_id | string | 喝彩图 id 字段长度最小 0 字节,长度最大 64 字节 |
samp_rate | integer | samp_rate |
is_use_cheer_icon | integer | 是否启用喝彩图 最小值 0,最大值 1 |
is_use_bg_img | integer | 是否启用背景图 最小值 0,最大值 1 |
live_conv_component | struct | 直播间转化组件详情 |
page_id | int64 | 原生页 id |
title | string | 素材标题,仅在规格支持时传入,详见规格详情 字段长度最小 1 字节,长度最大 250 字节 |
img_url | string | 左侧图像 url 字段长度最小 0 字节,长度最大 1024 字节 |
img_id | string | 左侧图像 id 字段长度最小 0 字节,长度最大 64 字节 |
desc | string | 左下方的简短描述 字段长度最小 1 字节,长度最大 20480 字节 |
button_text | string | 跳转按钮文字 字段长度最小 1 字节,长度最大 96 字节 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1.3/creative_components/update' \
--header 'access_token;' \
--header 'timestamp;' \
--header 'nonce;' \
--data-urlencode 'account_id=<ACCOUNT_ID>' \
--data-urlencode 'component_spec={
"live_image_component": {
"cheer_icon": []
},
"live_conv_component": []
}' \
--data-urlencode 'component_id=' \
--data-urlencode 'component_type='
响应示例响应示例
{
"code": 0,
"message": "",
"message_cn": ""
}
请求参数
Header 参数
access_token
string
必需
默认值:
<ACCESS_TOKEN>
timestamp
string
必需
MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳
MarketingAPI 所使用的时区为GMT+8,例如当时间戳为1494840119时,表示 2018-05-15 17:21:59
默认值:
<TIMESTAMP>
nonce
string
必需
默认值:
<NONCE>
Body 参数application/x-www-form-urlencoded
account_id
integer
必需
示例值:
<ACCOUNT_ID>
component_spec
string
创意组件详情
示例值:
{
"live_image_component": {
"cheer_icon": []
},
"live_conv_component": []
}
component_id
integer
创意组件 id
component_type
string
必需
枚举列表:{ LIVE_IMAGE_UNKNOWN, LIVE_IMAGE_COMPONENT, LIVE_CONV_COMPONENT }
返回响应
修改于 2023-11-06 02:02:10