← 返回目录
📁 API Reference › BC Assets › Manage a pixel

将pixel转移至商务中心

您可以使用本接口将pixel转移到商务中心。

为了操作成功,必须满足以下两点要求: 1. 如果转移到代理商商务中心,操作必须由代理商的管理员用户完成。同时,pixel原属于的广告账户也属于此代理商BC。 2. 如果转移到直客商务中心,此BC必须有这个pixel原属于的广告账户的管理员权限。

v1.2与v1.3版本对比

以下表格概括了 v1.2与v1.3接口的变化。 ``xtable |变化内容{30%}|v1.2{35%}|v1.3{35%}| |---|---|---| |接口路径| /v1.2/bc/pixel/transfer/| /v1.3/bc/pixel/transfer/| |请求参数类型|bc_id: number |bc_id`: string |


## 请求

**地址** https://business-api.tiktok.com/open_api/v1.3/bc/pixel/transfer/

**方法** POST

**Header**

``` xtable
|字段|类型|描述|
|---|---|---|
|Access-Token {必填}|string|授权access_token,可以通过[获取访问令牌](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162)接口获取。  |

参数

|字段|类型|描述|
|---|---|---|
|bc_id {必填}|string|商务中心ID。 |
|pixel_code {必填}|string|待转移的Pixel代码。|

示例

(code curl http)
curl --location --request POST https://business-api.tiktok.com/open_api/open_api/v1.3/bc/pixel/transfer/
--header 'Access-Token: {{Access-Token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bc_id": "{{bc_id}}",
    "pixel_code": "{{pixel_code}}"
}'
(/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
{
    "code": "{{code}}",
    "message": "Success",
    "data": {
        "asset_id": "{{asset_id}}"
    },
    "request_id": "{{request_id}}"
}
(/code)

内容来源:TikTok API for Business 官方文档 · 本地归档

在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →