sparkx-create-campaign
БесплатноБез исполняемых скриптовНе проверенCreate new Amazon Sponsored Products campaigns in bulk through `create_sp_sb_campaign`, or add ad groups to an existing SP campaign through…
от infometa★ 475 звёзд на GitHubОб этом скилле
Create Sponsored Products campaigns and ad groups
Two tools: create_sp_sb_campaign and create_sp_ad_group. Both use scope
amazon_sa_campaign_create:write, separate from the
edit scope - a token that can edit campaigns cannot necessarily create them.
Sponsored Products only, right now
The tool is named create_sp_sb_campaign, but this server currently enables SP only.
- Sponsored Brands is refused at the entry, with an error naming the types that are enabled. Do not retry the same type. Tell the user SB creation is not available here and point them at the web console.
- Sponsored Display has no tool at all.
create_sd_campaignis not registered, so it will not appear in your tool list. Do not go looking for it. - The enabled set is server configuration and can widen later without a code change. Trust the error over this document: if a type is refused, it is off; if it succeeds, it is on.
Everything below describes the SP path. Sections that apply only to
create_sp_sb_campaign or only to create_sp_ad_group say so explicitly.
These writes create live configuration
A created campaign or ad group is live configuration. There is no "draft" state and no undo
through these tools - a mistake has to be cleaned up in sparkx-edit-ads or the console, one
object at a time.
Use state: "paused" while testing. A paused campaign or ad group can be enabled in one
edit afterwards. Creating enabled and fixing later can spend during the gap.
A create_sp_sb_campaign batch is atomic. If any campaign, ad group or child object fails validation or
the downstream write, nothing is created - not even the campaigns that were fine. So a
failure is safe, and the fix is to correct and resend the whole batch, never to "retry the
rest".
Before you build anything
get_user_authorized_context-> theprofileId. One profile per call; campaigns for two stores are two calls.get_entity_metadata(entity='asin')-> the ASINs you will promote, and their SKUs on a Seller profile. Do not invent SKUs; see "Seller vs Vendor" below. An ASIN that returns nothing may be a parent - see "A parent ASIN cannot be advertised" below before telling the user it doesn't exist.If the user asked for keyword or product-target suggestions, the suggestion entities live in
sparkx-query-entity-metadata. All of them need exactly oneprofileId, but their mandatory filters differ - they are not interchangeable:Entity Mandatory filter suggestedKeyword,keywordGroup,suggestedTargetfilters.asinsuggestedBidfilters.asin, plus one of two mutually exclusive modesamcAudiencefilters.campaignType(sponsoredProducts/sponsoredBrands; SD is rejected). It takes noasinFor new campaign creation, picking an audience is its own step, not part of the suggestion sweep.
create_sp_ad_grouphas no audience fields.amcAudiencealso takesfilters.audienceSegmentType, and that filter chooses which of the two pools you see. Omitting it does not widen the search - it silently narrows it toSPONSORED_ADS_AMC, so every Amazon-built audience is invisible and the user never learns it existed. The filter takes one value only - a two-value array is rejected outright (accepts a single value only, got 2), so there is no single call that returns both pools. When the user names the type, query that pool. When they do not, either ask, or make two separate calls - one withSPONSORED_ADS_AMC, one withBEHAVIOR_DYNAMIC- and merge the two results into one list for them to choose from, saying which pool each came from. Never let the default pick the audience.Decide the targeting type before writing anything - the campaign's and the ad group's together. They decide which child lists are legal, and sending the wrong ones fails the batch.
Pick the targeting type first - campaign and ad group together
The console shows one 投放类型 / Targeting radio on the campaign, but the request carries a
second targetingType on each ad group, and the two must agree.
A campaign is targetingType: "auto" or "manual", and an ad group is
targetingType: "keyword" or "target" (omitted on a manual campaign: inferred from content - only keywords -> keyword, only targets -> target, both or neither rejected). Only three combinations exist:
| What the user wants | campaign | ad group | Child lists you may send |
|---|---|---|---|
| let Amazon match automatically | auto |
target (required) |
targetBid and productAds; negatives of both kinds allowed |
| bid on search terms | manual |
keyword |
keywords + productAds; negativeKeywords only |
| target ASINs or categories | manual |
target |
targets + productAds; negativeTargets only |
Two things fall out of this table that are easy to get wrong:
Установить sparkx-create-campaign в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sparkx-create-campaign?
Create new Amazon Sponsored Products campaigns in bulk through `create_sp_sb_campaign`, or add ad groups to an existing SP campaign through `create_sp_ad_group` - promoted products, negatives, and either auto targeting, keywords, or product targets. New-campaign creation also supports placement adjustments and an optional audience. Use when the user wants to build / launch / set up a new campaign - 新建广告活动 / 建一个自动广告 / 开个手动词的活动 / 按这批 ASIN 建活动 - or add ad groups under an existing SP campaign. It is not for editing existing objects (use sparkx-edit-ads), for AI managed groups (use sparkx-create-ai-group), or for reading data (use sparkx-query-ads-performance / sparkx-query-entity-metadata).
Как установить скилл sparkx-create-campaign?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sparkx-create-campaign запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic