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

获取与pixel绑定的广告账户列表

您可以使用本接口来获取和所指定的pixel绑定的广告账户列表。

v1.2与v1.3版本对比

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


## 请求

**地址**

https://business-api.tiktok.com/open_api/v1.3/bc/pixel/link/get/

**方法** GET

**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 GET https://business-api.tiktok.com/open_api/v1.3/bc/pixel/link/get?bc_id={{bc_id}}&pixel_code={{pixel_code}}
--header 'Access-Token: {{Access-Token}}' \
--header 'Content-Type: application/json'
(/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|返回数据。  |
#|list|object[]|广告账户列表。|
##|advertiser_id|string|广告账户。|
#|page_info|object|分页信息。|
##|page|number|当前页。|
##|page_size| number |分页大小。|
##|total_number| number | 总结果数。 |
##|total_page| number |总页数。|
|request_id |string|请求的日志ID,唯一标识一个请求。|

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "Success",
    "data": {
        "list": [
            {
                "advertiser_id": "{{advertiser_id_1}}"
            },
            {
                "advertiser_id": "{{advertiser_id_2}}"
            }
        ],
        "page_info": {
            "page": 1,
            "page_size": 10,
            "total_number": 2,
            "total_page": 1
        }
    },
    "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 每日平台更新简报 →