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★ 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): theupdateStatusroutes ofcampaign,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
get_user_authorized_context-> each profile carriesprofileId,profileName,countryCode,currencyCode,timezoneandstoreType(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 toprofileIdonly, so whenstoreType(orcountryCode) is missing, blank, or not one of the expected values, ask the user instead of guessing.profileIdsis all-or-nothing: one unauthorized id rejects the entire batch. Never widen the set "just in case". Note the server de-duplicatesprofileIds, someta.effectiveProfileIdscan be shorter than what you sent.get_entity_metadata-> the internal ids AND their discriminator fields. Seereferences/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+campaignTypefor keyword,businessType+campaignTypefor negativeKeyword,campaignTypefor 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
profileIdand text/enum values are strings. Converting"991201"to991201is 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
Установить sparkx-edit-ads в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
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