← 返回目录
📁 API Reference › Tools

获取运营商列表

你可以使用本接口获取不同国家或地区运营商的枚举值列表。

v1.2与v1.3版本对比

以下表格概括了 v1.2与v1.3接口的变化。 ``xtable |变化内容{17%}|v1.2{45%}|v1.3{38%}| |---|---|---| |接口路径|/v1.2/tools/carrier_v2/|/v1.3/tool/carrier/| |请求参数类型 |advertiser_id: number|advertiser_id: string| |返回参数名称和类型|carrier_v2_id(在carriers对象中): number<br>id(在value对象中): number|carrier_id: string<br>hni_id: string | |新增返回参数|/|countries`|


## 请求

**地址**
https://ads.tiktok.com/open_api/v1.3/tool/carrier/

**方法** GET

**Header**

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

参数

|字段|类型|描述|
|---|---|---|
|advertiser_id {必填}|string| 广告主 ID。 |

示例

(code curl http)
curl --get -H "Access-Token:xxx" \
--data-urlencode "advertiser_id=ADVERTISER_ID" \
https://business-api.tiktok.com/open_api/v1.3/tool/carrier/
(/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[]|返回数据。  |
#|countries|object[]| 国家或地区列表。|
##|country_code|string| 国家或地区代码。|
##|carriers|object[]| 当前国家或地区内运营商列表。 |
###|carrier_id|string| 运营商ID。您可在创建广告时使用。 |
###|in_use|boolean| 运营商是否可用于定向。|
###|name|string| 运营商名称。 |
###|value|object[]| 运营商MCC(移动国家代码)/MNC(移动网络代码)列表。 |
####|hni_id|string| 运营商HNI ID(家庭网络身份ID)。由移动国家代码和移动网络代码组成。|
####|in_use|boolean| HNI ID是否可用于定向。|
|request_id |string|请求的日志ID,唯一标识一个请求。  |

示例

(code Success-Response http)
HTTPS/1.1 200 OK

{
    "code": 0,
    "message": "OK",
    "request_id": "20220630234500010245242163145E6D44",
    "data": {
        "countries": [
            {
                "carriers": [
                    {
                        "in_use": true,
                        "value": [
                            {
                                "in_use": true,
                                "hni_id": "42402"
                            }
                        ],
                        "name": "AE: Etisalat",
                        "carrier_id": "4240000"
                    },
                    {
                        "in_use": true,
                        "value": [
                            {
                                "in_use": true,
                                "hni_id": "42403"
                            }
                        ],
                        "name": "AE: du",
                        "carrier_id": "4240001"
                    }
                ],
                "country_code": "AE"
            },
            {
                "carriers": [
                    {
                        "in_use": true,
                        "value": [
                            {
                                "in_use": true,
                                "hni_id": "722310"
                            },
                            {
                                "in_use": true,
                                "hni_id": "722320"
                            },
                            {
                                "in_use": true,
                                "hni_id": "722330"
                            }
                        ],
                        "name": "AR: Claro",
                        "carrier_id": "7220000"
                    },
                    ...
                ],
                "country_code": "AR",
            },
            ...
        ]
    }
}
(/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 每日平台更新简报 →