File contents 腾讯广告 - 客户账号查询技能
前置依赖 :需安装 tencentads-cli(Node.js ≥ 20)。执行 npm install -g tencentads-cli@latest 安装或升级;版本过低时 tencentads 会给出提示。
脚本调用 : 所有 API 操作通过本 Skill 目录下的脚本执行,格式为 node scripts/<脚本名>.mjs '<JSON参数>'。
认证依赖 : 本技能依赖 tencentads-auth 技能配置的 API Key 凭据,如遇认证错误请先完成鉴权。
脚本调用格式统一 :node scripts/<脚本名>.mjs '<JSON 参数>'
执行脚本时先进入本 skill 根目录,再按相对 scripts/ 路径调用。
⚠️ 跨平台 JSON 参数传递规则(经实测验证)
脚本调用格式为 node scripts/<脚本名>.mjs '<JSON参数>',但 JSON 参数的引号包裹方式因操作系统/终端而异 ,传递不当会导致 JSON.parse 报错(如 Expected property name or '}' in JSON at position 1)。
终端环境
正确写法
说明
Linux / macOS (Bash/Zsh)
node scripts/xxx.mjs '{"key":"value"}'
✅ 单引号包裹,内部双引号原样保留
Windows Git Bash
node scripts/xxx.mjs '{"key":"value"}'
✅ 同 Bash
Windows CMD
node scripts/xxx.mjs "{\"key\":\"value\"}"
✅ 双引号包裹 + 反斜杠转义
Windows CMD (备选)
node scripts/xxx.mjs "{""key"":""value""}"
✅ 双引号包裹 + 双双引号转义
Windows PowerShell 5.x
node --% scripts/xxx.mjs "{\"key\":\"value\"}"
✅ 必须加 --% 停止解析符
Windows PowerShell 5.x (备选)
node scripts/xxx.mjs "{\`"key\`":\`"value\`"}"
✅ 反斜杠 + 反引号组合转义
⛔ PowerShell 5.x 是重灾区 :单引号 '...'、反引号 `" 、反斜杠 \" 三种常见写法**全部失败**(双引号会被吞掉)。必须使用 --% 停止解析符或 \`" 组合转义。
⛔ Windows CMD 不支持单引号包裹字符串 ,单引号会被当作普通字符传入脚本,导致 JSON 解析失败。
脚本列表
脚本
功能
必填参数
可选参数
scripts/get-account-list.mjs
查询当前用户关联的竞价广告主账号列表
-
corporation_name_fuzzy_list, page, page_size
scripts/get-daily-budget.mjs
查询账户日预算
account_id
-
scripts/update-daily-budget.mjs
修改账户日预算
account_id, daily_budget
use_min_daily_budget
scripts/get-funds.mjs
查询资金账户信息(余额/锁定金额/今日消耗)
account_id
fund_type_list
scripts/get-wallet.mjs
查询共享钱包信息(余额/绑定账户等)
account_id
-
scripts/get-daily-balance-report.mjs
获取资金账户日结明细(包含日终结余)
account_id, date_range
page, page_size
scripts/get-wallet-basic-info.mjs
通过钱包 ID 查询共享钱包基础信息
account_id, wallet_id
-
查询广告主账号列表
调用 user_account_list/get 接口,获取当前 user_id 下关联的竞价广告主 账户信息列表。
⚠️ 仅返回竞价广告主账户 ,不包含代理商等其他类型账户。
# 查询全部关联账号(默认分页)
node scripts/get-account-list.mjs
# 按公司名称模糊搜索(最多 2 个关键词,每个 2~50 字符)
node scripts/get-account-list.mjs '{"corporation_name_fuzzy_list":["广州","西安"]}'
# 指定分页参数(page_size 范围 1~500)
node scripts/get-account-list.mjs '{"page":2,"page_size":20}'
分页上限限制 :严格要求 page * page_size <= 13000,超出此限制接口将报错。
接口详情见 : references/user-account-list-get.md
适用场景
场景 A:用户需要查找某个公司的竞价广告主账号
从用户描述中提取公司名称关键词
调用 get-account-list.mjs,传入 corporation_name_fuzzy_list
将匹配到的账号列表展示给用户
场景 B:用户需要浏览所有关联的竞价广告主账号
调用 get-account-list.mjs(不传参数或仅传分页参数)
展示第一页结果和分页信息
如果有多页,告知用户总数并询问是否需要查看更多
注意事项
仅支持竞价广告主 :get-account-list.mjs 仅返回竞价广告主账户,不包含其他类型
无需传入 account_id :get-account-list.mjs接口基于当前登录用户的 user_id 查询,不需要指定广告主账号
分页默认值 :不传 page 默认为 1,不传 page_size 默认为 10
模糊匹配限制 :corporation_name_fuzzy_list 最多传 2 个字符串,每个字符串长度限制 2~50 个字符
认证依赖 :本技能依赖 tencentads-auth 技能配置的 API Key 凭据,如遇认证错误请先完成鉴权
分页上限限制 :get-account-list.mjs 严格要求 page * page_size <= 13000,超出此限制接口将报错
所有枚举值禁止猜测,必须通过 get-enum-options.mjs 查询确认 :
错误处理
如果返回认证错误,引导用户使用 tencentads-auth 技能重新配置 API Key
如果 corporation_name_fuzzy_list 参数不合法(超过 2 个、字符串长度不在 2~50 范围),脚本会返回明确的错误提示
如果查询结果为空,告知用户未找到匹配的账号,建议调整搜索关键词或检查是否有关联账号
接口文档索引
功能
文档
说明
广告主账号列表查询
user-account-list-get.md
查询当前用户关联的竞价广告主账号列表
账户日预算查询与修改
advertiser-daily-budget.md
查询当前日预算、修改日预算,含 Agent 使用流程和 use_min_daily_budget 决策规则
资金账户信息查询
funds-get.md
查询各类资金账户余额、锁定金额、今日消耗,支持按 fund_type 过滤
钱包信息查询
wallet-get.md
查询共享钱包余额、名称、代理商、主体及绑定账户信息
资金账户日结明细查询
daily-balance-report-get.md
查询资金账户日结明细,包含日终结余数据,支持按日期范围查询
钱包基础信息查询(按钱包 ID)
wallet-basic-info-get.md
通过钱包 ID 查询共享钱包基础信息,含资金信息和监控预警
相关技能
tencentads-auth - 配置 API Key 鉴权凭据
1 --- 2 name: tencentads-advertiser 3 description: Tencentads Advertiser 4 license: MIT. See LICENSE for full terms. 5 --- 6
7 # 腾讯广告 - 客户账号查询技能
8
9 > **前置依赖**:需安装 `tencentads-cli`(Node.js ≥ 20)。执行 `npm install -g tencentads-cli@latest` 安装或升级;版本过低时 `tencentads` 会给出提示。
10 > - **脚本调用**: 所有 API 操作通过本 Skill 目录下的脚本执行,格式为 `node scripts/<脚本名>.mjs '<JSON参数>'`。
11 > - **认证依赖**: 本技能依赖 `tencentads-auth` 技能配置的 API Key 凭据,如遇认证错误请先完成鉴权。
12 > **脚本调用格式统一**:`node scripts/<脚本名>.mjs '<JSON 参数>'`
13 > 执行脚本时先进入本 skill 根目录,再按相对 `scripts/` 路径调用。
14
15 ### ⚠️ 跨平台 JSON 参数传递规则(经实测验证)
16
17 脚本调用格式为 `node scripts/<脚本名>.mjs '<JSON参数>'`,但 **JSON 参数的引号包裹方式因操作系统/终端而异**,传递不当会导致 `JSON.parse` 报错(如 `Expected property name or '}' in JSON at position 1`)。
18
19 | 终端环境 | 正确写法 | 说明 |
20 |---------|---------|------|
21 | **Linux / macOS (Bash/Zsh)** | `node scripts/xxx.mjs '{"key":"value"}'` | ✅ 单引号包裹,内部双引号原样保留 |
22 | **Windows Git Bash** | `node scripts/xxx.mjs '{"key":"value"}'` | ✅ 同 Bash |
23 | **Windows CMD** | `node scripts/xxx.mjs "{\"key\":\"value\"}"` | ✅ 双引号包裹 + 反斜杠转义 |
24 | **Windows CMD (备选)** | `node scripts/xxx.mjs "{""key"":""value""}"` | ✅ 双引号包裹 + 双双引号转义 |
25 | **Windows PowerShell 5.x** | `node --% scripts/xxx.mjs "{\"key\":\"value\"}"` | ✅ 必须加 `--%` 停止解析符 |
26 | **Windows PowerShell 5.x (备选)** | `` node scripts/xxx.mjs "{\`"key\`":\`"value\`"}" `` | ✅ 反斜杠 + 反引号组合转义 |
27
28 > **⛔ PowerShell 5.x 是重灾区**:单引号 `'...'`、反引号 `` `" `` 、反斜杠 `\"` 三种常见写法**全部失败**(双引号会被吞掉)。必须使用 `--% ` 停止解析符或 `` \`" `` 组合转义。
29 > **⛔ Windows CMD 不支持单引号包裹字符串**,单引号会被当作普通字符传入脚本,导致 JSON 解析失败。
30
31 ## 脚本列表
32
33 | 脚本 | 功能 | 必填参数 | 可选参数 |
34 |------|------|---------|---------|
35 | `scripts/get-account-list.mjs` | 查询当前用户关联的竞价广告主账号列表 | - | corporation_name_fuzzy_list, page, page_size |
36 | `scripts/get-daily-budget.mjs` | 查询账户日预算 | account_id | - |
37 | `scripts/update-daily-budget.mjs` | 修改账户日预算 | account_id, daily_budget | use_min_daily_budget |
38 | `scripts/get-funds.mjs` | 查询资金账户信息(余额/锁定金额/今日消耗) | account_id | fund_type_list |
39 | `scripts/get-wallet.mjs` | 查询共享钱包信息(余额/绑定账户等) | account_id | - |
40 | `scripts/get-daily-balance-report.mjs` | 获取资金账户日结明细(包含日终结余) | account_id, date_range | page, page_size |
41 | `scripts/get-wallet-basic-info.mjs` | 通过钱包 ID 查询共享钱包基础信息 | account_id, wallet_id | - |
42
43 ## 查询广告主账号列表
44
45 调用 `user_account_list/get` 接口,获取当前 user_id 下关联的**竞价广告主**账户信息列表。
46
47 > ⚠️ **仅返回竞价广告主账户**,不包含代理商等其他类型账户。
48
49 ```bash
50 # 查询全部关联账号(默认分页)
51 node scripts/get-account-list.mjs
52
53 # 按公司名称模糊搜索(最多 2 个关键词,每个 2~50 字符)
54 node scripts/get-account-list.mjs '{"corporation_name_fuzzy_list":["广州","西安"]}'
55
56 # 指定分页参数(page_size 范围 1~500)
57 node scripts/get-account-list.mjs '{"page":2,"page_size":20}'
58 ```
59
60 > **分页上限限制**:严格要求 `page * page_size <= 13000`,超出此限制接口将报错。
61
62 **接口详情见**: [references/user-account-list-get.md](references/user-account-list-get.md)
63
64 ## 适用场景
65
66 ### 场景 A:用户需要查找某个公司的竞价广告主账号
67
68 1. 从用户描述中提取公司名称关键词
69 2. 调用 `get-account-list.mjs`,传入 `corporation_name_fuzzy_list`
70 3. 将匹配到的账号列表展示给用户
71
72 ### 场景 B:用户需要浏览所有关联的竞价广告主账号
73
74 1. 调用 `get-account-list.mjs`(不传参数或仅传分页参数)
75 2. 展示第一页结果和分页信息
76 3. 如果有多页,告知用户总数并询问是否需要查看更多
77
78 ## 注意事项
79
80 1. **仅支持竞价广告主**:`get-account-list.mjs` 仅返回竞价广告主账户,不包含其他类型
81 2. **无需传入 account_id**:`get-account-list.mjs`接口基于当前登录用户的 user_id 查询,不需要指定广告主账号
82 3. **分页默认值**:不传 `page` 默认为 1,不传 `page_size` 默认为 10
83 4. **模糊匹配限制**:`corporation_name_fuzzy_list` 最多传 2 个字符串,每个字符串长度限制 2~50 个字符
84 5. **认证依赖**:本技能依赖 `tencentads-auth` 技能配置的 API Key 凭据,如遇认证错误请先完成鉴权
85 6. **分页上限限制**:`get-account-list.mjs` 严格要求 `page * page_size <= 13000`,超出此限制接口将报错
86 7. **所有枚举值禁止猜测,必须通过 `get-enum-options.mjs` 查询确认**:
87
88 ## 错误处理
89
90 - 如果返回认证错误,引导用户使用 `tencentads-auth` 技能重新配置 API Key
91 - 如果 `corporation_name_fuzzy_list` 参数不合法(超过 2 个、字符串长度不在 2~50 范围),脚本会返回明确的错误提示
92 - 如果查询结果为空,告知用户未找到匹配的账号,建议调整搜索关键词或检查是否有关联账号
93
94 ---
95
96 ## 接口文档索引
97
98 | 功能 | 文档 | 说明 |
99 |------|------|------|
100 | 广告主账号列表查询 | [user-account-list-get.md](references/user-account-list-get.md) | 查询当前用户关联的竞价广告主账号列表 |
101 | 账户日预算查询与修改 | [advertiser-daily-budget.md](references/advertiser-daily-budget.md) | 查询当前日预算、修改日预算,含 Agent 使用流程和 use_min_daily_budget 决策规则 |
102 | 资金账户信息查询 | [funds-get.md](references/funds-get.md) | 查询各类资金账户余额、锁定金额、今日消耗,支持按 fund_type 过滤 |
103 | 钱包信息查询 | [wallet-get.md](references/wallet-get.md) | 查询共享钱包余额、名称、代理商、主体及绑定账户信息 |
104 | 资金账户日结明细查询 | [daily-balance-report-get.md](references/daily-balance-report-get.md) | 查询资金账户日结明细,包含日终结余数据,支持按日期范围查询 |
105 | 钱包基础信息查询(按钱包 ID) | [wallet-basic-info-get.md](references/wallet-basic-info-get.md) | 通过钱包 ID 查询共享钱包基础信息,含资金信息和监控预警 |
106
107 ## 相关技能
108
109 - **tencentads-auth** - 配置 API Key 鉴权凭据
ahang1598/doubao-workbuddy-qwenwork-skills/tree/main/workbuddy/connectors/marketplace/connectors/tencentads/skills/tencentads-advertiser commit cc6e08fedd
Frequently asked questions How do I install the Tencentads Advertiser skill? Run npx skillmds@latest add ahang1598/tencentads-advertiser in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Tencentads Advertiser skill do? Tencentads Advertiser It is listed under Coding & Dev Tools on SkillMD.
Is Tencentads Advertiser safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: executes scripts. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Tencentads Advertiser? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Tencentads Advertiser free to use? Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
Who published Tencentads Advertiser? ahang1598 (@ahang1598) published this skill. Their other Agent Skills are listed on their SkillMD profile.