Tencent Ads Creative Management
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @tencent-adm/tencentads-creatives.
About this skill
Problem Solved
In Tencent ad campaigns, managing dynamic creatives (component-based creatives) for display ads is a complex process. Advertisers need to handle various creative components such as images, videos, and text, but face several challenges:
- Tedious parameter validation: Creative creation involves mandatory field checks, creative count limits, and component dependency constraints, which are error-prone when done manually.
- Cross-platform compatibility: Passing JSON parameters across different operating systems and terminals requires specific quote wrapping methods, often leading to parse failures.
- Fragmented asset management: Uploading, querying, and authorizing assets involves multiple APIs, making the process disjointed.
- Product template integration: For dynamic product ads (MPA/DPA), generating assets from product catalogs requires a separate but intricate workflow.
This skill aims to address these issues through scripted tools, providing an automated and standardized creative management workflow.
How the Skill Works
Based on the Tencent Marketing Ads API v3.0, the skill implements core functions via a series of Node.js scripts. Key steps include:
Asset Preparation
If assets like image_id or video_id are already available, use them directly; otherwise, upload or query assets using scripts:
- Upload assets: Use
scripts/upload-image.mjsorscripts/upload-video-svp.mjs, supporting images (jpg/png/gif ≤10MB) and videos (mp4/mov/avi ≤100MB). - Query assets: Offers two modes:
- Media library mode: Use
scripts/get-integrated-media.mjsfor availability filtering, report sorting, etc. - Component mode: Use
scripts/get-integrated-components.mjsto query by component granularity, directly obtainingcomponent_id.
Generate Assets from Product Templates
For dynamic product ads, generate assets from product catalog templates:
- Query templates: Use
scripts/dynamic-product-templates/get-dynamic-ad-image-templates.mjsorget-dynamic-ad-video-templates.mjs. - Generate assets: Use
generate-dynamic-ad-image.mjsorgenerate-dynamic-ad-video.mjs; the returnedimage_idorvideo_idcan be used in creative components.
Create Creatives
The core process involves three steps:
- Query ad group context: Use
scripts/query-adgroup-context.mjsto retrieve ad group information likemarketing_asset_outer_spec. - Query creative formats and constraints: Use
scripts/get-creative-templates.mjsandscripts/get-component-depends.mjsto determine available creative templates and component dependency rules. For example, fillinglive_promoted_typedepends onlive_promoted_type_list. - Obtain and build components: Fetch
component_idviascripts/get-component-list.mjsorscripts/get-components.mjs, following selection rules (user-specified > unique available > ask user). Then, usescripts/build-creative-params.mjsto preprocess parameters and finally callscripts/create-creative.mjsto create the creative.
Other operations like updating or deleting creatives use corresponding scripts update-creative.mjs and delete-creative.mjs.
Considerations
When using this skill, note the following:
- Serial execution constraint: Creative operations under the same ad group must be executed serially, not concurrently, to avoid conflicts.
- Do not modify user intent: User-specified parameter values must be passed as-is; if unsupported by scripts, explicitly report an error instead of using default values.
- Cross-platform JSON passing: When passing JSON parameters across terminals (e.g., Linux, Windows CMD, PowerShell), follow the correct quote wrapping rules to prevent parse errors. For instance, in Windows PowerShell 5.x, use the
--%stop-parsing symbol. - Component selection rules: After fetching component lists, strictly avoid picking the first one randomly; decide based on user specification, unique availability, or user inquiry.
- Optional component rule: Without user permission, do not add components with
required=false(e.g., floating zones, labels) on your own. - Asset authorization management: Use scripts like
scripts/grant-assets.mjsfor cross-account asset authorization, but note that revocation is irreversible.
This skill is suitable for advertisers and operations teams needing efficient management of Tencent ad dynamic creatives, but ensure the environment is configured correctly (e.g., Node.js ≥ 20) and business rules are understood.
Use Cases
- When an ad optimizer needs to batch-create component-based dynamic creatives for a campaign, use this skill to upload assets, query component constraints, and generate creative parameters.
- During a campaign, quickly update components of an existing creative (e.g., replacing a video or copy) by querying the component library and calling update scripts.
- Manage cross-account asset authorization by granting images or videos from this account to other accounts under the same entity, avoiding redundant uploads.
- Generate images or videos from product catalog templates for dynamic product ads (MPA/DPA) to rapidly build creatives.
Best For
- Media optimizers managing Tencent ad accounts who need to efficiently create and iterate ad creatives to test performance.
- E-commerce operations teams responsible for generating assets and updating creatives for dynamic product ads to promote product catalogs.
- Technical integration developers building automation tools for marketing platforms who need to call Tencent Ads APIs to manage creative lifecycles.
- Advertising agency project managers coordinating creative asset authorization and batch operations across multiple client ad accounts.
Related Skills
AI agent tool for generating HTML proposals for client visit business scenarios, featuring deep research and dynamic mainline mapping.
Bid Proposal Verification Tool is used to verify the consistency between bid proposals and tender documents, checking table of contents, page numbers, attachments, and seals, based on Shibot Technology's bid data API.
An AI engine built on extensive bidding data to precisely search for tender projects and potential clients using natural language or structured criteria.
Automates bid document, response table, and material list generation from bid files and enterprise data using Shibuo Technology API.