Install
openclaw skills install tencent-first-pub-material-query首发素材消耗批量查询。根据提供的账户ID列表,查询指定日期内的首发素材(图片+视频)消耗数据。首次使用时自动检查依赖环境(tencentads技能+API Key)。
openclaw skills install tencent-first-pub-material-query根据账户ID列表,批量查询首发素材消耗数据。
Agent 在执行本技能前,必须先完成以下自检步骤:
Test-Path "C:\Users\em-25040277\.openclaw\workspace\skills\tencentads-management\SKILL.md"
缺少腾讯广告基础技能,请按以下步骤安装:
在聊天窗口发送:
根据 http://skills.ad.qq.com/install/tencentads.md 安装腾讯营销投放技能或手动访问 https://skills.ad.qq.com/ 查看安装指南
npm list tencentads-cli -g 2>$null
npm install tencentads-cli@latest -g
Test-Path "$env:USERPROFILE\.tencent-ads\credentials.json"
请先配置腾讯广告 API Key。
🔑 获取 API Key:https://skills.ad.qq.com/
获取后请将 API Key 发给我,我会自动保存。
收到 API Key 后调用保存脚本:
Set-Location "C:\Users\em-25040277\.openclaw\workspace\skills\tencentads-auth"
node scripts/auth-save-apikey.mjs --api-key <用户提供的KEY>
三项检查全部通过后,开始执行查询流程。
用户输入账户ID列表 + 日期范围
│
▼
分批查询 IMAGE + VIDEO 维度数据(每批20个账户)
│
▼
过滤首发素材(first_publication_status = FIRST_PUBLICATION_STATUS_FIRST_PUBLICATION)
│
▼
按账户汇总输出:首发素材数、消耗、曝光、点击、转化
$skillDir = "C:\Users\em-25040277\.openclaw\workspace\skills\first-pub-material-query"
$json = @'
{"account_ids":["31079027","12345678"],"start_date":"2026-04-01","end_date":"2026-04-30"}
'@
$base64 = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($json))
node "$skillDir\scripts\query-first-pub.mjs" --base64 $base64
node scripts/query-first-pub.mjs '{"account_ids":["31079027"],"start_date":"2026-04-01","end_date":"2026-04-30"}'
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
account_ids | string[] | 是 | 账户ID数组 |
start_date | string | 是 | 开始日期 YYYY-MM-DD |
end_date | string | 是 | 结束日期 YYYY-MM-DD |
{
"query": { "account_ids": [...], "start_date": "...", "end_date": "..." },
"queried_accounts": 10,
"active_accounts": 3,
"results": [
{
"account_id": 31079027,
"first_pub": {
"total": { "material_count": 85, "cost": "35810.39", "views": 1296623, "clicks": 20996, "conversions": 27, "ctr": "1.62%", "conv_cost": "1326.31" },
"image": { "first_pub_count": 53, "cost": "32591.88", ..., "details": [...] },
"video": { "first_pub_count": 32, "cost": "3218.51", ..., "details": [...] }
}
}
]
}
tencentads-management skill(报表查询)tencentads-auth skill(鉴权管理)tencentads-cli npm 包