siluzan-tso-cli 1.1.14-beta.4 → 1.1.14-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 +5 -1
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/google-ads.md +7 -6
- 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.14-beta.
|
|
54
|
+
> **注意**:当前为测试版(1.1.14-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/index.js
CHANGED
|
@@ -7154,6 +7154,9 @@ async function runAdList(opts) {
|
|
|
7154
7154
|
const params = new URLSearchParams();
|
|
7155
7155
|
params.set("startDate", toGoogleDate(opts.startDate, -30));
|
|
7156
7156
|
params.set("endDate", toGoogleDate(opts.endDate, 0));
|
|
7157
|
+
if (opts.includeDeleted) {
|
|
7158
|
+
params.set("readDeleted", "true");
|
|
7159
|
+
}
|
|
7157
7160
|
const url = `${googleApiUrl}/admanagement/v2/list/${opts.account}?${params}`;
|
|
7158
7161
|
let data;
|
|
7159
7162
|
try {
|
|
@@ -13022,13 +13025,14 @@ adCmd.command("groups").description("\u67E5\u8BE2\u5E7F\u544A\u7EC4\u5217\u8868\
|
|
|
13022
13025
|
});
|
|
13023
13026
|
}
|
|
13024
13027
|
);
|
|
13025
|
-
adCmd.command("list").description("\u67E5\u8BE2\u5E7F\u544A\uFF08\u521B\u610F\uFF09\u5217\u8868\uFF08\u65E5\u671F\u9ED8\u8BA4\u8FD1 30 \u5929\uFF09").requiredOption("-a, --account <id>", "Google \u8D26\u6237 mediaCustomerId").option("--start <date>", "\u5F00\u59CB\u65E5\u671F YYYY-MM-DD\uFF08\u9ED8\u8BA4 30 \u5929\u524D\uFF09").option("--end <date>", "\u7ED3\u675F\u65E5\u671F YYYY-MM-DD\uFF08\u9ED8\u8BA4\u4ECA\u5929\uFF09").option("-t, --token <token>", "Auth Token").option("--json", "JSON \u683C\u5F0F\u8F93\u51FA", false).option("--verbose", "\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F", false).action(
|
|
13028
|
+
adCmd.command("list").description("\u67E5\u8BE2\u5E7F\u544A\uFF08\u521B\u610F\uFF09\u5217\u8868\uFF08\u65E5\u671F\u9ED8\u8BA4\u8FD1 30 \u5929\uFF09").requiredOption("-a, --account <id>", "Google \u8D26\u6237 mediaCustomerId").option("--start <date>", "\u5F00\u59CB\u65E5\u671F YYYY-MM-DD\uFF08\u9ED8\u8BA4 30 \u5929\u524D\uFF09").option("--end <date>", "\u7ED3\u675F\u65E5\u671F YYYY-MM-DD\uFF08\u9ED8\u8BA4\u4ECA\u5929\uFF09").option("--include-deleted", "\u5305\u542B\u5DF2\u5220\u9664\u7684\u5E7F\u544A\uFF08\u7F51\u5173 readDeleted=true\uFF09", false).option("-t, --token <token>", "Auth Token").option("--json", "JSON \u683C\u5F0F\u8F93\u51FA", false).option("--verbose", "\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F", false).action(
|
|
13026
13029
|
async (opts) => {
|
|
13027
13030
|
await runAdList({
|
|
13028
13031
|
token: opts.token,
|
|
13029
13032
|
account: opts.account,
|
|
13030
13033
|
startDate: opts.start,
|
|
13031
13034
|
endDate: opts.end,
|
|
13035
|
+
includeDeleted: opts.includeDeleted,
|
|
13032
13036
|
json: opts.json,
|
|
13033
13037
|
verbose: opts.verbose
|
|
13034
13038
|
});
|
package/dist/skill/_meta.json
CHANGED
|
@@ -310,11 +310,12 @@ siluzan-tso ad adgroup-delete -a 6326027735 --id adgroup_001
|
|
|
310
310
|
siluzan-tso ad list -a <accountId> [选项]
|
|
311
311
|
```
|
|
312
312
|
|
|
313
|
-
| 选项 | 说明
|
|
314
|
-
| ------------------------ |
|
|
315
|
-
| `-a, --account <id>` | Google mediaCustomerId(必填)
|
|
316
|
-
| `--start / --end <date>` | 统计日期范围
|
|
317
|
-
| `--
|
|
313
|
+
| 选项 | 说明 |
|
|
314
|
+
| ------------------------ | -------------------------------------------------------------------- |
|
|
315
|
+
| `-a, --account <id>` | Google mediaCustomerId(必填) |
|
|
316
|
+
| `--start / --end <date>` | 统计日期范围 |
|
|
317
|
+
| `--include-deleted` | 包含已删除的广告(默认不传;传则网关加 `readDeleted=true`,审计/排障用) |
|
|
318
|
+
| `--json` | 输出原始 JSON |
|
|
318
319
|
|
|
319
320
|
**示例:**
|
|
320
321
|
|
|
@@ -336,7 +337,7 @@ siluzan-tso ad list -a 6326027735 --json
|
|
|
336
337
|
- **`approvalStatusDetails`**:政策相关说明的**摘要串**,多条证据之间常用 **`;`** 分隔。**不提供**与控制台一一对应的「政策主题」结构化数组;需要更细粒度编码时须另辟数据源或与维护方确认。
|
|
337
338
|
- **`statusV2`**:广告启用状态;排除已移除条目时用 **`Removed`** 等值过滤(以实际枚举为准)。
|
|
338
339
|
|
|
339
|
-
**同源拉数**:`ad list` 与 **`google-analysis ads`**
|
|
340
|
+
**同源拉数**:`ad list` 与 **`google-analysis ads`** 在默认参数下列表数据一致;任选其一做拒审巡检即可,仍以 **当次 `--json`** 为准。若使用 **`ad list --include-deleted`**,会多传 `readDeleted=true`,与未带该参数的 **`google-analysis ads`** 口径可能不一致。
|
|
340
341
|
|
|
341
342
|
### 转化与价值(`ad list --json`,需网关已返回对应字段)
|
|
342
343
|
|