← 返回目录
📁 API Reference › Ad Accounts

获取广告账号列表

您可以使用本接口获取授予某一开发者应用权限的广告账号列表。

v1.2与v1.3版本对比

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


## 请求

**地址** https://business-api.tiktok.com/open_api/v1.3/oauth2/advertiser/get/

**方法** GET

**Header**

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

参数

|字段|类型|描述|
|---|---|---|
|app_id{必填}|string|开发者申请的应用app_id,可通过[应用管理](https://ads.tiktok.com/marketing_api/apps/)界面查看|
|secret{必填}|string|开发者应用的私钥,可通过[应用管理](https://ads.tiktok.com/marketing_api/apps/)界面查看|

示例

(code curl http)
curl --get -H "Access-Token:<access_token>" \
--data-urlencode "secret=<secret>" \
--data-urlencode "app_id=<app_id>" \
https://business-api.tiktok.com/open_api/v1.3/oauth2/advertiser/get/
(/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|广告主ID|
##|advertiser_name|string|广告主名字|
|request_id |string|请求的日志 ID,唯一标识一个请求。|

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
    "message": "OK",
    "code": 0,
    "data": {
        "list": [
            {
                "advertiser_id": "ADVERTISER_ID",
                "advertiser_name": "ADVERTISER_NAME"
            }
        ]
    },
    "request_id": "202003100820230101890492231E063EE3"
}
(/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 每日平台更新简报 →