Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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_campaign is 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

  1. get_user_authorized_context -> the profileId. One profile per call; campaigns for two stores are two calls.

  2. 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.

  3. If the user asked for keyword or product-target suggestions, the suggestion entities live in sparkx-query-entity-metadata. All of them need exactly one profileId, but their mandatory filters differ - they are not interchangeable:

    Entity Mandatory filter
    suggestedKeyword, keywordGroup, suggestedTarget filters.asin
    suggestedBid filters.asin, plus one of two mutually exclusive modes
    amcAudience filters.campaignType (sponsoredProducts / sponsoredBrands; SD is rejected). It takes no asin
  4. For new campaign creation, picking an audience is its own step, not part of the suggestion sweep. create_sp_ad_group has no audience fields. amcAudience also takes filters.audienceSegmentType, and that filter chooses which of the two pools you see. Omitting it does not widen the search - it silently narrows it to SPONSORED_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 with SPONSORED_ADS_AMC, one with BEHAVIOR_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.

  5. 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:

Полный SKILL.md на GitHub

Установить sparkx-create-campaign в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/create-sp-ad-group.mdreferences/platform-notes.mdreferences/sp-fields.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить sparkx-create-campaign с