更新Pixel事件
您可以使用本接口更新 Pixel 事件的名称以及转化价值。
重要提示
使用事件 API 接口代表您同意遵守TikTok 商业产品(数据)条款,并且不会与 TikTok 分享敏感数据。
v1.2与v1.3版本对比
以下表格概括了 v1.2与v1.3接口的变化。
``xtable
|变化内容{30%}|v1.2{35%}|v1.3{35%}|
|---|---|---|
|接口路径| /v1.2/pixel/event/update/| /v1.3/pixel/event/update/|
|请求参数类型|advertiser_id: number <br>event_id: number |advertiser_id: string <br>event_id`: string |
## 请求
**地址** https://business-api.tiktok.com/open_api/v1.3/pixel/event/update/
**方法** POST
**Header**
```xtable
|字段|类型|描述|
|---|---|---|
|Access-Token {必填}|string|授权访问令牌。可以通过[获取访问令牌](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162)接口获取。|
|Content-Type {必填}|string|请求消息类型<br>允许值: `"application/json"`。 |
参数
|字段|类型|描述|
|---|---|---|
|advertiser_id {必填}|string| 广告主 ID |
|currency_value |string| 转化价值 |
|currency |string| 转化价值对应币种,枚举值: `INR`(印度卢比),`JPY`(日元),`USD`(美元),默认值 `USD` |
|event_id {必填}|string| 事件 ID。您可以从[/pixel/list/](https://ads.tiktok.com/marketing_api/docs?id=1709497028894721)接口返回的`event_id`字段获得事件ID。 |
|event_name {必填}|string| 事件名称<br><span style="color:#ff0000">名称不能超过40字符(不区分语言),不能包含emoji。</span> |
示例
(code curl http)
curl -H "Access-Token:xxx" -H "Content-Type:application/json" -X POST \
-d '{
"advertiser_id": "ADVERTISER_ID",
"currency": "CURRENCY",
"event_id": "EVENT_ID",
"event_name": "EVENT_NAME",
"currency_value": "CURRENCY_VALUE"
}' \
https://business-api.tiktok.com/open_api/v1.3/pixel/event/update/
(/code)
返回
|字段|类型|描述|
|---|---|---|
|code |number|返回码,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)|
|message |string|返回信息,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)|
|data|object|返回数据|
|request_id |string|请求的日志 ID,唯一标识一个请求。|
示例
(code Success-Response http)
HTTPS/1.1 200 OK
{
"message": "OK",
"code": 0,
"data": {}
}
(/code);