agentleFS
gomarble-aigomarble-ai/marketing-agent/skills/tiktok-create-master-skill/SKILL.md

tiktok-create-master-skill

Skill15 starsChanged 36 days agoMITView on GitHub

Use for any TikTok Ads launch: a new campaign, ad group or ads, catalog and Smart+ campaigns. Creative-first, placement-aware, one-call launch via tiktok_propose_create_campaign_structure with approval before anything goes live.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never keep varying one parameter to escape an error: If a create fails on targeting or placement, the fix is almost always a *different* …

    line 39
  2. Distinctive:

    Exception — catalog / shop ads: If the user asks to promote a *product feed or store* rather than a specific creative ("run catalog ads", …

    line 71
  3. Distinctive:

    If the user supplied a still image and wants US or UK delivery, say so plainly before proposing: image ads cannot serve there on most …

    line 112
  4. Very specific:

    Available locations for the chosen placement: Call /tool/region/ with placements + objective_type (tiktok_search_targeting surfaces this).

    line 132
  5. Distinctive:

    Never assume a country is eligible, and never copy a country list from documentation — the live list differs per account and changes.

    line 134
  6. Distinctive:

    Default to proposing. Ask only when a choice genuinely changes the outcome: multiple ad accounts, an ambiguous funnel stage, or no …

    line 144
  7. Distinctive:

    Never split into one call per entity.

    line 178

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TikTok Ad Launch Workflow

A creative-first workflow for launching TikTok ads. The sequence is fixed: creative → placement → account scan → propose. Placement is decided second, immediately after the creative, because on TikTok the creative format dictates the placement and placement can never be changed after the ad group exists.

Tool behavior: the entire launch — campaign, ad group and ads — is proposed in ONE call to tiktok_propose_create_campaign_structure. Each entity gets its own operation_id. Through AI app connections TikTok changes can only be validated as a dry run: show the user the validated launch, then give them the steps to apply it in TikTok Ads Manager (see tiktok-ads). Where a live call is possible, it executes in dependency order (campaign → ad group → ads). Never thread IDs between slots — the server wires each new parent's ID into its children.


HARD RULE — Creation Failure Limit (strictly enforced)

If a launch call fails 2 or more times within the same workflow, STOP. Do not propose again, do not retry, do not attempt a workaround.

"I've attempted this step twice and it wasn't successful both times. This looks like it needs a change in TikTok Ads Manager or an account permission I can't resolve from here. I'd suggest reviewing the error above before trying again in a new conversation. Is there anything else I can help you with?"

A "failure" is a validation error (601), a platform error (403), or a thrown exception. A user rejecting a card is NOT a failure. Partial success is NOT a failure — re-propose only the failed children with adgroup_id.

Never keep varying one parameter to escape an error. If a create fails on targeting or placement, the fix is almost always a different field than the one you just changed. Guessing countries one at a time is the classic wrong loop.


Sub-Skill Index

SlotRead before fillingPath
campaign objectBuilding the campaign slotreferences/campaign.md
adgroup objectBuilding the ad group slotreferences/ad-group.md
ads arrayBuilding the adsreferences/ad.md
Upgraded Smart+ (any smart_plus work)Before touching tiktok_propose_manage_smart_plusreferences/smart-plus.md

Slot combinations (each parent is a config to create XOR an existing ID):

  • campaign + adgroup + ads → full launch
  • campaign_id + adgroup + ads → new ad group + ads under an existing campaign
  • adgroup_id + ads → add ads to an existing ad group
  • ONE ad group per call. More ad groups → one call each, passing campaign_id.

Phase 1 — Get the Creative

The creative comes first, always.

  • Image, video or carousel attached → go to Phase 2.
  • Referenced an existing ad → pull it and go to Phase 2.
  • Nothing attached → ask exactly one question: "Share the creative, or point me to an existing ad to clone." No objective, budget or audience questions.

Exception — catalog / shop ads. If the user asks to promote a product feed or store rather than a specific creative ("run catalog ads", "promote my products", "GMV Max"), there is no creative to collect. Skip to the inventory check in Phase 3 instead, and pick the path from what actually exists:

Inventory foundPath
A catalog (resource: CATALOG)PRODUCT_SALES + campaign_product_source: CATALOG → catalog ad group + ads
Only a TikTok Shop store (resource: STORE)GMV_MAX — campaign-only, no ad group or ads
NeitherStop and say so. No tool here creates a catalog; it must be set up in TikTok Ads Manager / Business Center first.

Having a store does not imply having a catalog — most Shop accounts have a store and zero catalogs. Check before promising either path.


Phase 2 — Decide the Placement (TikTok-specific, do this early)

The creative format decides the placement, and the placement decides everything downstream. Get this wrong and the ad group must be rebuilt — it cannot be edited.

CreativePlacementIdentity type
VideoPLACEMENT_TIKTOK or automaticBC_AUTH_TT / TT_USER
CarouselPLACEMENT_TIKTOKBC_AUTH_TT / TT_USER
Single imagePLACEMENT_PANGLE or PLACEMENT_GLOBAL_APP_BUNDLE onlyCUSTOMIZED_USER

Three rules that cause most launch failures:

  1. A single image ad cannot run on TikTok feed. Doc 1777633230937090 — image ads exist only on Pangle and Global App Bundle. On TikTok placement the create fails with Incorrect source field (40002), which names nothing.
  2. The identity type must match the placement. Spark identities (BC_AUTH_TT, TT_USER) exist only on TikTok. Pangle and Global App Bundle take the advertiser's own CUSTOMIZED_USER identity. Mixing them gives the same Incorrect source field.
  3. Pangle and Global App Bundle serve far fewer countries than TikTok, and the list depends on the ad account's registration market. Verify before proposing — see Phase 3.

If the user supplied a still image and wants US or UK delivery, say so plainly before proposing: image ads cannot serve there on most accounts, and the options are a Pangle-eligible country or a video creative.


Phase 3 — Scan the Account

Pull what you need to propose without asking. Synthesise into 1–2 lines; never dump raw data.

  • Existing campaigns/ad groups — objective, optimization goal, budgets, geos
  • tiktok_get_identities — note which types exist. You need a CUSTOMIZED_USER identity for image ads and a BC_AUTH_TT/TT_USER one for video. If the required type is missing, that's a blocker worth stating early.
  • Pixel(s) via tiktok_list_pixels when optimizing for CONVERT/VALUE
  • Catalog / store inventory via tiktok_list_catalogs — only for the catalog or GMV Max paths. resource: CATALOG → PRODUCT_SET → PRODUCT (individual SKUs), or resource: STORE for TikTok Shop. This is a read-only listing; it cannot create a catalog, a product set, or a store.
  • Available locations for the chosen placement. Call /tool/region/ with placements + objective_type (tiktok_search_targeting surfaces this). Never assume a country is eligible, and never copy a country list from documentation — the live list differs per account and changes.

Synthesis output: "Ref: <campaign> — Website conversions / CONVERT+SHOPPING / US 18-55 / $25/day. Pixel <n>, identity <name> (BC_AUTH_TT)."


Phase 4 — Propose or Ask

Default to proposing. Ask only when a choice genuinely changes the outcome: multiple ad accounts, an ambiguous funnel stage, or no reference data and unknown budget. Batch into one turn, max 2 questions, tappable options.


Phase 5 — Show the Configuration

FieldProposed valueSource
ObjectiveWebsite conversionsMirrors top campaign
PlacementPangle (image creative)Creative format
LocationsCanadaPangle-eligible, from /tool/region/
OptimizationCONVERT / SHOPPINGAccount default
Daily budget$25Median of existing ad groups
IdentityEvanAlexanderGrooming (CUSTOMIZED_USER)Required for Pangle
StatusPausedAlways

Then send the proposal as a dry run and show the user exactly what it would create.


Phase 6 — Launch (ONE call)

tiktok_propose_create_campaign_structure({
  "advertiser_id": "...",
  "currency_code": "USD",
  "campaign": { ...per references/campaign.md... },
  "adgroup":  { ...per references/ad-group.md... },
  "ads":      [ ...per references/ad.md... ]
})
  • Never split into one call per entity. Never pass IDs between slots.
  • Everything is created PAUSED (operation_status: DISABLE). TikTok's own default is ENABLE — i.e. live spend on approval — so the server forces DISABLE unless the user explicitly asks otherwise. Enable after review.
  • The dry run persists operations; the live call takes only operation_ids + account_id. Do not resend the full payload on the live call.

Other campaign families — dedicated tools, not this launch flow

  • Upgraded Smart+: reads tiktok_get_smart_plus, writes tiktok_propose_manage_smart_plus — load references/smart-plus.md first; the payload rules differ from everything in this skill.
  • Reach & Frequency (reservation buying): estimate with tiktok_get_reach_frequency, then tiktok_propose_manage_reach_frequency. CREATE_ADGROUP RESERVES REAL BUDGET on approval and cannot be paused; the account must be R&F-allowlisted AND hold a Commercial Contract for Branding.
  • Split tests: tiktok_get_split_test / tiktok_propose_manage_split_test — CREATE overwrites both ad groups' budgets and requires them ENABLED.
  • Appeals & offline events: tiktok_get_offline_event_sets / tiktok_propose_manage_review_and_events — an appeal is one-shot per rejection.

Reading TikTok's errors

TikTok returns 40002 for almost everything and rarely names the field. The server rewrites the two worst offenders — trust its added explanation.

MessageWhat it actually means
Incorrect source fieldThe identity type doesn't match the placement (or an image ad is on TikTok placement). Not a creative problem.
Unable to access image…You passed material_id where image_ids wants the image_id (ad-site-i18n-sg/...).
You must upload an imageA video ad has no cover — pass image_ids with the cover.
audience … must increase to over 1000The targeted countries have no eligible inventory on the chosen placement. Change the placement or the countries — not the audience size.
Custom identities are no longer supportedCUSTOMIZED_USER on TikTok placement. Use BC_AUTH_TT/TT_USER there.
shopping_ads_type rejected as an invalid enumYou used the campaign-level values (PRODUCT/LIVE) on the ad group, or the ad-group values (VIDEO/LIVE/PRODUCT_SHOPPING_ADS) on a GMV_MAX campaign. Same field name, different enum per slot.
Copy API is an allowlist-only featureCampaign copy (regular AND Smart+) is not granted to this advertiser. Stop — a TikTok representative must enable it. Retrying cannot help.
CTA not supported repeated across different valuesAccount-enablement wall (Smart+ ads), not a payload problem. Stop instead of iterating CTA values.
Split tests can only be created for active ad groupsThe split-test endpoint requires ENABLED ad groups at creation time, even with a future start_time.
description: Missing data for required field (offline event sets)/offline/create/ requires description even though the doc table doesn't mark it.
Your budget setting must not be less than $50 (or similar)Some accounts enforce a HIGHER floor than the documented $20 baseline per objective. Re-propose at the number TikTok names.

Never re-upload a creative in response to any of these. The asset is fine; the configuration is not.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.