Use this skill for the three core ad object levels: campaign, unit, and creative. It handles save/create/update, detail query, list query, creation orchestration, copy workflows, and safe fallback when batch operations do not support a requested change.
Use bilibili-sanlian-ads-metadata for selectable values and deliverable resources. Use bilibili-sanlian-ads-materials for image/video/archive material preparation. Use bilibili-sanlian-ads-batch-operations for supported batch updates and deletions.
access_token and advertiser account_id first. Use bilibili-sanlian-ads when either is missing.references/.https://cm.bilibili.com/takumi/api as the root path and usually require Authorization: Bearer {access_token}.X-Call-Source: sanlian-skills, even when a reference example omits it.support_auto is fixed to 1. Do not send it when creating a campaign; regardless of request value, the effective value is 1.campaign_id, unit_id, and creative_id_list from the prior response.| User goal | References |
|---|---|
| --- | --- |
| Save or update a campaign | references/505_计划保存.md |
| Query campaign detail or campaign list | references/506_计划查询.md, references/810_计划列表.md |
| Save or update a unit | references/509_单元保存.md |
| Query unit detail or unit list | references/510_单元查询.md, references/811_单元列表.md |
| Save or update a creative | references/524_创意保存.md |
| Query creative detail or list | references/525_创意查询.md, references/812_创意列表.md |
| Create a creative from a BVID or Bilibili video URL | references/bilibili_公开稿件信息查询.md, plus bilibili-sanlian-ads-materials image URL import |
| Object | Operation | Method and path | Notes |
|---|---|---|---|
| --- | --- | --- | --- |
| Campaign | Save/create/update | POST /open_api/cpc/v3/campaign/save | New campaign omits campaign_id; update requires it. Do not send support_auto on create. |
| Campaign | Get detail | GET /open_api/cpc/v3/campaign/get | Query one campaign by campaign_id. |
| Campaign | List | GET /open_api/cpc/v3/campaign/list_campaigns | Only returns new Sanlian adp_version=6; ID filter max 100; size range 1-100. |
| Unit | Save/create/update | POST /open_api/cpc/v3/unit/save | New unit omits unit_id; update requires it. |
| Unit | Get detail | GET /open_api/cpc/v3/unit/get | Query one unit by unit_id; result contains unit_bo and unit_info_bo. |
| Unit | List | GET /open_api/cpc/v3/unit/list_units | Only returns new Sanlian adp_version=6; ID filter max 100; size range 1-100. |
| Creative | Save/create/update | POST /open_api/cpc/v3/creative/save | Full replacement save at unit level. Always send all non-deleted creatives that should remain under the unit. |
| Creative | Get by unit | GET /open_api/cpc/v3/creative/get | Query all creative details under one unit. |
| Creative | List | GET /open_api/cpc/v3/creative/list_creatives | Preferred batch creative query API. Only returns new Sanlian adp_version=6; ID filter max 100; size range 1-100. |
bilibili-sanlian-ads-batch-operations.bilibili-sanlian-ads-batch-operations supports the requested batch change.https://www.bilibili.com/video/{bvid} for creative creation, ask whether to reuse the video's cover, title, and UP name.references/bilibili_公开稿件信息查询.md.data.pic as the cover URL, then use bilibili-sanlian-ads-materials image URL import to obtain a material ID.data.owner.name as the creative description and data.title as the creative title only after checking length, emoji, and unsupported characters.data.aid as the archive ID for the creative. Preserve it as a string if the runtime may lose integer precision.campaign/get, unit/get, creative/get) are best when an exact ID is known and the goal is edit-before-save, copy, or verification.mtime, but remember some returned fields may not update mtime.start_ctime/end_ctime and start_mtime/end_mtime list filters use millisecond timestamps; each start/end span must not exceed 24 hours.campaign_ids, unit_ids, and creative_ids allow at most 100 IDs in list APIs.| Domain | Source document | Local reference | Endpoint summary |
|---|---|---|---|
| --- | --- | --- | --- |
| Campaign | 计划管理/md/505_计划保存.md | references/505_计划保存.md | Save campaign: POST /open_api/cpc/v3/campaign/save |
| Campaign | 计划管理/md/506_计划查询.md | references/506_计划查询.md | Get campaign details: GET /open_api/cpc/v3/campaign/get |
| Campaign | 计划管理/md/810_计划列表.md | references/810_计划列表.md | List campaigns: GET /open_api/cpc/v3/campaign/list_campaigns |
| Unit | 单元管理/md/509_单元保存.md | references/509_单元保存.md | Save unit: POST /open_api/cpc/v3/unit/save |
| Unit | 单元管理/md/510_单元查询.md | references/510_单元查询.md | Get unit details: GET /open_api/cpc/v3/unit/get |
| Unit | 单元管理/md/811_单元列表.md | references/811_单元列表.md | List units: GET /open_api/cpc/v3/unit/list_units |
| Creative | 创意管理/md/524_创意保存.md | references/524_创意保存.md | Save creative: POST /open_api/cpc/v3/creative/save |
| Creative | 创意管理/md/525_创意查询.md | references/525_创意查询.md | Get creative details |
| Creative | 创意管理/md/812_创意列表.md | references/812_创意列表.md | List creatives |
| Public helper | Bilibili public video API | references/bilibili_公开稿件信息查询.md | Query BVID video info: GET https://api.bilibili.com/x/web-interface/view |
共 1 个版本