Command Palette

Search for a command to run...

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

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от 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 supports timeGranularity: hourly)
  • adGroup: ad group level
  • target: keyword/targeting level (requires queryType: keyword / product / auto)
  • searchTerm: search term level. queryType, when specified, only accepts keyword / product — auto is rejected outright. Omitting queryType entirely 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 by matchType_ to isolate them (see field-reference.md and the search-term example)
  • placement: ad placement level
  • productAd: 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 a productAd query. Do not answer that by taking another entity and adding productAd.asin_ as a dimension; see Dimension Entities below
  • asin: 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 below
  • campaignAudience: 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 factEntity multiplies the numbers. One ad group holds many products, so factEntity: "adGroup" with productAd.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 your factEntity are usually one-to-
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/ad-type-dependent-metrics.mdreferences/enum-i18n.mdreferences/example-acos-root-cause-investigation.mdreferences/example-aggregation-over-time.mdreferences/example-ai-group-performance.mdreferences/example-asin-query.mdreferences/example-campaign-performance.mdreferences/example-cross-entity-ratio-aggregation.mdreferences/example-global-aggregation.mdreferences/example-hourly-ams.mdreferences/example-keyword-target-query.mdreferences/example-multi-profile-comparison.mdreferences/example-nested-filters.mdreferences/example-period-comparison-top-movers.mdreferences/example-search-term.mdreferences/field-reference.mdreferences/platform-notes.md

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

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

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