Command Palette

Search for a command to run...

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

sparkx-edit-ads

БесплатноБез исполняемых скриптовНе проверен

Edit live Amazon Sponsored ad entities in bulk through the single tool `batch_update_ads` - campaign daily budget / state / bidding strategy, keyword and…

infometaот infometa★ 475 звёзд на GitHub

Об этом скилле

Edit Ads

One tool, batch_update_ads(entity, action, request, userContext), covers every write. Use the exact camelCase budget.type and bid.type values from the tool schema (for example, setTo or increasePercent), without spaces. Percent modes use amount: 10 for 10%, not 0.1. Legacy space-separated inputs are accepted for compatibility; use camelCase when constructing new requests. entity + action select one of 25 registered routes; an unregistered pair is refused.

Read references/platform-notes.md once first - scope, the response envelope, the full errorType list, rate limits, and how to tell "it failed" from "we do not know whether it applied".

These writes touch live spend

Every route here changes a real campaign that is spending real money right now.

Treat every state = archived write as irreversible. Once an object is archived the archived-state guard refuses any further write to it through this tool, so there is no un-archive path here - that applies to keywords, targets, negative keywords and negative targets just as much as to campaigns.

Do not confuse "irreversible" with "always confirms" - they are different sets:

  • Always confirms, on every call (7 routes): campaign + updateBudget, campaign + updateAudienceBid, campaign + updatePlacementBid, keyword + updateBid, target + updateBid, productAd + archive, portfolio + updateBudget.
  • Confirms only when the payload contains archived (5 routes): the updateStatus routes of campaign, keyword, target, negativeKeyword, negativeTarget.

So productAd + archive is the only archive path that is always gated; campaign + updateStatus with archived is gated conditionally, by the value you send. An archive you build without archived in the payload gets no preview at all.

A confirmation preview only tells the user what you are about to do - you are responsible for it being the right thing.

Confirmation can be waived; irreversibility cannot. If the user explicitly tells you to stop asking, you may stop asking - see "When the user waives confirmation" below. The platform's two-phase protocol still runs, an archive is still permanent, and the checks you owe are unchanged. Waiving the question does not waive the verification.

Before you write anything

  1. get_user_authorized_context -> each profile carries profileId, profileName, countryCode, currencyCode, timezone and storeType (seller / vendor). That one call answers the marketplace and seller-vs-vendor questions - do not go looking elsewhere for them. If the profile-metadata lookup fails the server degrades to profileId only, so when storeType (or countryCode) is missing, blank, or not one of the expected values, ask the user instead of guessing. profileIds is all-or-nothing: one unauthorized id rejects the entire batch. Never widen the set "just in case". Note the server de-duplicates profileIds, so meta.effectiveProfileIds can be shorter than what you sent.
  2. get_entity_metadata -> the internal ids AND their discriminator fields. See references/id-and-identity.md. This step is not optional and its output cannot be guessed.

The ids from get_ads_perf and get_operation_log are Amazon ids (15-19 digits) and are useless here. Passing one either fails a positive-long check or resolves nothing.

The five rules that will bite you

1. Always send the discriminator fields, exactly as metadata returned them. keywordId alone does not identify a row. Keyword writes are routed to one of three different physical tables by matchType (theme -> theme table, group -> target table, exact/phrase/broad -> keyword table) and those tables have independent id spaces. Negative keywords are split by businessType, negative targets by campaignType, the same way.

  • Send matchType + campaignType for keyword, businessType + campaignType for negativeKeyword, campaignType for target / productAd / negativeTarget.
  • Echo the value metadata gave you. Never infer it, never omit it, never normalise its case. A wrong value surfaces as the confusing unable to resolve owning campaign; omitting it silently drops a safety filter.
  • This is about the value, not the JSON type: internal ids go into write payloads as numbers even where a read table shows them as strings, and only profileId and text/enum values are strings. Converting "991201" to 991201 is required, not normalising.
  • The spec's per-route field tables mark some of these "透传" (pass-through). Treat them as required regardless.

2. Send enums byte-exact. Every enum is matched case-sensitively with no trimming and no aliases. "ENABLED", "Exact", " archived" all fail. Only profileId is trimmed.

**3. Nested profileId is a string; top-lev

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

Установить sparkx-edit-ads в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/archived-guard.mdreferences/confirmation.mdreferences/id-and-identity.mdreferences/platform-notes.mdreferences/route-matrix.mdreferences/write-ad-group.mdreferences/write-campaign.mdreferences/write-keyword.mdreferences/write-portfolio.mdreferences/write-product-ad.mdreferences/write-target.md

FAQ

Что делает скилл sparkx-edit-ads?

Edit live Amazon Sponsored ad entities in bulk through the single tool `batch_update_ads` - campaign daily budget / state / bidding strategy, keyword and target status and bids, promoted products (product ads), negative keywords and negative product targets, campaign portfolio membership, portfolio budgets/dates, and ad group state. 25 entity+action routes; 12 of them can run a two-phase platform confirmation. Use when the user wants to change / pause / enable / archive / raise / lower / add / copy something on the ads themselves - 改预算 / 暂停广告 / 调价 / 加词 / 加否定词 / 投放商品 / 复制否定词. Not for AI managed groups (托管组) - creating, editing or deleting those uses sparkx-create-ai-group / sparkx-edit-ai-group / sparkx-delete-ai-group. Not for reading data (use sparkx-query-ads-performance / sparkx-query-entity-metadata).

Как установить скилл sparkx-edit-ads?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sparkx-edit-ads запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить sparkx-edit-ads с