Logo di Unified Api Migration Guide

Unified Api Migration Guide

Community
wjwwwww
unified-api-migration-guide

Use when a developer asks about migrating from legacy Amazon Ads APIs (SP v3 or SB v4) to the Unified API (/adsApi/v1/), assessing migration scope, identifying effort levels, determining what can and cannot be migrated, and planning migration steps.

Panoramica

Pubblicato dawjwwwww
Repositoryamazon-ads-api-skills
Nome della skillunified-api-migration-guide
Stelle
30
Fork
2
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da wjwwwww su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Unified Api Migration Guide in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/unified-api-migration-guide
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wjwwwww/amazon-ads-api-skills.git /tmp/amazon-ads-api-skills
mkdir -p .claude/skills
cp -r /tmp/amazon-ads-api-skills/skills/unified-api-migration-guide .claude/skills/unified-api-migration-guide
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Unified Api Migration Guide in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Unified Api Migration Guide non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Unified Api Migration Guide non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Amazon Ads: Legacy API to Unified API Migration Guide

How to Use This Skill

This skill guides developers through a structured migration assessment. When a developer asks about migration, walk them through these steps in order. For detailed field-level mapping, refer to the product-specific skills:

  • SP migration details → unified-sp-migration skill
  • SB migration details → unified-sb-migration skill

Step 1: Discovery — What Are You Currently Using?

Ask the developer to identify their current integration:

Questions to Ask

  1. Which ad product(s)? SP, SB, or both?
  2. Which endpoints do you call? (provide the checklist below)
  3. Which operations? Create, Read/List, Update, Delete, Recommendations, Reporting?
  4. What's your priority? New feature adoption? Sunset deadline? Consolidation?

SP v3 Endpoint Checklist

CategoryEndpointsMigrable?
Campaigns/sp/campaigns (CRUD)✅ Yes
Ad Groups/sp/adGroups (CRUD)✅ Yes
Product Ads/sp/productAds (CRUD)✅ Yes
Keywords/sp/keywords (CRUD)✅ Yes (→ targets)
Negative Keywords/sp/negativeKeywords (CRUD)✅ Yes (→ targets, negative=true)
Campaign Negative Keywords/sp/campaignNegativeKeywords (CRUD)✅ Yes (→ targets, campaign-level)
Targets/sp/targets (CRUD)✅ Yes
Negative Targets/sp/negativeTargets (CRUD)✅ Yes (→ targets, negative=true)
Campaign Negative Targets/sp/campaignNegativeTargets (CRUD)✅ Yes (→ targets, campaign-level)
Budget Rules/sp/budgetRules❌ No — keep using v3
Budget Recommendations/sp/campaigns/budgetRecommendations❌ No
Budget Usage/sp/campaigns/budget/usage❌ No
Campaign Recommendations/sp/campaign/recommendations❌ No
Optimization Rules/sp/rules/optimization❌ No
Keyword Recommendations/sp/targets/keywords/recommendations❌ No
Product Recommendations/sp/targets/products/recommendations❌ No
Bid Recommendations/sp/targets/bid/recommendations❌ No
Targetable Categories/sp/targets/categories❌ No
Category Refinements/sp/targets/category/{id}/refinements❌ No
Negative Target Brand Recs/sp/negativeTargets/brands/recommendations❌ No
Target Promotion Groups/sp/targetPromotionGroups❌ No
Events/sp/v1/events❌ No
ReportingReporting APIs❌ No change needed (separate API)

SB v4 Endpoint Checklist

CategoryEndpointsMigrable?
Campaigns/sb/v4/campaigns (CRUD)✅ Yes
Ad Groups/sb/v4/adGroups (CRUD)✅ Yes
Ads (all types)/sb/v4/ads/* (CRUD)✅ Yes
Ad Creatives/sb/ads/creatives/*✅ Yes (merged into update/ads)
Budget Rules/sb/budgetRules❌ No — keep using v4
Budget Recommendations/sb/campaigns/budgetRecommendations❌ No
Budget Usage/sb/campaigns/budget/usage❌ No
Campaign Insights/sb/campaigns/insights❌ No
Forecasts/sb/forecasts❌ No
Optimization Rules/sb/rules/optimization❌ No
Headline Recommendations/sb/recommendations/creative/headline❌ No
Negative Target Brand Recs/sb/negativeTargets/brands/recommendations❌ No
Targetable Categories/sb/targets/categories❌ No
V3 Migration/sb/v4/legacyCampaigns/migrationJob❌ No
ReportingReporting APIs❌ No change needed (separate API)

Step 2: Assess — Effort Level Per Area

Once you know what endpoints are in scope, assess the effort level:

Effort Matrix

Migration AreaEffortReason
Headers🟢 LowRename 1 header, change Content-Type
Campaign CRUD🟡 MediumBudget restructuring, date format, bidding restructuring
Ad Group CRUD🟢 LowAdd adProduct, wrap bid in object
Ad/Product Ad CRUD🟡 MediumNew creative wrapper structure
Targeting (SP)🔴 High5+ endpoints consolidated into 1; complete restructuring
Targeting (SB)🟡 MediumSimilar consolidation but simpler structure
Bidding/Placement🟡 MediumEnum renames, structure move
Audience Adjustments🟡 MediumFlattened structure, fields removed
Query/List🟢 LowAdd adProductFilter, minor response changes
Response Parsing🟢 LowRemove wrapper, update error handling

SP-Specific Effort Summary

If you use...EffortKey changes
Campaign CRUD only🟡 MediumBudget, dates, bidding restructuring
+ Ad Groups🟢 Low addedWrap defaultBid in object
+ Product Ads🟡 Medium addedNew creative wrapper for ASIN
+ Keywords🔴 High addedMove to /targets endpoint, new structure
+ Targets (product/category)🔴 High addedExpression format → typed objects
+ Negatives (all types)🔴 High addedConsolidate 4 endpoints into 1 with flags
+ Budget Rules/RecommendationsNo effortKeep using v3 (not migrable)

SB-Specific Effort Summary

If you use...EffortKey changes
Campaign CRUD only🟡 MediumBudget, dates, goal, bidding restructuring
+ Ad Groups🟢 Low addedAdd adProduct
+ Ads (collections)🟡 Medium addedNew componentCreative wrapper
+ Ads (video/spotlight)🟡 Medium addedNew creative settings structure
+ Budget Rules/InsightsNo effortKeep using v4 (not migrable)

Step 3: Understand What Changes

3.1 Transport-Level Changes (applies to ALL endpoints)

ChangeBeforeAfterImpact
Client ID headerAmazon-Advertising-API-ClientIdAmazon-Ads-ClientIdGlobal find-replace
Content-TypeVersioned per resourceapplication/jsonGlobal find-replace
HTTP methodMixed (POST/PUT/GET/DELETE)All POSTUpdate HTTP client calls
Scope headerRequiredOptionalCan keep sending it
Account ID headerN/AAmazon-Ads-AccountId (optional)Optional addition

3.2 Request Body Changes (applies to ALL create/query)

ChangeBeforeAfter
Ad productNot neededadProduct: "SPONSORED_PRODUCTS" or "SPONSORED_BRANDS" required
MarketplaceNot neededmarketplaceScope: "SINGLE_MARKETPLACE" required for campaigns
Date formatYYYY-MM-DDISO 8601 YYYY-MM-DDTHH:mm:ssZ
Date field namesstartDate/endDatestartDateTime/endDateTime
Query filterOptionaladProductFilter required in all queries

3.3 Response Changes

ChangeBeforeAfter
Wrapper{ "campaigns": { "success": [...], "error": [...] } }{ "success": [...], "error": [...] }
Status fieldservingStatus (single string, always present)status: { deliveryStatus, deliveryReasons[] } (optional, array of reasons)
Error formatException-based (InvalidArgumentException)Enum-based (ErrorCode: "BAD_REQUEST")

Step 4: Key Enum Mappings (Quick Reference)

Bidding Strategy

SP v3SB v4Unified API
LEGACY_FOR_SALES—SALES_DOWN_ONLY
AUTO_FOR_SALESbidOptimization: trueSALES_UP_AND_DOWN
MANUALbidOptimization: falseMANUAL
RULE_BASED—RULE_BASED

Placement

Unified APISP v3SB v4
TOP_OF_SEARCHPLACEMENT_TOPTOP_OF_SEARCH
PRODUCT_PAGEPLACEMENT_PRODUCT_PAGEDETAIL_PAGE
REST_OF_SEARCHREST_OF_SEARCHREST_OF_SEARCH
HOME_PAGEN/AHOME

SP Auto Target Match Types

Unified APISP v3
SEARCH_LOOSE_MATCHQUERY_BROAD_REL_MATCHES
SEARCH_CLOSE_MATCHQUERY_HIGH_REL_MATCHES
PRODUCT_SUBSTITUTESASIN_SUBSTITUTE_RELATED
PRODUCT_COMPLEMENTSASIN_ACCESSORY_RELATED

SP Product Match Types

Unified APISP v3Meaning
PRODUCT_EXACTASIN_SAME_ASASIN exact
PRODUCT_SIMILARASIN_EXPANDED_FROMASIN expanded

SB Landing Page Types

Unified APISB v4
ASIN_LISTPRODUCT_LIST
STORESTORE

Step 5: Migration Plan Template

Recommend this phased approach to developers:

Phase 1: Transport Layer (Day 1)

  • Update headers
  • Change Content-Type to application/json
  • Change all methods to POST
  • Update base paths

Phase 2: Read Operations (Week 1)

  • Migrate query/list endpoints first (low risk, read-only)
  • Add adProductFilter to all queries
  • Update response parsing
  • Validate data matches v3/v4 responses

Phase 3: Campaign/Ad Group Write (Week 2)

  • Migrate campaign create/update
  • Migrate ad group create/update
  • Test with real campaigns in sandbox/test account

Phase 4: Ad & Targeting Write (Week 3-4)

  • Migrate ad creation (new creative structure)
  • Migrate targeting (biggest change for SP)
  • Consolidate negative targeting endpoints

Phase 5: Cleanup

  • Remove old v3/v4 code paths
  • Keep v3/v4 only for non-migrable features (budget rules, recommendations, etc.)
  • Update error handling for new error codes

Step 6: Common Pitfalls

#PitfallHow to Avoid
1Forgetting adProduct fieldAdd to every create/query request body
2Wrong date formatUse ISO 8601 with timezone, not YYYY-MM-DD
3Old Content-TypeGlobal replace to application/json
4Old header nameAmazon-Advertising-API-ClientId → Amazon-Ads-ClientId
5Flat budget numberMust use nested budgets[] array
6Missing adType on adsAlways include (SP: PRODUCT_AD, SB: COMPONENT)
7Old placement enumsCheck mapping table above
8Old bidding strategy enumsLEGACY_FOR_SALES → SALES_DOWN_ONLY etc.
9Separate negative endpointsUse same /targets endpoint with negative: true
10Expecting servingStatus always presentstatus is optional in Unified API

Step 7: Open Questions (Things to Verify)

These items cannot be determined from API schemas alone. Recommend opening a support case:

SP

  • How to clear campaign endDateTime to "no end date" (null may not work as expected)
  • Whether defaultBid has a server-side default value when not provided
  • Exact behavior of PRODUCT_SIMILAR match type (is it identical to v3's ASIN_EXPANDED_FROM?)

SB

  • Exact goal → goalSettings.kpi mapping (PAGE_VISIT→CLICKS, BRAND_IMPRESSION_SHARE→TOP_OF_SEARCH_IMPRESSION_SHARE)
  • Whether audienceId values from v4 are directly portable
  • How "default audience" is expressed without audienceSegmentType

Both

  • costType not returned in SP campaign response — is this by design?
  • status field not present on all objects — when is it populated?
  • Timeline for v3/v4 sunset (when will legacy APIs stop working?)

Domande frequenti

Cosa fa la skill IA Unified Api Migration Guide?

Use when a developer asks about migrating from legacy Amazon Ads APIs (SP v3 or SB v4) to the Unified API (/adsApi/v1/), assessing migration scope, identifying effort levels, determining what can and cannot be migrated, and planning migration steps.

Perché usare Unified Api Migration Guide su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Unified Api Migration Guide è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Unified Api Migration Guide in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/unified-api-migration-guide. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Unified Api Migration Guide?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Unified Api Migration Guide?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Unified Api Migration Guide: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Unified Api Migration Guide è gratuita?

Sì. È pubblicata su GitHub da wjwwwww con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇