Bilibili Triple Ads - Ad Management: Managing Legacy Campaign-Ad Group-Creative with Agent Skill

Preface

In Bilibili “Sanlian” (Three-in-One) advertising, many accounts still utilize the legacy three-tier structure: Campaigns carry the promotion objective and budget, Units carry targeting, scheduling, and bidding, and Creatives carry the assets and display formats. To build campaigns, modify bids, batch start/stop, or check creative reviews within an Agent, one typically has to piece together requests by referencing MAPI documentation, handle OAuth and field enumerations, and distinguish between the legacy v3 structure and the v4 interfaces used for Creative-Driven Delivery 2.0.

Below is an introduction to Bilibili Sanlian Ads - Ad Management (package identifier bilibili-sanlian-ads-ad-management) on SkillHub. It encapsulates the save, query, list, and audit information operations for legacy ad objects, one-click volume ramp-up (acceleration), account smart derivative switches, and asynchronous batch operations for campaigns/units/creatives into an executable Skill workflow. It also includes references/ field descriptions synchronized with the official documentation.

What is this

Bilibili Sanlian Ads - Ad Management targets the LEGACY three-layer creation of the Bilibili Sanlian Ads Marketing API (MAPI): Campaign / Unit / Creative. The instructions within the Skill are maintained by the author, Benjamin. The current version retrieved from SkillHub is 3.0.4, categorized as business-ops.

It solves the following problem: given an existing access_token and advertiser account_id, it allows an Agent to call v3 endpoints according to specifications, rather than hand-writing fragmented HTTP requests or mixing in 2.0 interfaces. It is used in conjunction with other Sanlian Ads skills such as Bilibili Sanlian Ads - Authorization & Main Flow (bilibili-sanlian-ads), Ad Metadata, and Asset Upload: use the main flow Skill for authorization and account scope, query Metadata for enumerations and investable resources, use the Asset Skill for creatives, while this Skill focuses on the reading, writing, and batch tasks of the ad objects themselves.

Official Entry (given by task): https://api.skillhub.cn/user_b0010d5c/sanlian-ads-ad-management

SkillHub Community Page (Retrieved on 2026-10-20 as installable package @indiv-benjamin/sanlian-ads-ad-management, consistent with the description above): Can be located via CLI skillhub search sanlian-ads-ad-management.

Core Functions

The following capabilities are derived from the SKILL.md and interface index within the Skill package, corresponding to v3 paths (Base Domain https://cm.bilibili.com/takumi/api).

Campaigns, Units, Creatives

  • Save & Update: POST /open_api/cpc/v3/campaign/save, /unit/save, /creative/save
  • Single Query: GET .../campaign/get, /unit/get, /creative/get
  • List: GET .../campaign/list_campaigns, /unit/list_units, /creative/list_creatives
  • Creative Batch Scroll Query: POST /open_api/cpc/v3/creative/scroll/query

The creation order is strictly top-down: a Campaign ID must exist before creating Units, and Units before creating Creatives. After saving at each level, a query read-back should be performed for verification, rather than repeating the save submission.

Creative Review & Account Switches

  • Batch Query Creative Native Review Info: POST /open_api/cpc/v3/creative/audit/extra/info/query
  • Account Smart Derivative: Query GET /open_api/cpc/v3/account/smart_derivative, Set POST to the same path.

One-Click Volume Ramp-up (Acceleration)

Operates on eligible oCPC/oCPM running units via v3 unit interfaces such as get_remaining_budget, accelerate, and finish_accelerate. The Skill requires checking the remaining budget first, limiting the operation to a maximum of 20 units per batch, and checking the operate_code in the response for each unit.

Asynchronous Batch Operations

This Skill owns the batch interfaces for the three layers of Campaign/Unit/Creative (dedicated to legacy objects), such as:

  • POST /open_api/cpc/v3/batch/update_campaign
  • POST /open_api/cpc/v3/batch/update_unit
  • POST /open_api/cpc/v3/batch/update_creative
  • Task List & Details: GET .../batch/list_operations, /batch/list_operation_details

A single request only handles one type of operation_type. After submission, the task status must be polled, and the results for every object must be checked in the task details; a successful top-level status does not imply success for all objects.

Explicitly Unsupported Scope

  • Covers only legacy three-layer v3 endpoints; it cannot read or write Creative-Driven Delivery 2.0 projects / media (v4 /open_api/cpc/v4/*).
  • New ad creation for whitelisted accounts should be routed to bilibili-sanlian-ads-delivery; this Skill is still used for editing and querying existing legacy ads.

Chinese Trigger Words (Self-described by Skill): Campaign, Unit, Creative, Build Campaign, Build Unit, Build Creative, Ad Setup, Start/Stop, Batch Operation, Batch Modify, One-click Ramp-up, Smart Derivative, Legacy Ad.

Installation and Activation

1. Install SkillHub CLI

If skillhub is not available in the terminal, follow the SkillHub installation documentation:

command -v skillhub && skillhub --version

If not installed, you can use:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Source Description: https://skillhub.cn/install/skillhub.md

2. Install this Skill

During installation, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ which may not be loaded.

skillhub install sanlian-ads-ad-management --namespace indiv-benjamin --dir ~/.cursor/skills
  • Cursor: Common directory is ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex CLI: ~/.codex/skills/ or .agents/skills/ under the project

Restart or reload the Agent after installation to activate the Skill.

3. Prerequisites (With Sanlian Ads Skill Family)

This Skill does not replace authorization. A valid access_token and advertiser account_id are required before calling; if missing, use Bilibili Sanlian Ads - Authorization & Main Flow (bilibili-sanlian-ads) first. Before saving, selectable enumerations and resource IDs should be queried from Bilibili Sanlian Ads - Ad Metadata; images/videos required for creatives should be prepared via Bilibili Sanlian Ads - Asset Upload first.

Requirements within the package: All MAPI calls must go through scripts/mapi.sh (or py -3 scripts/mapi_client.py on Windows). Do not hand-write curl for concurrent MAPI requests across multiple accounts. Request headers must include Authorization: Bearer {access_token}, X-Call-Source: sanlian-skills, and X-Sanlian-Skills-Version: 3.0.4 (consistent with the current package version).

Typical Usage

Building a Legacy Ad from Scratch

In the conversation, describe the goal in natural language (e.g., app download, daily budget, targeting) and include trigger words like “Build Campaign”, “Build Unit”, “Build Creative”. After enabling this Skill, the Agent should execute according to the Creation Order within the package:

  1. Use bilibili-sanlian-ads to confirm token and account_id.
  2. Use bilibili-sanlian-ads-metadata to query promotion purposes and required promotion content, optimization goals, bidding ranges, and targeting for units.
  3. Display the campaign preview and, after user confirmation, call the campaign save interface, then query to obtain the campaign_id.
  4. Query unit metadata according to the confirmed branch, save the unit, and query back for unit_id.
  5. Once assets are ready, query creative placement/template constraints, save the creative, and query back for creative_id. Query review info if necessary.

Fields and enumerations should be based on the package’s references/ (e.g., 505_Campaign Save.md, 509_Unit Save.md, 524_Creative Save.md). Do not guess enumeration values.

Initiating a Single Call via the mapi Script

The Skill specifies that the unified MAPI entry point takes the form:

call <METHOD> <path> [--query-file q.json] [--body-file body.json]

For example, when querying a single campaign, the path is GET /open_api/cpc/v3/campaign/get (see references/506_Campaign Query.md for full query fields). mapi.sh is responsible for loading/refreshing tokens, appending headers, and rate limiting. The Agent should determine business success based on the response body (not just the HTTP status code).

Batch Modification & Task Polling

Typical steps for batch start/stop or budget modification:

  1. First, list or query the current object status and show the user the before/after values.
  2. Select a single operation_type, construct the operations array according to references/541_Batch Operation Campaign.md (or corresponding Unit/Creative docs); note the limit of 100 IDs per request and that multiple operation types cannot be mixed.
  3. After submission, record the operation_id, poll list_operations at intervals suggested by the Skill, and after reaching a terminal state, query list_operation_details to verify object by object.
  4. Perform read-back verification on queryable fields before deciding whether to submit the next batch.

One-Click Ramp-up

After explaining to the user that this will incur real consumption, first query the unit’s remaining budget, then call the acceleration interface; check the operate_code for each unit, rather than just looking at the top-level status: success.

Applicable Scenarios & Notes

Who is it for

  • Advertisers, agencies, and internal tool developers: Accounts that still primarily use the legacy Campaign-Unit-Creative structure and need to drive MAPI via natural language in environments like Cursor / Claude Code.
  • Teams already integrated with Sanlian MAPI who want their Agents to comply with official field tables and batch asynchronous semantics, rather than temporarily piecing together interfaces.

Usage Notes

  • Strict Isolation from 2.0: Use the delivery-related Skill for creating new Creative-Driven projects; misuse of this Skill will lead to reading/writing incorrect object types.
  • Write Operation Discipline: Follow the staged confirmation, canary batching, and stop-on-error rules of the main flow Skill; batch task completion does not equal success for every ID.
  • Metadata First: Enumerations and resource IDs not confirmed via metadata can easily lead to save failures or silent writing of unexpected values.
  • Community Data (Task clues for selection reference): SkillHub rating approximately 99554, downloads approximately 2457; subject to real-time display on the community page.

Conclusion

Bilibili Sanlian Ads - Ad Management consolidates the most core legacy ad object operations and batch tasks into a single Skill: v3 creation, review and ramp-up, smart derivative switches, and asynchronous batch task tracking. When chained with Authorization, Metadata, and Asset Skills, it is suitable for performing auditable, read-back capable ad delivery changes within an Agent.

Official Address: https://api.skillhub.cn/user_b0010d5c/sanlian-ads-ad-management

Installation and CLI Instructions: https://skillhub.cn/install/skillhub.md

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye