sparkx-query-ads-performance
БесплатноБез исполняемых скриптовНе проверенQuery advertising performance metrics: spend, clicks, sales, ACOS, ROAS, etc. For analyzing ad performance, comparing time periods, ranking by entity, trend…
от infometa★ 475 звёзд на GitHubОб этом скилле
Query Ads Performance Skill
MCP Tool
This skill maps to MCP tool: get_ads_perf. Required scope: amazon_sa_performance_data:read.
Profile scope is resolved from the authenticated bearer token. profileIds is required — always call get_user_authorized_context first to obtain authorized profile IDs, then pass one or more into profileIds. Every requested ID must be authorized: one unauthorized value fails the entire call with invalid_params / Requested profileIds contain unauthorized values — nothing is silently dropped and you never get a partial result (see Platform-Wide Rules below). Take the IDs verbatim from get_user_authorized_context; don't hand-type them or reuse them from an earlier session. If the user didn't specify a store, pass all authorized profileIds. Never pass tenantId or userId; the server derives them from the token.
userContext (required): Must pass a non-empty string on every call. Preserve the user's original query as much as possible, plus the agent's reason for calling this tool. Summarize if too long, max 100 characters.
Platform-Wide Rules
Before using this tool, read references/platform-notes.md — it covers auth flow, permission scopes, error handling, pagination/date-limit tables, the Ratio Metric Display Rule (ACOS/CTR/CVR/TACOS), currency rules, the tool-selection decision tree, and implicit inference rules shared across all 3 read tools. That file ships inside this same skill folder, so it travels with this skill regardless of how it's packaged/installed. This SKILL.md only covers what's specific to get_ads_perf.
When to Use
Use this tool when the user needs any of the following:
- Query ad performance data (spend, clicks, conversions, ACOS, etc)
- Filter and aggregate data by time range (daily, weekly, monthly trends)
- Group and rank by entity dimension (Campaign, AdGroup, Keyword, ASIN)
- Get top N rankings or performance leaderboards
- Compare time periods (week-over-week, month-over-month, before/after AI management)
- Analyze ad ROI and cost efficiency
See the Tool Selection Decision Tree above if the user's ask might belong to get_entity_metadata or get_operation_log instead.
Core Concepts
Fact Entity (factEntity)
The query subject determining aggregation granularity:
campaign: campaign level (the only entity that supportstimeGranularity: hourly)adGroup: ad group leveltarget: keyword/targeting level (requiresqueryType:keyword/product/auto)searchTerm: search term level.queryType, when specified, only acceptskeyword/product—autois rejected outright. OmittingqueryTypeentirely is valid and returns the full unfiltered search-term set (manual keyword/product terms mixed with Auto-matched terms) — this is currently the only way to retrieve Auto-targeting search terms; filter bymatchType_to isolate them (see field-reference.md and the search-term example)placement: ad placement levelproductAd: product ad level — this is the entity for per-product advertising performance. Its rows are already one per advertised product, so "spend/ACOS by ASIN or SKU" is aproductAdquery. Do not answer that by taking another entity and addingproductAd.asin_as a dimension; see Dimension Entities belowasin: ASIN business data level (adds business metrics like TotalSalesAmount, TACOS)keywordPlacement: keyword × placement joint level, sourced from Amazon Marketing Stream (AMS) — hourly by nature, SP only, max 7-day span. See Hourly / AMS Data belowcampaignAudience: one audience segment from the report table × that campaign's metrics, plus the campaign's current audience bid adjustment. Covers both audience types, custom AMC and Amazon-built. SP / SB only, and only campaigns that have rows in the audience report table - which is not the same as "currently bound". Its contract differs from every other entity; see "factEntity: campaignAudience" below
Passing an unsupported value fails with invalid_params; the enum above is the complete list.
Dimension Entities
Auxiliary tables for joining and aggregating — referenced via select/filters, not declared separately:
campaign,adGroup,target,asin,parentAsin,aiGroup,portfolio,productLine,profile,automationRule- The system JOINs automatically based on the fields in
select/filters— you never declare a join. But it does not verify that the join is one-to-one, and it does not warn you when it isn't. - Adding a dimension from below your
factEntitymultiplies the numbers. One ad group holds many products, sofactEntity: "adGroup"withproductAd.asin_repeats the ad group's entire spend, sales and order count on every ASIN. Nothing errors; the rows look plausible and the totals are several times the truth. Dimensions that sit above yourfactEntityare usually one-to-
Установить sparkx-query-ads-performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sparkx-query-ads-performance?
Query advertising performance metrics: spend, clicks, sales, ACOS, ROAS, etc. For analyzing ad performance, comparing time periods, ranking by entity, trend analysis. Keywords: ad data, performance, spend analysis, ACOS, sales, conversion rate, campaign performance, adGroup comparison, keyword analysis, ASIN ads, search term report, daily/weekly/monthly trends, top N ranking, week-over-week, year-over-year, hourly data, by hour, intraday, AMS, Amazon Marketing Stream, keyword placement, vendor, seller, distributorView, sellingProgram, shipped revenue, ordered revenue, TACOS
Как установить скилл sparkx-query-ads-performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sparkx-query-ads-performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic