Unified Api Migration Guide logo

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.

Overview

Publisherwjwwwww
Repositoryamazon-ads-api-skills
Skill nameunified-api-migration-guide
Stars
30
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by wjwwwww on GitHub. Read the source before you install it.

Installation

Install the Unified Api Migration Guide AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/unified-api-migration-guide
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Unified Api Migration Guide in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Unified Api Migration Guide on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Unified Api Migration Guide is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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?)

Frequently asked questions

What does the Unified Api Migration Guide AI skill do?

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.

Why use Unified Api Migration Guide on TypingMind?

Because you install it once and use it with any model. Unified Api Migration Guide is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Unified Api Migration Guide in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/unified-api-migration-guide. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Unified Api Migration Guide?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Unified Api Migration Guide?

As many as you like. As long as a model supports skills, you can use Unified Api Migration Guide with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Unified Api Migration Guide AI skill free?

Yes. It is published on GitHub by wjwwwww under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇