sino-bc-cli 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -14
- package/dist/SKILL.md +32 -14
- package/dist/api-doc/README.md +23 -5
- package/dist/api-doc/biz-line-query.md +2 -0
- package/dist/api-doc/biz-line-strategy.md +2 -0
- package/dist/api-doc/icenter-mcp-strategy-dimension-facebook-ad-list.md +13 -5
- package/dist/api-doc/icenter-mcp-strategy-dimension-google-ad-list.md +170 -0
- package/dist/api-doc/icenter-mcp-strategy-dimension-tiktok-ad-list.md +172 -0
- package/dist/api-doc/icenter-mcp-strategy-metrics-facebook-ad-list.md +11 -6
- package/dist/api-doc/icenter-mcp-strategy-metrics-google-ad-list.md +201 -0
- package/dist/api-doc/icenter-mcp-strategy-metrics-tiktok-ad-list.md +204 -0
- package/dist/api-doc/icenter-mcp-version-query.md +5 -3
- package/dist/index.js +1 -33
- package/package.json +6 -3
- package/dist/commands/api-endpoint.command.d.ts +0 -58
- package/dist/commands/api-endpoint.command.js +0 -212
- package/dist/commands/api-endpoint.command.js.map +0 -1
- package/dist/commands/api-list.command.d.ts +0 -39
- package/dist/commands/api-list.command.js +0 -179
- package/dist/commands/api-list.command.js.map +0 -1
- package/dist/commands/bc-api.command.d.ts +0 -20
- package/dist/commands/bc-api.command.js +0 -30
- package/dist/commands/bc-api.command.js.map +0 -1
- package/dist/commands/ic-api.command.d.ts +0 -20
- package/dist/commands/ic-api.command.js +0 -30
- package/dist/commands/ic-api.command.js.map +0 -1
- package/dist/commands/index.d.ts +0 -12
- package/dist/commands/index.js +0 -29
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/init.command.d.ts +0 -30
- package/dist/commands/init.command.js +0 -130
- package/dist/commands/init.command.js.map +0 -1
- package/dist/constants/api-catalog.d.ts +0 -34
- package/dist/constants/api-catalog.js +0 -118
- package/dist/constants/api-catalog.js.map +0 -1
- package/dist/constants/api-doc.d.ts +0 -13
- package/dist/constants/api-doc.js +0 -97
- package/dist/constants/api-doc.js.map +0 -1
- package/dist/constants/biz-line-api-doc.d.ts +0 -19
- package/dist/constants/biz-line-api-doc.js +0 -353
- package/dist/constants/biz-line-api-doc.js.map +0 -1
- package/dist/constants/gateway.d.ts +0 -35
- package/dist/constants/gateway.js +0 -113
- package/dist/constants/gateway.js.map +0 -1
- package/dist/constants/index.d.ts +0 -32
- package/dist/constants/index.js +0 -84
- package/dist/constants/index.js.map +0 -1
- package/dist/core/cli-app.d.ts +0 -51
- package/dist/core/cli-app.js +0 -283
- package/dist/core/cli-app.js.map +0 -1
- package/dist/core/command-registry.d.ts +0 -71
- package/dist/core/command-registry.js +0 -195
- package/dist/core/command-registry.js.map +0 -1
- package/dist/core/index.d.ts +0 -2
- package/dist/core/index.js +0 -9
- package/dist/core/index.js.map +0 -1
- package/dist/index.d.ts +0 -12
- package/dist/index.js.map +0 -1
- package/dist/types/index.d.ts +0 -122
- package/dist/types/index.js +0 -46
- package/dist/types/index.js.map +0 -1
- package/dist/utils/browser.d.ts +0 -52
- package/dist/utils/browser.js +0 -222
- package/dist/utils/browser.js.map +0 -1
- package/dist/utils/common.d.ts +0 -97
- package/dist/utils/common.js +0 -198
- package/dist/utils/common.js.map +0 -1
- package/dist/utils/crypto.d.ts +0 -53
- package/dist/utils/crypto.js +0 -153
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/http.d.ts +0 -58
- package/dist/utils/http.js +0 -188
- package/dist/utils/http.js.map +0 -1
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.js +0 -22
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -56
- package/dist/utils/logger.js +0 -161
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/prompt.d.ts +0 -18
- package/dist/utils/prompt.js +0 -77
- package/dist/utils/prompt.js.map +0 -1
- package/dist/utils/skill-install.d.ts +0 -74
- package/dist/utils/skill-install.js +0 -131
- package/dist/utils/skill-install.js.map +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# TikTok广告策略维度数据
|
|
2
|
+
|
|
3
|
+
- **name**:`icenter-mcp-strategy-dimension-tiktok-ad-list`
|
|
4
|
+
- **displayName**:TikTok广告策略维度数据
|
|
5
|
+
- **Tool ID**:`277feb43274646ad9fed802d6de50a87`
|
|
6
|
+
- **请求方法**:`POST`
|
|
7
|
+
- **集成类型**:REST
|
|
8
|
+
- **超时**:20000 ms
|
|
9
|
+
- **状态**:Online / Public / enabled
|
|
10
|
+
|
|
11
|
+
## 接口地址
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
https://test-agent.beyondclick.com/sino-icenter/mcp/strategy/dimension/tiktok/ad/list
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- **baseUrl**:`https://test-agent.beyondclick.com`(网关地址,三环境同一地址,唯一来源 `src/constants/gateway.ts` 的 `GATEWAY_CONFIG`)
|
|
18
|
+
- **path**:`/sino-icenter/mcp/strategy/dimension/tiktok/ad/list`
|
|
19
|
+
|
|
20
|
+
> 一律经网关调用,不要直连 iCenter 服务地址。
|
|
21
|
+
|
|
22
|
+
## 说明
|
|
23
|
+
|
|
24
|
+
查询 TikTok 渠道的广告策略配置数据。按指定广告账户和日期范围,返回广告的策略设置明细(广告目标、成效目标、创意类型、出价方式、调整出价、转化出价、深度转化出价、兴趣词包、年龄、性别等),用于分析某批账户在某段时间内各广告的策略配置分布。
|
|
25
|
+
|
|
26
|
+
转化出价(`conversion_bid`)和深度转化出价(`deep_cpabid`)是 TikTok 渠道独有的维度。
|
|
27
|
+
|
|
28
|
+
本接口**只返回策略维度**,不含消耗、点击等成效指标。需要成效数据请改用 [`icenter-mcp-strategy-metrics-tiktok-ad-list`](./icenter-mcp-strategy-metrics-tiktok-ad-list.md)。
|
|
29
|
+
|
|
30
|
+
**国家维度特别说明**:`country_code` 必须单独传入,不能和任何其他维度同时传,否则会报错「country_code 不能和其他维度同时传入」。查国家维度时服务端会转走跨渠道广告数据接口,只返回按国家分组的数据。
|
|
31
|
+
|
|
32
|
+
## 请求头
|
|
33
|
+
|
|
34
|
+
| Header | 值 |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| Content-Type | `application/json` |
|
|
37
|
+
|
|
38
|
+
## 请求参数
|
|
39
|
+
|
|
40
|
+
请求体为 JSON object。
|
|
41
|
+
|
|
42
|
+
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|
|
43
|
+
| --- | --- | --- | --- | --- |
|
|
44
|
+
| startDate | string | 是 | — | 开始日期,格式 `yyyy-MM-dd`,例如 `2026-08-01` |
|
|
45
|
+
| endDate | string | 是 | — | 结束日期,格式 `yyyy-MM-dd`,例如 `2026-08-31` |
|
|
46
|
+
| dimensionValues | object | 是 | — | 过滤条件,**仅支持 `account_id` 一个 key**,传其他 key 会报错 |
|
|
47
|
+
| dimensions | string[] | 是 | — | 分组维度,必传且**不能为空数组**,否则返回结果为空 |
|
|
48
|
+
| order | string | 否 | — | 排序字段,填单个维度 code,取值范围为 `dimensions` 的可选值。不必包含在已传的 `dimensions` 中,服务端会自动补入参与排序,但该字段不会作为列返回 |
|
|
49
|
+
| orderType | string | 否 | `asc` | 排序方向:`desc` / `asc` |
|
|
50
|
+
| page | integer | 否 | `1` | 页码,从 1 开始 |
|
|
51
|
+
| size | integer | 否 | `10` | 每页条数,建议显式传且不超过 1000 |
|
|
52
|
+
|
|
53
|
+
### dimensionValues
|
|
54
|
+
|
|
55
|
+
| 字段 | 类型 | 必填 | 说明 |
|
|
56
|
+
| --- | --- | --- | --- |
|
|
57
|
+
| account_id | string[] | 是 | 广告账户 ID(带格式),必须带前缀,例如 `act_1036928420879324`。最多传 500 个 |
|
|
58
|
+
|
|
59
|
+
### dimensions 可选值
|
|
60
|
+
|
|
61
|
+
| code | 含义 |
|
|
62
|
+
| --- | --- |
|
|
63
|
+
| calendar_date | 投放日期 |
|
|
64
|
+
| account_id | 广告账户 |
|
|
65
|
+
| account_name | 账户名称 |
|
|
66
|
+
| campaign_id | 广告系列 ID |
|
|
67
|
+
| campaign_name | 广告系列名称 |
|
|
68
|
+
| adgroup_id | 广告组 ID |
|
|
69
|
+
| adgroup_name | 广告组名称 |
|
|
70
|
+
| ad_id | 广告 ID |
|
|
71
|
+
| ad_name | 广告名称 |
|
|
72
|
+
| bid_amount | 调整出价 |
|
|
73
|
+
| objective | 广告目标 |
|
|
74
|
+
| optimization_goal | 成效目标 |
|
|
75
|
+
| ad_format | 创意类型 |
|
|
76
|
+
| bid_strategy | 出价方式 |
|
|
77
|
+
| audience_type | 受众类型 |
|
|
78
|
+
| targeting_interests | 兴趣词包 |
|
|
79
|
+
| targeting_age | 年龄 |
|
|
80
|
+
| targeting_genders | 性别 |
|
|
81
|
+
| conversion_bid | 转化出价 |
|
|
82
|
+
| deep_cpabid | 深度转化出价 |
|
|
83
|
+
| country_code | 国家(必须单独传,不能和其他维度同时传) |
|
|
84
|
+
|
|
85
|
+
## 返回格式
|
|
86
|
+
|
|
87
|
+
- `result.data` 为数据行数组,每行的每个字段有两个 key:
|
|
88
|
+
- **原始值**:key 即请求的 code,做计算或比较时用这个
|
|
89
|
+
- **展示值**:key 加 `display_` 前缀,直接呈现给用户时用这个,空值为 `"-"`
|
|
90
|
+
- `result.headerMap` 是字段 code 到中文列名的映射,用于给用户展示列名
|
|
91
|
+
- `result.total` 为总条数,`result.page` 和 `result.size` 为当前分页
|
|
92
|
+
- 外层 `code=0` 表示成功;非 0 时 `result` 为 `null`,失败原因在 `message` 字段里
|
|
93
|
+
|
|
94
|
+
## 请求示例
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"startDate": "2026-08-01",
|
|
99
|
+
"endDate": "2026-08-31",
|
|
100
|
+
"dimensionValues": {
|
|
101
|
+
"account_id": ["act_1036928420879324"]
|
|
102
|
+
},
|
|
103
|
+
"dimensions": [
|
|
104
|
+
"account_id",
|
|
105
|
+
"ad_id",
|
|
106
|
+
"ad_name",
|
|
107
|
+
"objective",
|
|
108
|
+
"optimization_goal",
|
|
109
|
+
"ad_format",
|
|
110
|
+
"bid_strategy",
|
|
111
|
+
"conversion_bid"
|
|
112
|
+
],
|
|
113
|
+
"order": "ad_id",
|
|
114
|
+
"orderType": "asc",
|
|
115
|
+
"page": 1,
|
|
116
|
+
"size": 20
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## 成功响应示例
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"code": 0,
|
|
125
|
+
"message": "success",
|
|
126
|
+
"result": {
|
|
127
|
+
"page": 1,
|
|
128
|
+
"size": 20,
|
|
129
|
+
"total": 1,
|
|
130
|
+
"headerMap": {
|
|
131
|
+
"account_id": "广告账户",
|
|
132
|
+
"ad_id": "广告ID",
|
|
133
|
+
"ad_name": "广告名称",
|
|
134
|
+
"objective": "广告目标",
|
|
135
|
+
"optimization_goal": "成效目标",
|
|
136
|
+
"ad_format": "创意类型",
|
|
137
|
+
"bid_strategy": "出价方式",
|
|
138
|
+
"conversion_bid": "转化出价"
|
|
139
|
+
},
|
|
140
|
+
"data": [
|
|
141
|
+
{
|
|
142
|
+
"account_id": "act_1036928420879324",
|
|
143
|
+
"display_account_id": "act_1036928420879324",
|
|
144
|
+
"ad_id": "120210000000000001",
|
|
145
|
+
"display_ad_id": "120210000000000001",
|
|
146
|
+
"ad_name": "示例广告",
|
|
147
|
+
"display_ad_name": "示例广告",
|
|
148
|
+
"objective": "CONVERSIONS",
|
|
149
|
+
"display_objective": "转化",
|
|
150
|
+
"optimization_goal": "CONVERT",
|
|
151
|
+
"display_optimization_goal": "转化",
|
|
152
|
+
"ad_format": "SINGLE_VIDEO",
|
|
153
|
+
"display_ad_format": "单视频",
|
|
154
|
+
"bid_strategy": "BID_TYPE_CUSTOM",
|
|
155
|
+
"display_bid_strategy": "自定义出价",
|
|
156
|
+
"conversion_bid": "12.5",
|
|
157
|
+
"display_conversion_bid": "12.5"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## 失败响应示例
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"code": 1,
|
|
169
|
+
"message": "country_code 不能和其他维度同时传入",
|
|
170
|
+
"result": null
|
|
171
|
+
}
|
|
172
|
+
```
|
|
@@ -11,15 +11,17 @@
|
|
|
11
11
|
## 接口地址
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
https://
|
|
14
|
+
https://test-agent.beyondclick.com/sino-icenter/mcp/strategy/metrics/facebook/ad/list
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
- **baseUrl**:`https://
|
|
17
|
+
- **baseUrl**:`https://test-agent.beyondclick.com`(网关地址,三环境同一地址,唯一来源 `src/constants/gateway.ts` 的 `GATEWAY_CONFIG`)
|
|
18
18
|
- **path**:`/sino-icenter/mcp/strategy/metrics/facebook/ad/list`
|
|
19
19
|
|
|
20
|
+
> 一律经网关调用,不要直连 iCenter 服务地址。
|
|
21
|
+
|
|
20
22
|
## 说明
|
|
21
23
|
|
|
22
|
-
查询 Facebook(Meta
|
|
24
|
+
查询 Facebook(Meta)渠道广告的策略维度加成效指标数据。在广告策略配置(广告目标、成效目标、创意类型、出价方式、受众定向等)的分组下,返回消耗、曝光、点击、购买、安装等成效指标,用于分析哪种策略配置带来更好的投放效果。
|
|
23
25
|
|
|
24
26
|
数据最多支持**近 21 天**。
|
|
25
27
|
|
|
@@ -68,17 +70,16 @@ https://o-test-tc-sino-icenter.meetsocial.com/sino-icenter/mcp/strategy/metrics/
|
|
|
68
70
|
| ad_name | 广告名称 |
|
|
69
71
|
| objective | 广告目标 |
|
|
70
72
|
| optimization_goal | 成效目标 |
|
|
73
|
+
| ad_format | 创意类型 |
|
|
71
74
|
| bid_strategy | 出价方式 |
|
|
72
75
|
| audience_type | 受众类型 |
|
|
73
|
-
| targeting_geo_countries | 定向国家 |
|
|
74
|
-
| targeting_geo_country_groups | 定向国家分组 |
|
|
75
76
|
| targeting_interests | 兴趣词包 |
|
|
76
77
|
| targeting_flexible_interests | 弹性兴趣词包 |
|
|
77
78
|
| targeting_exclusion_interests | 排除兴趣词包 |
|
|
78
79
|
| targeting_age | 年龄 |
|
|
79
80
|
| targeting_genders | 性别 |
|
|
80
81
|
|
|
81
|
-
> 与维度接口相比,本接口的 `dimensions` **不含** `bid_amount
|
|
82
|
+
> 与维度接口相比,本接口的 `dimensions` **不含** `bid_amount`(调整出价)、`country_code`(国家)。
|
|
82
83
|
|
|
83
84
|
### indicators 可选值
|
|
84
85
|
|
|
@@ -122,6 +123,7 @@ https://o-test-tc-sino-icenter.meetsocial.com/sino-icenter/mcp/strategy/metrics/
|
|
|
122
123
|
"account_id",
|
|
123
124
|
"objective",
|
|
124
125
|
"optimization_goal",
|
|
126
|
+
"ad_format",
|
|
125
127
|
"bid_strategy"
|
|
126
128
|
],
|
|
127
129
|
"indicators": [
|
|
@@ -153,6 +155,7 @@ https://o-test-tc-sino-icenter.meetsocial.com/sino-icenter/mcp/strategy/metrics/
|
|
|
153
155
|
"account_id": "广告账户",
|
|
154
156
|
"objective": "广告目标",
|
|
155
157
|
"optimization_goal": "成效目标",
|
|
158
|
+
"ad_format": "创意类型",
|
|
156
159
|
"bid_strategy": "出价方式",
|
|
157
160
|
"spend_usd": "Spend",
|
|
158
161
|
"impressions": "Impressions",
|
|
@@ -168,6 +171,8 @@ https://o-test-tc-sino-icenter.meetsocial.com/sino-icenter/mcp/strategy/metrics/
|
|
|
168
171
|
"display_objective": "转化",
|
|
169
172
|
"optimization_goal": "OFFSITE_CONVERSIONS",
|
|
170
173
|
"display_optimization_goal": "网站转化",
|
|
174
|
+
"ad_format": "SINGLE_IMAGE",
|
|
175
|
+
"display_ad_format": "单图",
|
|
171
176
|
"bid_strategy": "LOWEST_COST_WITHOUT_CAP",
|
|
172
177
|
"display_bid_strategy": "最低成本",
|
|
173
178
|
"spend_usd": 618.42,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Google广告策略成效数据
|
|
2
|
+
|
|
3
|
+
- **name**:`icenter-mcp-strategy-metrics-google-ad-list`
|
|
4
|
+
- **displayName**:Google广告策略成效数据
|
|
5
|
+
- **Tool ID**:`9e9d2617c7d64a57b7848dafc8eb5cb3`
|
|
6
|
+
- **请求方法**:`POST`
|
|
7
|
+
- **集成类型**:REST
|
|
8
|
+
- **超时**:20000 ms
|
|
9
|
+
- **状态**:Online / Public / enabled
|
|
10
|
+
|
|
11
|
+
## 接口地址
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
https://test-agent.beyondclick.com/sino-icenter/mcp/strategy/metrics/google/ad/list
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- **baseUrl**:`https://test-agent.beyondclick.com`(网关地址,三环境同一地址,唯一来源 `src/constants/gateway.ts` 的 `GATEWAY_CONFIG`)
|
|
18
|
+
- **path**:`/sino-icenter/mcp/strategy/metrics/google/ad/list`
|
|
19
|
+
|
|
20
|
+
> 一律经网关调用,不要直连 iCenter 服务地址。
|
|
21
|
+
|
|
22
|
+
## 说明
|
|
23
|
+
|
|
24
|
+
查询 Google 渠道广告的策略维度加成效指标数据。在广告策略配置(成效目标、创意类型、出价方式、广告系列类型、关键字等)的分组下,返回消耗、曝光、点击、购买、安装等成效指标,用于分析哪种策略配置带来更好的投放效果。
|
|
25
|
+
|
|
26
|
+
Google 渠道**不支持广告目标和兴趣词包维度**。数据最多支持**近 21 天**。
|
|
27
|
+
|
|
28
|
+
仅需策略配置、不含成效指标时,请改用 [`icenter-mcp-strategy-dimension-google-ad-list`](./icenter-mcp-strategy-dimension-google-ad-list.md)。
|
|
29
|
+
|
|
30
|
+
## 请求头
|
|
31
|
+
|
|
32
|
+
| Header | 值 |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| Content-Type | `application/json` |
|
|
35
|
+
|
|
36
|
+
## 请求参数
|
|
37
|
+
|
|
38
|
+
请求体为 JSON object。
|
|
39
|
+
|
|
40
|
+
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|
|
41
|
+
| --- | --- | --- | --- | --- |
|
|
42
|
+
| startDate | string | 是 | — | 开始日期,格式 `yyyy-MM-dd`,例如 `2026-08-01` |
|
|
43
|
+
| endDate | string | 是 | — | 结束日期,格式 `yyyy-MM-dd`,例如 `2026-08-31`。最多支持查询近 21 天 |
|
|
44
|
+
| dimensionValues | object | 是 | — | 过滤条件,**仅支持 `account_id` 一个 key**,传其他 key 会报错 |
|
|
45
|
+
| dimensions | string[] | 是 | — | 分组维度,必传且**不能为空数组**,否则返回结果为空 |
|
|
46
|
+
| indicators | string[] | 是 | — | 成效指标,必传且**不能为空数组** |
|
|
47
|
+
| order | string | 否 | — | 排序字段,填单个 code,取值范围为 `dimensions` 或 `indicators` 的可选值。不必包含在已传的字段中,服务端会自动补入参与排序,但该字段不会作为列返回 |
|
|
48
|
+
| orderType | string | 否 | `asc` | 排序方向:`desc` / `asc` |
|
|
49
|
+
| page | integer | 否 | `1` | 页码,从 1 开始 |
|
|
50
|
+
| size | integer | 否 | `10` | 每页条数,建议显式传且不超过 1000 |
|
|
51
|
+
|
|
52
|
+
### dimensionValues
|
|
53
|
+
|
|
54
|
+
| 字段 | 类型 | 必填 | 说明 |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
56
|
+
| account_id | string[] | 是 | 广告账户 ID(带格式),必须带前缀,例如 `act_1036928420879324`。最多传 500 个 |
|
|
57
|
+
|
|
58
|
+
### dimensions 可选值
|
|
59
|
+
|
|
60
|
+
| code | 含义 |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| calendar_date | 投放日期 |
|
|
63
|
+
| account_id | 广告账户 |
|
|
64
|
+
| account_name | 账户名称 |
|
|
65
|
+
| campaign_id | 广告系列 ID |
|
|
66
|
+
| campaign_name | 广告系列名称 |
|
|
67
|
+
| adgroup_id | 广告组 ID |
|
|
68
|
+
| adgroup_name | 广告组名称 |
|
|
69
|
+
| ad_id | 广告 ID |
|
|
70
|
+
| ad_name | 广告名称 |
|
|
71
|
+
| optimization_goal | 成效目标 |
|
|
72
|
+
| ad_format | 创意类型 |
|
|
73
|
+
| bid_strategy | 出价方式 |
|
|
74
|
+
| audience_type | 受众类型 |
|
|
75
|
+
| targeting_age | 年龄 |
|
|
76
|
+
| targeting_genders | 性别 |
|
|
77
|
+
| cpc_bid_amount | CPC 出价 |
|
|
78
|
+
| cpm_bid_amount | CPM 出价 |
|
|
79
|
+
| cpv_bid_amount | CPV 出价 |
|
|
80
|
+
| advertising_channel_type | 广告系列类型 |
|
|
81
|
+
| keywords | 关键字 |
|
|
82
|
+
|
|
83
|
+
> 与维度接口相比,本接口的 `dimensions` **不含** `country_code`。Google 渠道**不含** `objective`、`targeting_interests`。
|
|
84
|
+
|
|
85
|
+
### indicators 可选值
|
|
86
|
+
|
|
87
|
+
| code | 含义 |
|
|
88
|
+
| --- | --- |
|
|
89
|
+
| spend_usd | 消耗金额,美元 |
|
|
90
|
+
| impressions | 曝光量 |
|
|
91
|
+
| clicks | 点击量 |
|
|
92
|
+
| video_views | 视频观看次数 |
|
|
93
|
+
| add_to_cart | 添加购物车次数 |
|
|
94
|
+
| checkouts | 发起结账次数 |
|
|
95
|
+
| purchase | 购买次数 |
|
|
96
|
+
| purchase_value | 购买金额,美元 |
|
|
97
|
+
| installs | 应用安装量 |
|
|
98
|
+
| complete_registration | 完成注册量 |
|
|
99
|
+
| leads | 留下潜客信息次数 |
|
|
100
|
+
| engagement | 互动次数 |
|
|
101
|
+
|
|
102
|
+
## 返回格式
|
|
103
|
+
|
|
104
|
+
- `result.data` 为数据行数组,每行的每个字段有两个 key:
|
|
105
|
+
- **原始值**:key 即请求的 code,如 `spend_usd: 618.42`,做计算或比较时用这个
|
|
106
|
+
- **展示值**:key 加 `display_` 前缀,如 `display_spend_usd: "$618.42"`,直接呈现给用户时用这个,空值为 `"-"`
|
|
107
|
+
- `result.headerMap` 是字段 code 到列名的映射:维度列名为中文,指标列名为英文(如 `spend_usd=Spend`)
|
|
108
|
+
- `result.total` 为总条数,`result.page` 和 `result.size` 为当前分页
|
|
109
|
+
- `result.conflictField` 是传入但当前渠道不支持的指标,会被忽略且不报错;为空数组表示全部指标都生效
|
|
110
|
+
- 外层 `code=0` 表示成功;非 0 时 `result` 为 `null`,失败原因在 `message` 字段里
|
|
111
|
+
|
|
112
|
+
## 请求示例
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"startDate": "2026-08-10",
|
|
117
|
+
"endDate": "2026-08-31",
|
|
118
|
+
"dimensionValues": {
|
|
119
|
+
"account_id": ["act_1036928420879324"]
|
|
120
|
+
},
|
|
121
|
+
"dimensions": [
|
|
122
|
+
"account_id",
|
|
123
|
+
"optimization_goal",
|
|
124
|
+
"ad_format",
|
|
125
|
+
"bid_strategy",
|
|
126
|
+
"advertising_channel_type"
|
|
127
|
+
],
|
|
128
|
+
"indicators": [
|
|
129
|
+
"spend_usd",
|
|
130
|
+
"impressions",
|
|
131
|
+
"clicks",
|
|
132
|
+
"purchase",
|
|
133
|
+
"purchase_value"
|
|
134
|
+
],
|
|
135
|
+
"order": "spend_usd",
|
|
136
|
+
"orderType": "desc",
|
|
137
|
+
"page": 1,
|
|
138
|
+
"size": 20
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 成功响应示例
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"code": 0,
|
|
147
|
+
"message": "success",
|
|
148
|
+
"result": {
|
|
149
|
+
"page": 1,
|
|
150
|
+
"size": 20,
|
|
151
|
+
"total": 1,
|
|
152
|
+
"conflictField": [],
|
|
153
|
+
"headerMap": {
|
|
154
|
+
"account_id": "广告账户",
|
|
155
|
+
"optimization_goal": "成效目标",
|
|
156
|
+
"ad_format": "创意类型",
|
|
157
|
+
"bid_strategy": "出价方式",
|
|
158
|
+
"advertising_channel_type": "广告系列类型",
|
|
159
|
+
"spend_usd": "Spend",
|
|
160
|
+
"impressions": "Impressions",
|
|
161
|
+
"clicks": "Clicks",
|
|
162
|
+
"purchase": "Purchase",
|
|
163
|
+
"purchase_value": "Purchase Value"
|
|
164
|
+
},
|
|
165
|
+
"data": [
|
|
166
|
+
{
|
|
167
|
+
"account_id": "act_1036928420879324",
|
|
168
|
+
"display_account_id": "act_1036928420879324",
|
|
169
|
+
"optimization_goal": "CONVERSIONS",
|
|
170
|
+
"display_optimization_goal": "转化",
|
|
171
|
+
"ad_format": "RESPONSIVE_SEARCH_AD",
|
|
172
|
+
"display_ad_format": "自适应搜索广告",
|
|
173
|
+
"bid_strategy": "TARGET_CPA",
|
|
174
|
+
"display_bid_strategy": "目标 CPA",
|
|
175
|
+
"advertising_channel_type": "SEARCH",
|
|
176
|
+
"display_advertising_channel_type": "搜索",
|
|
177
|
+
"spend_usd": 618.42,
|
|
178
|
+
"display_spend_usd": "$618.42",
|
|
179
|
+
"impressions": 120340,
|
|
180
|
+
"display_impressions": "120,340",
|
|
181
|
+
"clicks": 3210,
|
|
182
|
+
"display_clicks": "3,210",
|
|
183
|
+
"purchase": 86,
|
|
184
|
+
"display_purchase": "86",
|
|
185
|
+
"purchase_value": 4521.3,
|
|
186
|
+
"display_purchase_value": "$4,521.30"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## 失败响应示例
|
|
194
|
+
|
|
195
|
+
```json
|
|
196
|
+
{
|
|
197
|
+
"code": 1,
|
|
198
|
+
"message": "查询区间超过近21天限制",
|
|
199
|
+
"result": null
|
|
200
|
+
}
|
|
201
|
+
```
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# TikTok广告策略成效数据
|
|
2
|
+
|
|
3
|
+
- **name**:`icenter-mcp-strategy-metrics-tiktok-ad-list`
|
|
4
|
+
- **displayName**:TikTok广告策略成效数据
|
|
5
|
+
- **Tool ID**:`7a4fd873723a41b28636d64d46b04bce`
|
|
6
|
+
- **请求方法**:`POST`
|
|
7
|
+
- **集成类型**:REST
|
|
8
|
+
- **超时**:20000 ms
|
|
9
|
+
- **状态**:Online / Public / enabled
|
|
10
|
+
|
|
11
|
+
## 接口地址
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
https://test-agent.beyondclick.com/sino-icenter/mcp/strategy/metrics/tiktok/ad/list
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- **baseUrl**:`https://test-agent.beyondclick.com`(网关地址,三环境同一地址,唯一来源 `src/constants/gateway.ts` 的 `GATEWAY_CONFIG`)
|
|
18
|
+
- **path**:`/sino-icenter/mcp/strategy/metrics/tiktok/ad/list`
|
|
19
|
+
|
|
20
|
+
> 一律经网关调用,不要直连 iCenter 服务地址。
|
|
21
|
+
|
|
22
|
+
## 说明
|
|
23
|
+
|
|
24
|
+
查询 TikTok 渠道广告的策略维度加成效指标数据。在广告策略配置(广告目标、成效目标、创意类型、出价方式、转化出价、深度转化出价、兴趣词包等)的分组下,返回消耗、曝光、点击、购买、安装等成效指标,用于分析哪种策略配置带来更好的投放效果。
|
|
25
|
+
|
|
26
|
+
数据最多支持**近 21 天**。
|
|
27
|
+
|
|
28
|
+
仅需策略配置、不含成效指标时,请改用 [`icenter-mcp-strategy-dimension-tiktok-ad-list`](./icenter-mcp-strategy-dimension-tiktok-ad-list.md)。
|
|
29
|
+
|
|
30
|
+
## 请求头
|
|
31
|
+
|
|
32
|
+
| Header | 值 |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| Content-Type | `application/json` |
|
|
35
|
+
|
|
36
|
+
## 请求参数
|
|
37
|
+
|
|
38
|
+
请求体为 JSON object。
|
|
39
|
+
|
|
40
|
+
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|
|
41
|
+
| --- | --- | --- | --- | --- |
|
|
42
|
+
| startDate | string | 是 | — | 开始日期,格式 `yyyy-MM-dd`,例如 `2026-08-01` |
|
|
43
|
+
| endDate | string | 是 | — | 结束日期,格式 `yyyy-MM-dd`,例如 `2026-08-31`。最多支持查询近 21 天 |
|
|
44
|
+
| dimensionValues | object | 是 | — | 过滤条件,**仅支持 `account_id` 一个 key**,传其他 key 会报错 |
|
|
45
|
+
| dimensions | string[] | 是 | — | 分组维度,必传且**不能为空数组**,否则返回结果为空 |
|
|
46
|
+
| indicators | string[] | 是 | — | 成效指标,必传且**不能为空数组** |
|
|
47
|
+
| order | string | 否 | — | 排序字段,填单个 code,取值范围为 `dimensions` 或 `indicators` 的可选值。不必包含在已传的字段中,服务端会自动补入参与排序,但该字段不会作为列返回 |
|
|
48
|
+
| orderType | string | 否 | `asc` | 排序方向:`desc` / `asc` |
|
|
49
|
+
| page | integer | 否 | `1` | 页码,从 1 开始 |
|
|
50
|
+
| size | integer | 否 | `10` | 每页条数,建议显式传且不超过 1000 |
|
|
51
|
+
|
|
52
|
+
### dimensionValues
|
|
53
|
+
|
|
54
|
+
| 字段 | 类型 | 必填 | 说明 |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
56
|
+
| account_id | string[] | 是 | 广告账户 ID(带格式),必须带前缀,例如 `act_1036928420879324`。最多传 500 个 |
|
|
57
|
+
|
|
58
|
+
### dimensions 可选值
|
|
59
|
+
|
|
60
|
+
| code | 含义 |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| calendar_date | 投放日期 |
|
|
63
|
+
| account_id | 广告账户 |
|
|
64
|
+
| account_name | 账户名称 |
|
|
65
|
+
| campaign_id | 广告系列 ID |
|
|
66
|
+
| campaign_name | 广告系列名称 |
|
|
67
|
+
| adgroup_id | 广告组 ID |
|
|
68
|
+
| adgroup_name | 广告组名称 |
|
|
69
|
+
| ad_id | 广告 ID |
|
|
70
|
+
| ad_name | 广告名称 |
|
|
71
|
+
| optimization_goal | 成效目标 |
|
|
72
|
+
| ad_format | 创意类型 |
|
|
73
|
+
| bid_strategy | 出价方式 |
|
|
74
|
+
| audience_type | 受众类型 |
|
|
75
|
+
| targeting_age | 年龄 |
|
|
76
|
+
| targeting_genders | 性别 |
|
|
77
|
+
| objective | 广告目标 |
|
|
78
|
+
| targeting_interests | 兴趣词包 |
|
|
79
|
+
| conversion_bid | 转化出价 |
|
|
80
|
+
| deep_cpabid | 深度转化出价 |
|
|
81
|
+
|
|
82
|
+
> 与维度接口相比,本接口的 `dimensions` **不含** `bid_amount`(调整出价)、`country_code`(国家)。
|
|
83
|
+
|
|
84
|
+
### indicators 可选值
|
|
85
|
+
|
|
86
|
+
| code | 含义 |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| spend_usd | 消耗金额,美元 |
|
|
89
|
+
| impressions | 曝光量 |
|
|
90
|
+
| clicks | 点击量 |
|
|
91
|
+
| video_views | 视频观看次数 |
|
|
92
|
+
| add_to_cart | 添加购物车次数 |
|
|
93
|
+
| checkouts | 发起结账次数 |
|
|
94
|
+
| purchase | 购买次数 |
|
|
95
|
+
| purchase_value | 购买金额,美元 |
|
|
96
|
+
| installs | 应用安装量 |
|
|
97
|
+
| complete_registration | 完成注册量 |
|
|
98
|
+
| leads | 留下潜客信息次数 |
|
|
99
|
+
| engagement | 互动次数 |
|
|
100
|
+
|
|
101
|
+
## 返回格式
|
|
102
|
+
|
|
103
|
+
- `result.data` 为数据行数组,每行的每个字段有两个 key:
|
|
104
|
+
- **原始值**:key 即请求的 code,如 `spend_usd: 618.42`,做计算或比较时用这个
|
|
105
|
+
- **展示值**:key 加 `display_` 前缀,如 `display_spend_usd: "$618.42"`,直接呈现给用户时用这个,空值为 `"-"`
|
|
106
|
+
- `result.headerMap` 是字段 code 到列名的映射:维度列名为中文,指标列名为英文(如 `spend_usd=Spend`)
|
|
107
|
+
- `result.total` 为总条数,`result.page` 和 `result.size` 为当前分页
|
|
108
|
+
- `result.conflictField` 是传入但当前渠道不支持的指标,会被忽略且不报错;为空数组表示全部指标都生效
|
|
109
|
+
- 外层 `code=0` 表示成功;非 0 时 `result` 为 `null`,失败原因在 `message` 字段里
|
|
110
|
+
|
|
111
|
+
## 请求示例
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"startDate": "2026-08-10",
|
|
116
|
+
"endDate": "2026-08-31",
|
|
117
|
+
"dimensionValues": {
|
|
118
|
+
"account_id": ["act_1036928420879324"]
|
|
119
|
+
},
|
|
120
|
+
"dimensions": [
|
|
121
|
+
"account_id",
|
|
122
|
+
"objective",
|
|
123
|
+
"optimization_goal",
|
|
124
|
+
"ad_format",
|
|
125
|
+
"bid_strategy",
|
|
126
|
+
"conversion_bid"
|
|
127
|
+
],
|
|
128
|
+
"indicators": [
|
|
129
|
+
"spend_usd",
|
|
130
|
+
"impressions",
|
|
131
|
+
"clicks",
|
|
132
|
+
"purchase",
|
|
133
|
+
"purchase_value"
|
|
134
|
+
],
|
|
135
|
+
"order": "spend_usd",
|
|
136
|
+
"orderType": "desc",
|
|
137
|
+
"page": 1,
|
|
138
|
+
"size": 20
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 成功响应示例
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"code": 0,
|
|
147
|
+
"message": "success",
|
|
148
|
+
"result": {
|
|
149
|
+
"page": 1,
|
|
150
|
+
"size": 20,
|
|
151
|
+
"total": 1,
|
|
152
|
+
"conflictField": [],
|
|
153
|
+
"headerMap": {
|
|
154
|
+
"account_id": "广告账户",
|
|
155
|
+
"objective": "广告目标",
|
|
156
|
+
"optimization_goal": "成效目标",
|
|
157
|
+
"ad_format": "创意类型",
|
|
158
|
+
"bid_strategy": "出价方式",
|
|
159
|
+
"conversion_bid": "转化出价",
|
|
160
|
+
"spend_usd": "Spend",
|
|
161
|
+
"impressions": "Impressions",
|
|
162
|
+
"clicks": "Clicks",
|
|
163
|
+
"purchase": "Purchase",
|
|
164
|
+
"purchase_value": "Purchase Value"
|
|
165
|
+
},
|
|
166
|
+
"data": [
|
|
167
|
+
{
|
|
168
|
+
"account_id": "act_1036928420879324",
|
|
169
|
+
"display_account_id": "act_1036928420879324",
|
|
170
|
+
"objective": "CONVERSIONS",
|
|
171
|
+
"display_objective": "转化",
|
|
172
|
+
"optimization_goal": "CONVERT",
|
|
173
|
+
"display_optimization_goal": "转化",
|
|
174
|
+
"ad_format": "SINGLE_VIDEO",
|
|
175
|
+
"display_ad_format": "单视频",
|
|
176
|
+
"bid_strategy": "BID_TYPE_CUSTOM",
|
|
177
|
+
"display_bid_strategy": "自定义出价",
|
|
178
|
+
"conversion_bid": "12.5",
|
|
179
|
+
"display_conversion_bid": "12.5",
|
|
180
|
+
"spend_usd": 618.42,
|
|
181
|
+
"display_spend_usd": "$618.42",
|
|
182
|
+
"impressions": 120340,
|
|
183
|
+
"display_impressions": "120,340",
|
|
184
|
+
"clicks": 3210,
|
|
185
|
+
"display_clicks": "3,210",
|
|
186
|
+
"purchase": 86,
|
|
187
|
+
"display_purchase": "86",
|
|
188
|
+
"purchase_value": 4521.3,
|
|
189
|
+
"display_purchase_value": "$4,521.30"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## 失败响应示例
|
|
197
|
+
|
|
198
|
+
```json
|
|
199
|
+
{
|
|
200
|
+
"code": 1,
|
|
201
|
+
"message": "查询区间超过近21天限制",
|
|
202
|
+
"result": null
|
|
203
|
+
}
|
|
204
|
+
```
|
|
@@ -11,12 +11,14 @@
|
|
|
11
11
|
## 接口地址
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
https://
|
|
14
|
+
https://test-agent.beyondclick.com/sino-icenter/version
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
- **baseUrl**:`https://
|
|
17
|
+
- **baseUrl**:`https://test-agent.beyondclick.com`(网关地址,三环境同一地址,唯一来源 `src/constants/gateway.ts` 的 `GATEWAY_CONFIG`)
|
|
18
18
|
- **path**:`/sino-icenter/version`
|
|
19
19
|
|
|
20
|
+
> 一律经网关调用,不要直连 iCenter 服务地址。
|
|
21
|
+
|
|
20
22
|
## 说明
|
|
21
23
|
|
|
22
24
|
查询 iCenter 服务 git 最新提交版本。无请求参数、无请求体。
|
|
@@ -33,7 +35,7 @@ https://o-test-tc-sino-icenter.meetsocial.com/sino-icenter/version
|
|
|
33
35
|
|
|
34
36
|
```http
|
|
35
37
|
GET /sino-icenter/version HTTP/1.1
|
|
36
|
-
Host:
|
|
38
|
+
Host: test-agent.beyondclick.com
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
## 响应说明
|