linkfox-temu-ads-global
Original:🇺🇸 English
Translated
22 scriptsChecked / no sensitive code detected
Temu 全球站电商广告 Ads API,经 LinkFox 网关转发 Partner Global Ads / 广告投放 相关 bg/temu 接口(广告计划、广告组、创意、报表、预算出价等,接口将按 Partner 文档逐条接入)。当用户提到 Temu Global 广告、Ads、广告投放、广告计划、广告组、创意、出价、预算、广告报表、ad campaign、product-inventory 广告 时触发。商品管理用 linkfox-temu-manage-product-global;促销用 linkfox-temu-promotion-global;订单用 linkfox-temu-order-global。
23installs
Added on
NPX Install
npx skill4agent add linkfox-ai/linkfox-skills linkfox-temu-ads-globalTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Temu 全球站 — 电商广告(Ads)
本 skill()覆盖 Partner Platform for Global Ads / 电商广告(广告计划、投放、报表等; 与各 以 Partner 后台为准,见 partner-global-catalog.md)。
linkfox-temu-ads-globalmenu_codesub_menu_code已接入 7 条 Partner Ads()接口,清单见 partner-global-catalog.md。
temu.searchrec.ad.*网关(本 skill 内置):
| 能力 | 方法 | 路径 |
|---|---|---|
广告 OpenAPI( | POST | |
| 加签文件下载 | POST | |
相关 skill
| 场景 | skill |
|---|---|
| 广告 Ads(本 skill) | |
| 商品列表/详情/编辑/库存/上下架 | |
| 促销/营销活动 | |
| 发品 | |
| 价格/供货价、定价单 | |
| 订单列表/详情 | |
| 退货与退款 | |
| 网关与 Temu token | 本 skill |
API Usage
| 文档 | 内容 |
|---|---|
| api.md | 网关、鉴权、错误码、接入约定 |
| partner-global-catalog.md | 接口目录 + Partner URL + 脚本(随接入更新) |
| apis/README.md | 按接口分文件( |
默认参数
| 字段 | 默认 | 说明 |
|---|---|---|
| site | | Partner Global |
| managementType | | 半托管(具体接口以 Partner 文档为准) |
| tokenPurpose | | 卖家助手默认(若 Partner 某 Ads 接口要求其他 |
鉴权
- LinkFox:→ Header
LINKFOXAGENT_API_KEY+AuthorizationToken - Temu:或
accessToken(storeKey时建议带storeKey)tokenPurpose=product-inventory
Scripts
| 脚本 | 说明 |
|---|---|
| 任意 type |
| 加签下载 |
| |
| |
| |
| |
| |
| |
| |
接入新接口(约定)
你每提供一条 Partner 文档( + + URL + Request/Response 参数表),将:
typesub_menu_code- 新增 (完整入参/出参层级)
references/apis/<type-slug>.md - 新增 (调用
scripts/global_ads_<slug>.py)_global_ads_script.run_cli - 更新 partner-global-catalog.md、apis/README.md 与本表
示例(通用代理)
bash
export LINKFOXAGENT_API_KEY="<key>"
python scripts/temu_global_proxy.py '{
"accessToken": "TOKEN",
"tokenPurpose": "product-inventory",
"type": "<TEMU_API_TYPE>",
"params": {
"request": {}
}
}'Feedback: :
skillNamelinkfox-temu-ads-global网关与授权脚本
| 脚本 | 说明 |
|---|---|
| 校验 LinkFox 用户 Token |
| Temu accessToken 后台授权步骤 |
| 保存 accessToken 到本地 |
| 列出已保存 token |
| 读取已保存 token |
| 通用网关转发(多 site) |
| 加签文件下载(多 site) |
授权说明:references/access-token.md
<!-- LF_LARGE_RESPONSE_BLOCK -->
Handling Large Responses
To avoid overflowing the agent context, persist the response to disk and extract only the fields you need:
python scripts/response_io.py run --script scripts/check_linkfox_token.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"Pickoutside any git working tree (e.g.--out-diron Unix,/tmp/...on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.%TEMP%/...
This skill exposes multiple entry scripts:,check_linkfox_token.py,get_temu_access_token.py,global_ads_searchrec_ad_create.py,global_ads_searchrec_ad_detail_query.py,global_ads_searchrec_ad_goods_create_query.py,global_ads_searchrec_ad_log_query.py,global_ads_searchrec_ad_modify.py,global_ads_searchrec_ad_reports_mall_query.py,global_ads_searchrec_ad_roas_pred.py,list_temu_access_tokens.py,save_temu_access_token.py,temu_file_download.py,temu_global_file_download.py,temu_global_proxy.py,temu_proxy.py. Passtemu_token_guide.pyto choose the one you need.--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|tableWhen to prefer this pattern — apply your judgment based on the response characteristics, e.g.:
- High field count per record, or fields you don't need
- Batch/paginated results (multiple items per call)
- Long-text fields (descriptions, reviews, HTML, time series)
- Output reused across later steps rather than consumed immediately
For small, single-use responses, calling the main script directly is fine.
⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via .
<!-- /LF_LARGE_RESPONSE_BLOCK -->read