siluzan-tso-cli 1.1.58-beta.4 → 1.1.58-beta.5
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 +1 -1
- package/dist/index.js +69 -45
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/analytics/keyword-planner-workflows.md +3 -3
- package/dist/skill/references/core/intent-routing.md +1 -1
- package/dist/skill/references/core/workflows.md +2 -2
- package/dist/skill/references/google-ads/google-ads-read.md +1 -1
- package/dist/skill/references/google-ads/google-ads-write.md +3 -3
- package/dist/skill/references/google-ads/google-ads.md +1 -1
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
|
|
|
51
51
|
siluzan-tso init --force # 强制覆盖已存在文件
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
> **注意**:当前为测试版(1.1.58-beta.
|
|
54
|
+
> **注意**:当前为测试版(1.1.58-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/index.js
CHANGED
|
@@ -114282,6 +114282,12 @@ function campaignEditPatchPairs(input) {
|
|
|
114282
114282
|
if (input.manualCpcEnhanced !== void 0) {
|
|
114283
114283
|
pairs.push(["manualCpc_EnhancedCpcEnabled", input.manualCpcEnhanced]);
|
|
114284
114284
|
}
|
|
114285
|
+
if (input.targetSearchNetwork !== void 0) {
|
|
114286
|
+
pairs.push(["targetSearchNetwork", input.targetSearchNetwork]);
|
|
114287
|
+
}
|
|
114288
|
+
if (input.targetContentNetwork !== void 0) {
|
|
114289
|
+
pairs.push(["targetContentNetwork", input.targetContentNetwork]);
|
|
114290
|
+
}
|
|
114285
114291
|
return pairs;
|
|
114286
114292
|
}
|
|
114287
114293
|
function campaignStatusPatchPairs(status) {
|
|
@@ -117160,10 +117166,11 @@ async function runAdCampaignEdit(opts) {
|
|
|
117160
117166
|
targetSpendBidCeilingCents: opts.targetSpendBidCeiling !== void 0 ? toCentAmount(opts.targetSpendBidCeiling) : void 0,
|
|
117161
117167
|
targetCpaCents: opts.targetCpa !== void 0 ? toCentAmount(opts.targetCpa) : void 0,
|
|
117162
117168
|
targetRoas: opts.targetRoas,
|
|
117163
|
-
manualCpcEnhanced: opts.manualCpcEnhanced
|
|
117169
|
+
manualCpcEnhanced: opts.manualCpcEnhanced,
|
|
117170
|
+
targetSearchNetwork: opts.targetSearchNetwork,
|
|
117171
|
+
targetContentNetwork: opts.targetContentNetwork
|
|
117164
117172
|
});
|
|
117165
|
-
|
|
117166
|
-
if (patchPairs.length === 0 && !wantsNetwork) {
|
|
117173
|
+
if (patchPairs.length === 0) {
|
|
117167
117174
|
console.error("\n\u274C \u8BF7\u81F3\u5C11\u6307\u5B9A\u4E00\u4E2A\u4FEE\u6539\u9879\uFF08--name / --budget / --bidding / \u2026\uFF09\n");
|
|
117168
117175
|
process.exit(1);
|
|
117169
117176
|
}
|
|
@@ -117201,39 +117208,6 @@ async function runAdCampaignEdit(opts) {
|
|
|
117201
117208
|
return;
|
|
117202
117209
|
}
|
|
117203
117210
|
}
|
|
117204
|
-
if (wantsNetwork) {
|
|
117205
|
-
try {
|
|
117206
|
-
const fresh = await fetchCampaignRecord(detailUrl, config, opts.verbose);
|
|
117207
|
-
const networkBody = { ...fresh };
|
|
117208
|
-
if (opts.targetSearchNetwork !== void 0) {
|
|
117209
|
-
networkBody["targetSearchNetwork"] = opts.targetSearchNetwork;
|
|
117210
|
-
}
|
|
117211
|
-
if (opts.targetContentNetwork !== void 0) {
|
|
117212
|
-
networkBody["targetContentNetwork"] = opts.targetContentNetwork;
|
|
117213
|
-
}
|
|
117214
|
-
await apiFetch2(
|
|
117215
|
-
detailUrl,
|
|
117216
|
-
config,
|
|
117217
|
-
{ method: "PUT", body: JSON.stringify(networkBody) },
|
|
117218
|
-
opts.verbose
|
|
117219
|
-
);
|
|
117220
|
-
} catch (err) {
|
|
117221
|
-
await reportFailedCampaignPut({
|
|
117222
|
-
err,
|
|
117223
|
-
detailUrl,
|
|
117224
|
-
config,
|
|
117225
|
-
verbose: opts.verbose,
|
|
117226
|
-
budgetCentsBefore: readCampaignBudgetCents(campaign),
|
|
117227
|
-
jsonOut: opts.jsonOut,
|
|
117228
|
-
account: opts.account,
|
|
117229
|
-
id: opts.id,
|
|
117230
|
-
section: "ad-campaign-edit",
|
|
117231
|
-
commandLabel: "ad campaign-edit",
|
|
117232
|
-
failureLabel: "\u7F16\u8F91\u5E7F\u544A\u7CFB\u5217\u5931\u8D25"
|
|
117233
|
-
});
|
|
117234
|
-
return;
|
|
117235
|
-
}
|
|
117236
|
-
}
|
|
117237
117211
|
const parts = [];
|
|
117238
117212
|
if (opts.name !== void 0) parts.push(`\u540D\u79F0\u2192${opts.name}`);
|
|
117239
117213
|
if (opts.budget !== void 0) parts.push(`\u9884\u7B97\u2192${opts.budget}`);
|
|
@@ -125591,7 +125565,7 @@ function register21(program2) {
|
|
|
125591
125565
|
});
|
|
125592
125566
|
});
|
|
125593
125567
|
adCmd.command("campaign-edit").description(
|
|
125594
|
-
"\u7F16\u8F91\u641C\u7D22\u5E7F\u544A\u7CFB\u5217\u3002\u540D\u79F0
|
|
125568
|
+
"\u7F16\u8F91\u641C\u7D22\u5E7F\u544A\u7CFB\u5217\u3002\u540D\u79F0\u3001\u9884\u7B97\u3001\u51FA\u4EF7\u3001\u6295\u653E\u7F51\u7EDC\u90FD\u8D70\u5B57\u6BB5\u7EA7 PATCH\u3002\u81F3\u5C11\u4F20\u4E00\u4E2A\u4FEE\u6539\u9879"
|
|
125595
125569
|
).requiredOption("-a, --account <id>", "Google \u8D26\u6237 mediaCustomerId").requiredOption("--id <campaignId>", "\u5E7F\u544A\u7CFB\u5217 ID").option("--name <name>", "\u65B0\u540D\u79F0").option(
|
|
125596
125570
|
"--budget <amount>",
|
|
125597
125571
|
"\u65B0\u9884\u7B97\uFF0C\u4E3B\u5E01\u79CD\u91D1\u989D\uFF08\u5982 100 \u8868\u793A \xA5100\uFF1B\u652F\u6301\u5C0F\u6570\uFF1BCLI \u5185\u90E8\u81EA\u52A8 \xD7100 \u5199\u5165\u300C\u5206\u300D\u5B57\u6BB5\uFF09",
|
|
@@ -125613,9 +125587,13 @@ function register21(program2) {
|
|
|
125613
125587
|
(v) => v === "true"
|
|
125614
125588
|
).option(
|
|
125615
125589
|
"--search-network <bool>",
|
|
125616
|
-
"\
|
|
125590
|
+
"\u641C\u7D22\u5408\u4F5C\u4F19\u4F34\uFF1Atrue | false\u3002\u5173\u95ED\u4F20 false",
|
|
125617
125591
|
(v) => v === "true"
|
|
125618
|
-
).option(
|
|
125592
|
+
).option(
|
|
125593
|
+
"--content-network <bool>",
|
|
125594
|
+
"\u5C55\u793A\u7F51\u7EDC\u6269\u5C55\uFF1Atrue | false\u3002\u5173\u95ED\u4F20 false",
|
|
125595
|
+
(v) => v === "true"
|
|
125596
|
+
).option("--json-out <path>", "\u843D\u76D8\u6838\u9A8C\u7ED3\u679C\uFF08writeScope=search-field-patch\uFF09").option("-t, --token <token>", "Auth Token").option("--verbose", "\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F", false).action(
|
|
125619
125597
|
async (opts) => {
|
|
125620
125598
|
await runAdCampaignEdit({
|
|
125621
125599
|
token: opts.token,
|
|
@@ -129143,6 +129121,44 @@ function annotateKeywordSuggestWithAccountPresence(items3, accountNormSet) {
|
|
|
129143
129121
|
}
|
|
129144
129122
|
|
|
129145
129123
|
// src/commands/keyword-geo.ts
|
|
129124
|
+
var KNOWN_GEO_LABELS = {
|
|
129125
|
+
2840: "\u7F8E\u56FD",
|
|
129126
|
+
2826: "\u4E2D\u56FD"
|
|
129127
|
+
};
|
|
129128
|
+
function geoLabel(id) {
|
|
129129
|
+
const name2 = KNOWN_GEO_LABELS[id];
|
|
129130
|
+
return name2 ? `${name2}\uFF08${id}\uFF09` : String(id);
|
|
129131
|
+
}
|
|
129132
|
+
function describeKeywordTargetMarket(ids) {
|
|
129133
|
+
const geoTargetConstantIds = [...new Set(ids)];
|
|
129134
|
+
if (geoTargetConstantIds.length === 0) {
|
|
129135
|
+
return {
|
|
129136
|
+
geoTargetConstantIds,
|
|
129137
|
+
label: "\u672A\u9650\u5B9A\u56FD\u5BB6",
|
|
129138
|
+
unspecified: true,
|
|
129139
|
+
aggregated: false,
|
|
129140
|
+
note: "\u8FD9\u6B21\u6CA1\u6709 --geo\u3002\u6708\u641C\u7D22\u91CF\u3001CPC\u3001\u7ADE\u4E89\u5EA6\u672A\u6309\u56FD\u5BB6\u9650\u5B9A\uFF0C\u4E0D\u8981\u5199\u6210\u67D0\u4E00\u76EE\u6807\u5E02\u573A\uFF0C\u4E5F\u4E0D\u8981\u548C\u89C4\u5212\u5E08\u91CC\u9009\u4E86\u300C\u5168\u7403\u300D\u6216\u67D0\u4E2A\u56FD\u5BB6\u7684\u6570\u5B57\u5BF9\u6BD4\u3002"
|
|
129141
|
+
};
|
|
129142
|
+
}
|
|
129143
|
+
if (geoTargetConstantIds.length === 1) {
|
|
129144
|
+
const label3 = geoLabel(geoTargetConstantIds[0]);
|
|
129145
|
+
return {
|
|
129146
|
+
geoTargetConstantIds,
|
|
129147
|
+
label: label3,
|
|
129148
|
+
unspecified: false,
|
|
129149
|
+
aggregated: false,
|
|
129150
|
+
note: `\u6708\u641C\u7D22\u91CF\u3001CPC\u3001\u7ADE\u4E89\u5EA6\u53EA\u5C5E\u4E8E\u76EE\u6807\u5E02\u573A ${label3}\uFF0C\u4E0D\u662F\u5168\u7403\u3002\u5B98\u65B9\u89C4\u5212\u5E08\u82E5\u9009\u7684\u662F\u5168\u7403\u6216\u522B\u7684\u56FD\u5BB6\uFF0C\u6570\u5B57\u4E0D\u4F1A\u4E00\u81F4\u3002`
|
|
129151
|
+
};
|
|
129152
|
+
}
|
|
129153
|
+
const label2 = geoTargetConstantIds.map(geoLabel).join("\u3001");
|
|
129154
|
+
return {
|
|
129155
|
+
geoTargetConstantIds,
|
|
129156
|
+
label: `${label2}\uFF08\u6C47\u603B\uFF09`,
|
|
129157
|
+
unspecified: false,
|
|
129158
|
+
aggregated: true,
|
|
129159
|
+
note: `\u6708\u641C\u7D22\u91CF\u3001CPC\u3001\u7ADE\u4E89\u5EA6\u662F ${label2} \u52A0\u5728\u4E00\u8D77\u7684\u6C47\u603B\uFF0C\u4E0D\u662F\u6BCF\u4E2A\u56FD\u5BB6\u4E00\u884C\uFF0C\u4E5F\u4E0D\u662F\u5168\u7403\u3002`
|
|
129160
|
+
};
|
|
129161
|
+
}
|
|
129146
129162
|
function parseGeoTargetConstantIds(raw) {
|
|
129147
129163
|
if (!raw?.trim()) return [];
|
|
129148
129164
|
const ids = [];
|
|
@@ -129218,7 +129234,8 @@ function buildKeywordSuggestJsonPayload(items3, opts) {
|
|
|
129218
129234
|
const n = normalized.length;
|
|
129219
129235
|
return {
|
|
129220
129236
|
...wrapListJson({ page: 1, pageSize: Math.max(n, 1), total: n, items: normalized }),
|
|
129221
|
-
bidAmountCurrency: currency
|
|
129237
|
+
bidAmountCurrency: currency,
|
|
129238
|
+
targetMarket: describeKeywordTargetMarket(opts.geoTargetConstantIds ?? [])
|
|
129222
129239
|
};
|
|
129223
129240
|
}
|
|
129224
129241
|
async function fetchUrlKeywords(url, keywords, verbose) {
|
|
@@ -129433,8 +129450,13 @@ async function runKeywordSuggest(opts) {
|
|
|
129433
129450
|
}
|
|
129434
129451
|
}
|
|
129435
129452
|
const n = items3.length;
|
|
129436
|
-
const
|
|
129453
|
+
const targetMarket = describeKeywordTargetMarket(geoTargetConstantIds);
|
|
129454
|
+
const kwPayload = buildKeywordSuggestJsonPayload(items3, {
|
|
129455
|
+
bidAmountCurrency,
|
|
129456
|
+
geoTargetConstantIds
|
|
129457
|
+
});
|
|
129437
129458
|
const displayItems = kwPayload.items;
|
|
129459
|
+
console.error(` [keyword] \u76EE\u6807\u5E02\u573A\uFF1A${targetMarket.label}\u3002${targetMarket.note}`);
|
|
129438
129460
|
if (await emitCliJsonOrSnapshot(opts, {
|
|
129439
129461
|
section: "keyword-suggest",
|
|
129440
129462
|
commandLabel: "keyword",
|
|
@@ -129442,9 +129464,11 @@ async function runKeywordSuggest(opts) {
|
|
|
129442
129464
|
})) {
|
|
129443
129465
|
return;
|
|
129444
129466
|
}
|
|
129445
|
-
console.log(
|
|
129446
|
-
|
|
129447
|
-
|
|
129467
|
+
console.log(
|
|
129468
|
+
`
|
|
129469
|
+
\u5173\u952E\u5B57\u63A8\u8350\uFF08\u76EE\u6807\u5E02\u573A\uFF1A${targetMarket.label}\uFF1B\u7B2C 1 \u9875\uFF0C\u672C\u9875 ${items3.length} \u6761\uFF0C\u5171 ${items3.length} \u6761\uFF09
|
|
129470
|
+
`
|
|
129471
|
+
);
|
|
129448
129472
|
if (items3.length === 0) {
|
|
129449
129473
|
console.log(" \u6682\u65E0\u63A8\u8350\u5173\u952E\u8BCD\u3002\n");
|
|
129450
129474
|
return;
|
|
@@ -129454,7 +129478,7 @@ async function runKeywordSuggest(opts) {
|
|
|
129454
129478
|
const cols = [
|
|
129455
129479
|
{ key: "keyword", header: "\u5173\u952E\u8BCD" },
|
|
129456
129480
|
...accountId ? [{ key: "alreadyInAccount", header: "\u5DF2\u5728\u8D26\u6237\u4E2D" }] : [],
|
|
129457
|
-
{ key: "montlySearch", header:
|
|
129481
|
+
{ key: "montlySearch", header: `\u6708\u5747\u641C\u7D22\xB7${targetMarket.label}` },
|
|
129458
129482
|
{ key: "cpcMain", header: `\u5E73\u5747CPC(${cur})` },
|
|
129459
129483
|
{ key: "bidRangeMain", header: `\u9875\u9996\u51FA\u4EF7(${cur})` },
|
|
129460
129484
|
{ key: "competition", header: "\u7ADE\u4E89\u5EA6" }
|
package/dist/skill/_meta.json
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
- 按 `montlySearch` 过滤(如 1500–6000 视为「约 3000」区间);
|
|
102
102
|
- 按 `competition` / `competitionV2` 筛「中低」(LOW / MEDIUM 或数值阈值,以当次 outline 为准);
|
|
103
103
|
- 每个核心词保留 Top N(用户指定如 30 条);不足时扩大 `-k` 变体或放宽阈值并在说明中标注。
|
|
104
|
-
4. 交付 Markdown/表格:**英文关键词 | 中文翻译 |
|
|
104
|
+
4. 交付 Markdown/表格:**英文关键词 | 中文翻译 | 所属核心词 | 月搜索量 | 竞争度 | 目标市场**。目标市场用落盘 JSON 根上的 `targetMarket.label`(例如「美国(2840)」),表题写明 **月搜索量不是全球**。把 `targetMarket.note` 写进表头说明。首行仍注明 **Google Keyword Planner(`keywordidea/google`)**。用户拿官方规划师对数字时,先核对规划师选的是不是同一个国家;选「全球」或别的国家时数字本来就不会一致。
|
|
105
105
|
|
|
106
106
|
**禁止**:纯 WebSearch/WebFetch 输出带「月搜索量」的终稿;禁止跳过 `keyword` CLI。
|
|
107
107
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
## 指定拓词市场地区(geoTargetConstant)
|
|
111
111
|
|
|
112
|
-
Google Keyword Planner 的搜索量/CPC
|
|
112
|
+
Google Keyword Planner 的搜索量/CPC 与**目标国家/地区**相关,**不是全球**。指定地区:
|
|
113
113
|
|
|
114
114
|
1. **查国家 ID**:
|
|
115
115
|
```bash
|
|
@@ -246,6 +246,6 @@ siluzan-tso keyword geo-list [--country-code <codes>] [--name-contains <text>] [
|
|
|
246
246
|
|
|
247
247
|
`--google-only`:只调 Google 推荐主接口(有 `-a` 为账户接口,无 `-a` 为 `keywordidea/google`),不叠加 `--url` 的网址拓词;**分支 B(仅 Google)必加**。
|
|
248
248
|
|
|
249
|
-
**返回字段**(与后端 `Samm.Core.Service.KeywordRecommendation`
|
|
249
|
+
**返回字段**(与后端 `Samm.Core.Service.KeywordRecommendation` 对齐):根级 **`targetMarket`**(`label` 是给用户看的目标市场,如「美国(2840)」;没传 `--geo` 时为「未限定国家」;`note` 说明搜索量不是全球)。根级与每条 **`bidAmountCurrency`**(无账户=`USD`;有账户=`list-accounts` 的 `currencyCode`);`averageCpc` / `lowTopOfPageBid` / `highTopOfPageBid`(微元 ÷1,000,000,**与 `bidAmountCurrency` 一致**)。另有 `keyword` / `montlySearch` / `monthlySearchVolumes` / `competition` / `competitionV2` / `source` 等;**有 `-a` 时**每条多 **`alreadyInAccount`**(`0` | `1`)。交给用户的表必须带 `targetMarket.label`,并写明不是全球。
|
|
250
250
|
|
|
251
251
|
与只读账户关键词列表、否词 CRUD 的对照:查询见 **`google-ads-read.md`**,写入见 **`google-ads-write.md`**。
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
1. **直接定工作流 W5** → Read `workflows.md` W5 + `analytics/keyword-planner-workflows.md`。
|
|
116
116
|
2. **必走 CLI**:`siluzan-tso keyword -k "种子1,种子2,..." [--url "<落地页>"] [--geo <id>] --google-only --json-out ./snap-kw`(要官方 Planner 指标时 **必加 `--google-only`**;多核心词 **分批** `-k`,避免单次 body 过大)。
|
|
117
117
|
3. **网址/文章**:可用 WebFetch 读页面 **仅归纳种子词与产品语境**;**月搜索量 / 竞争度 / CPC 只能来自 `keyword` 落盘 JSON**(字段 `montlySearch`、`competition`/`competitionV2`、`averageCpc` 等),脚本过滤(如「约 3000 搜索量、竞争中低」)后再交付表格。
|
|
118
|
-
4.
|
|
118
|
+
4. **交付列**(用户未指定时):英文关键词、中文翻译、所属核心词、月搜索量、竞争度、**目标市场**。目标市场抄落盘 JSON 的 `targetMarket.label`,表题写明 **不是全球**。表头注明 **数据来源:Google Keyword Planner(`keywordidea/google`)**。
|
|
119
119
|
|
|
120
120
|
### C.3 与 W3 / P8 / P9 区分
|
|
121
121
|
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
- **步骤**:
|
|
120
120
|
1. (可选)WebFetch 读用户 URL/文章 **仅归纳种子词**;或 RAG:`rag list --rag-only --json-out ./snap` → `rag query … --json-out ./snap`。
|
|
121
121
|
2. 拓词(**必 `--google-only --json-out`**):`keyword -k "种子1,种子2,..." [--url "<落地页>"] [--geo <id>] --google-only --json-out ./snap-kw`;**多核心词分批** `-k`(每批 3–8 词),避免单次过大。
|
|
122
|
-
3. 脚本读落盘 `items`(`montlySearch`/`averageCpc`/`competition`,币种见 `bidAmountCurrency
|
|
123
|
-
-
|
|
122
|
+
3. 脚本读落盘 `items`(`montlySearch`/`averageCpc`/`competition`,币种见 `bidAmountCurrency`)和根上的 **`targetMarket.label`** → 按用户阈值洗词(如搜索量≈3000、竞争中低)→ 去重/分组/截 Top N,标注 **数据来源:Google Keyword Planner**,并写明 **目标市场(不是全球)**。
|
|
123
|
+
- **产物**:表格列含英文词、中文翻译、所属核心词、月搜索量、竞争度、**目标市场**(`targetMarket.label`,并写明不是全球)。指标**仅**来自 CLI;联网/文章语境与 Planner 指标**分列标注**;账户内 `google-analysis keywords` 表现**不可**与市场侧拓词合并。完整 campaign 见 **W3**。
|
|
124
124
|
|
|
125
125
|
---
|
|
126
126
|
|
|
@@ -249,7 +249,7 @@ siluzan-tso keyword -k <搜索词> [-a <mediaCustomerId>] [--geo <geoTargetConst
|
|
|
249
249
|
siluzan-tso keyword geo-list [--country-code <US,CN,...>] [--name-contains <text>] [--json-out ./snap]
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
`--geo` 传多个 ID(如 `2840,2826`)时,返回的搜索量/CPC/竞争度为**跨所传地区的汇总数据**,响应中**无**按地区拆分的字段。若要分别查看各市场指标,须**多次调用**且每次 `--geo` **只传一个** ID(详见 **`references/analytics/keyword-planner-workflows.md`**「多地区 `--geo`」)。
|
|
252
|
+
`keyword --json-out` 的根字段 **`targetMarket.label`** 是这次搜索量所属的目标市场(如「美国(2840)」)。没传 `--geo` 时为「未限定国家」。交给用户的表要带上这个市场,并写明 **不是全球**。`--geo` 传多个 ID(如 `2840,2826`)时,返回的搜索量/CPC/竞争度为**跨所传地区的汇总数据**,响应中**无**按地区拆分的字段。若要分别查看各市场指标,须**多次调用**且每次 `--geo` **只传一个** ID(详见 **`references/analytics/keyword-planner-workflows.md`**「多地区 `--geo`」)。
|
|
253
253
|
|
|
254
254
|
`--url` 触发网址拓词(`websitereco`)并合并进结果;与 `--google-only` 互斥(仅 Google Keyword Planner 时用后者)。`--include`/`--exclude` 为本地过滤。仅 Google、不联网搜索的 Agent 编排见 **`references/analytics/keyword-planner-workflows.md`**「分支 B」。
|
|
255
255
|
|
|
@@ -260,11 +260,11 @@ siluzan-tso ad campaign-edit -a <accountId> --id <campaignId> \
|
|
|
260
260
|
|
|
261
261
|
相对运算:先 `ad campaigns --json-out ./snap` 读 `budget`(已为主币种元)、`biddingStrategyTypeV2`,再传入。
|
|
262
262
|
|
|
263
|
-
`campaign-edit`
|
|
263
|
+
`campaign-edit` 的名称、预算、出价、投放网络,以及 `campaign-status`,走字段级 PATCH(`writeScope=search-field-patch`)。请求只带本次传入的字段,没传的字段保持原样。金额仍是主币种元,CLI ×100 写入网关「分」。`--search-network` / `--content-network` 传 `true` 或 `false`,关闭传 `false`,不能传空。`budgetShared=true` 时本命令直接拒绝 `--budget`,不会改共享预算。PMax 不要用本命令。
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
网关还支持开始/结束时间、地区类型、地区/语言/时段/否定 IP/设备的整表替换,以及动态搜索广告域名。CLI 还没有这些参数,不要自己拼 PUT 或 PATCH。
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
写完会再 GET:`verification=verified` 才表示对上了本次字段;没改预算但回读预算变了则是 `partial`;读不到是 `unknown`(再查 `ad campaigns`,不要当成没改成,也不要立刻重发)。请求失败时会再 GET 一次预算:金额相对提交前变了是 `partial`(退出码 0),读不到或无法对比是 `unknown`(退出码 0),都不要立刻重发;金额没变才是失败(退出码 1)。
|
|
268
268
|
|
|
269
269
|
> PMax / 部分智能系列类型 Google 可能拒绝切换出价策略;以 API 返回错误为准。已上线 PMax 用 `ad pmax-edit`,不要用本命令。
|
|
270
270
|
|
|
@@ -30,7 +30,7 @@ Meta / Facebook 线索广告走 **`meta-ad`(W13)**,**禁止**用本命令
|
|
|
30
30
|
## Gotchas
|
|
31
31
|
|
|
32
32
|
- **广告类型**:仅 Search + PMax;**不支持 Display**(见上文「支持的广告类型」)。
|
|
33
|
-
- **Search 改字段**:`campaign-status`、`campaign-edit`
|
|
33
|
+
- **Search 改字段**:`campaign-status`、`campaign-edit` 的名称/预算/出价/投放网络、`adgroup-status` / `adgroup-rename` / `adgroup-edit`、`keyword-status`、`keyword-edit` 的状态/出价/网址、`ad-status` / `ad-edit` 都是字段级 PATCH,只写本次参数。词面和匹配类型仍是批量 PUT。关闭搜索合作伙伴或展示网络传 `--search-network false` / `--content-network false`。PMax 用 `pmax-edit`,不要用 `campaign-edit`。
|
|
34
34
|
- **命令名**:系列列表是 `ad campaigns`(别名 `campaign-list`),**禁止** `ad-campaigns` / `campaign list`。`balance`/`stats` 须 `-m Google`。
|
|
35
35
|
- **Google 客户 ID(CID)带连字符**:UI / 用户口述常为 `123-456-7890`,平台 `mediaCustomerId` 与 Google 网关路径需要 `1234567890`。`ad campaigns` / `ad groups` / `ad list` 等 `-a` 与 JSON 顶层 `account` **可带连字符**(CLI 自动去掉)。若错误为 `HTTP 403:123-456-7890`(回显带横杠),先换纯数字重试,**禁止**据此直接判断 OAuth 过期或 `reauth`。
|
|
36
36
|
- **禁止臆测授权过期**:`ad *` / geo / 拉数出现 403/500 时,**禁止**对用户说「授权可能过期」。须核验 ID 后执行 `account check-access -a <mediaCustomerId>`,仅当 `reauth_required`(或与 `invalidOAuthToken=true` 交叉确认)才走重授权;无激活字段时禁止谈套餐。见 [`accounts-permissions.md`](../accounts/accounts-permissions.md)。
|
|
@@ -9,7 +9,7 @@ $ErrorActionPreference = 'Stop'
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
$PKG_NAME = 'siluzan-tso-cli'
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
$PKG_VERSION = '1.1.58-beta.
|
|
12
|
+
$PKG_VERSION = '1.1.58-beta.5'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
15
|
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
@@ -9,7 +9,7 @@ set -euo pipefail
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
readonly PKG_NAME="siluzan-tso-cli"
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
readonly PKG_VERSION="1.1.58-beta.
|
|
12
|
+
readonly PKG_VERSION="1.1.58-beta.5"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
15
|
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|