← 返回目录
📁 API Reference › Tools

获取内容排除类别信息

您可以使用本接口获取类别排除或行业敏感内容控制类型的详细信息,避免其出现在您的广告周围。

请求

地址 https://business-api.tiktok.com/open_api/v1.3/tool/content_exclusion/info/

方法 GET

Header

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

参数

|字段|类型|描述|
|---|---|---|
|advertiser_id {必填}|string| 广告主ID。 |
|category_ids {必填}|string[]|内容排除类别或行业敏感内容控制类别ID。该字段可以通过[/tool/content_exclusion/get/](https://ads.tiktok.com/marketing_api/docs?rid=7xusz43oh3h&id=1769738074686465)接口的返回中获得。|

Example

(code curl http)
curl --location -g 'https://business-api.tiktok.com/open_api/v1.3/tool/content_exclusion/info/?advertiser_id={{advertiser_id}}&category_ids=[{{category_id}},{{category_id}}]' \
--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)。  |
|request_id |string|请求的日志ID,唯一标识一个请求。  |
|data |object|返回数据。  |
#|content_exclusion_list|object[]|内容排除类别或行业敏感内容控制类别列表。|
##|category_id|string|类别ID。|
##|category_name|string| 类别名称。|
##|supported_regions|string[]|类别支持的国家或地区代码。|
##|description|string|类别描述。|
##|category_type|string|类别种类。枚举值: `CATEGORY_TYPE_EXCLUSION`(内容排除类别) , `CATEGORY_TYPE_VERTICAL`(行业敏感内容控制类别) 。|

Example

(code curl http)
HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "{{request_id}}",
    "data": {
        "content_exclusion_list": [
            {
                "category_name": "Youth content",
                "supported_regions": [
                    "US",
                    "GB",
                    "AU",
                    "CA"
                ],
                "description": "YouthContentDescriptionKey",
                "category_id": "200"
            },
            {
                "category_name": "Combat sports",
                "supported_regions": [
                    "US",
                    "GB",
                    "AU",
                    "CA"
                ],
                "description": "CombatSportsDescriptionKey",
                "category_id": "201"
            },
            {
                "category_name": "Violent video games",
                "supported_regions": [
                    "US",
                    "GB",
                    "AU",
                    "CA"
                ],
                "description": "ViolentVideoGamesDescriptionKey",
                "category_id": "202"
            },
            {
                "category_name": "Gambling and lotteries",
                "supported_regions": [
                    "US",
                    "GB",
                    "AU",
                    "CA"
                ],
                "description": "GamblingDescriptionKey",
                "category_id": "203"
            }
        ]
    }
}
(/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 每日平台更新简报 →