Unified Sp Migration logo

Unified Sp Migration

Community
wjwwwww
unified-sp-migration

Use when migrating Sponsored Products campaigns from SP v3 API (/sp/) to the Unified API (/adsApi/v1/), including endpoint mapping, request body restructuring, header changes, field mapping differences, bidding/targeting migration, and troubleshooting migration errors.

Overview

Publisherwjwwwww
Repositoryamazon-ads-api-skills
Skill nameunified-sp-migration
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 Sp Migration 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-sp-migration
  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-sp-migration .claude/skills/unified-sp-migration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Unified Sp Migration 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 Sp Migration 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 Sp Migration 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.

Sponsored Products: SP v3 API to Unified API Migration Guide

1. Migration Overview

This guide helps API developers migrate from the Sponsored Products v3 API (paths like /sp/...) to the Unified API (paths like /adsApi/v1/...).

Key Architectural Changes

AspectSP v3 APIUnified API
ScopeSP-only APIShared across all ad products (SP, SB, etc.)
Endpoint pattern/sp/{resource}/adsApi/v1/{action}/{resource}
HTTP methodsMixed (POST, PUT, GET, DELETE)All POST
Content-TypeVersioned per resource (e.g. application/vnd.spAdGroup.v3+json)Standard application/json
Targeting modelSeparate endpoints for keywords, targets, negative keywords, negative targetsUnified /targets endpoint with targetType and negative flag
Product AdsDedicated /sp/productAds endpointUnified /ads endpoint
Ad product identifierImplicit (from path)Explicit adProduct: "SPONSORED_PRODUCTS" required

Confidence Legend

  • ✅ Confirmed from schema — directly verifiable from API spec field names, types, and enum values
  • ⚠️ Reasonable inference — based on semantic analysis and naming patterns; not from an official migration guide
  • ❓ Unconfirmed — cannot be determined from schema alone; open a support case with Amazon Ads API team

2. Header Changes

HeaderSP v3 APIUnified APIConfidence
Client IDAmazon-Advertising-API-ClientIdAmazon-Ads-ClientId✅ Confirmed
Profile/ScopeAmazon-Advertising-API-Scope (required)Amazon-Advertising-API-Scope (optional)✅ Confirmed
Account IDNot usedAmazon-Ads-AccountId (optional)✅ Confirmed
Content-TypeVersioned: application/vnd.spAdGroup.v3+json, application/vnd.spCampaign.v3+json, etc.Standard: application/json✅ Confirmed
PreferPrefer header (optional)Not used✅ Confirmed

3. Endpoint Path Mapping

Core CRUD Operations

OperationSP v3 APIUnified API
Create CampaignPOST /sp/campaignsPOST /adsApi/v1/create/campaigns
Update CampaignPUT /sp/campaignsPOST /adsApi/v1/update/campaigns
List CampaignsPOST /sp/campaigns/listPOST /adsApi/v1/query/campaigns
Delete CampaignsPOST /sp/campaigns/deletePOST /adsApi/v1/delete/campaigns
Create Ad GroupPOST /sp/adGroupsPOST /adsApi/v1/create/adGroups
Update Ad GroupPUT /sp/adGroupsPOST /adsApi/v1/update/adGroups
List Ad GroupsPOST /sp/adGroups/listPOST /adsApi/v1/query/adGroups
Delete Ad GroupsPOST /sp/adGroups/deletePOST /adsApi/v1/delete/adGroups
Create Product AdPOST /sp/productAdsPOST /adsApi/v1/create/ads
Update Product AdPUT /sp/productAdsPOST /adsApi/v1/update/ads
List Product AdsPOST /sp/productAds/listPOST /adsApi/v1/query/ads
Delete Product AdsPOST /sp/productAds/deletePOST /adsApi/v1/delete/ads

Targeting (Consolidated in Unified API)

OperationSP v3 APIUnified API
Create KeywordsPOST /sp/keywordsPOST /adsApi/v1/create/targets (targetType: KEYWORD)
Update KeywordsPUT /sp/keywordsPOST /adsApi/v1/update/targets
List KeywordsPOST /sp/keywords/listPOST /adsApi/v1/query/targets
Delete KeywordsPOST /sp/keywords/deletePOST /adsApi/v1/delete/targets
Create Negative KeywordsPOST /sp/negativeKeywordsPOST /adsApi/v1/create/targets (negative: true)
Update Negative KeywordsPUT /sp/negativeKeywordsPOST /adsApi/v1/update/targets
List Negative KeywordsPOST /sp/negativeKeywords/listPOST /adsApi/v1/query/targets (negativeFilter)
Delete Negative KeywordsPOST /sp/negativeKeywords/deletePOST /adsApi/v1/delete/targets
Create TargetsPOST /sp/targetsPOST /adsApi/v1/create/targets (targetType: PRODUCT/PRODUCT_CATEGORY)
Update TargetsPUT /sp/targetsPOST /adsApi/v1/update/targets
List TargetsPOST /sp/targets/listPOST /adsApi/v1/query/targets
Delete TargetsPOST /sp/targets/deletePOST /adsApi/v1/delete/targets
Create Negative TargetsPOST /sp/negativeTargetsPOST /adsApi/v1/create/targets (negative: true)
Create Campaign Neg KeywordsPOST /sp/campaignNegativeKeywordsPOST /adsApi/v1/create/targets (negative: true, campaignId)
Create Campaign Neg TargetsPOST /sp/campaignNegativeTargetsPOST /adsApi/v1/create/targets (negative: true, campaignId)

HTTP Method Changes

OperationSP v3Unified API
Update CampaignPUTPOST
Update Ad GroupPUTPOST
Update Product AdPUTPOST
Update KeywordsPUTPOST
Update TargetsPUTPOST

The Unified API uses POST for all operations.


4. Campaign-Level Field Mapping

4.1 Campaign Creation — Side by Side

SP v3 API (POST /sp/campaigns):

json
{
  "campaigns": [{
    "name": "My SP Campaign",
    "state": "ENABLED",
    "budget": { "budget": 50.00, "budgetType": "DAILY" },
    "startDate": "2026-02-01",
    "dynamicBidding": {
      "strategy": "LEGACY_FOR_SALES",
      "placementBidding": [
        { "placement": "PLACEMENT_TOP", "percentage": 50 },
        { "placement": "PLACEMENT_PRODUCT_PAGE", "percentage": 25 }
      ]
    },
    "portfolioId": "<portfolio-id>"
  }]
}

Unified API (POST /adsApi/v1/create/campaigns):

json
{
  "campaigns": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "name": "My SP Campaign",
    "state": "ENABLED",
    "marketplaceScope": "SINGLE_MARKETPLACE",
    "startDateTime": "2026-02-01T00:00:00Z",
    "budgets": [{
      "budgetType": "MONETARY",
      "budgetValue": {
        "monetaryBudgetValue": {
          "monetaryBudget": { "value": 50.00 }
        }
      },
      "recurrenceTimePeriod": "DAILY"
    }],
    "optimizations": {
      "bidSettings": {
        "bidStrategy": "SALES_DOWN_ONLY",
        "bidAdjustments": {
          "placementBidAdjustments": [
            { "placement": "TOP_OF_SEARCH", "percentage": 50 },
            { "placement": "PRODUCT_PAGE", "percentage": 25 }
          ]
        }
      }
    },
    "portfolioId": "<portfolio-id>"
  }]
}

4.2 Field-by-Field Mapping

FieldSP v3Unified APIConfidence
Ad productNot needed (implicit)adProduct: "SPONSORED_PRODUCTS" (required)✅ Confirmed
Budgetbudget: { budget: 50, budgetType: "DAILY" }Nested budgets[].budgetValue.monetaryBudgetValue.monetaryBudget.value✅ Confirmed
Budget typebudget.budgetType: "DAILY"budgets[].recurrenceTimePeriod: "DAILY"✅ Confirmed
Date formatYYYY-MM-DDISO 8601 YYYY-MM-DDTHH:mm:ssZ✅ Confirmed
Date fieldsstartDate / endDatestartDateTime / endDateTime✅ Confirmed
MarketplaceNot in bodymarketplaceScope: "SINGLE_MARKETPLACE" (required)✅ Confirmed
Bidding structuredynamicBidding.strategy + placementBiddingoptimizations.bidSettings.bidStrategy + bidAdjustments.placementBidAdjustments✅ Confirmed
State valuesENABLED, PAUSED, PROPOSEDENABLED, PAUSED (create); + ARCHIVED (read)✅ Confirmed

4.3 Bidding Strategy Mapping

From the official enum mapping document:

SP v3 dynamicBidding.strategyUnified API bidStrategyConfidence
LEGACY_FOR_SALES (down only)SALES_DOWN_ONLY✅ Confirmed from enum doc
AUTO_FOR_SALES (up and down)SALES_UP_AND_DOWN✅ Confirmed from enum doc
MANUAL (fixed bid)MANUAL✅ Confirmed (identical)
RULE_BASEDRULE_BASED✅ Confirmed (identical)

Note: SB also maps MAXIMIZE_IMMEDIATE_SALES (v4 bidOptimization) → SALES_UP_AND_DOWN, and has a NEW_TO_BRAND → MAXIMIZE_NEW_TO_BRAND_CUSTOMERS mapping. SP does not use these.

4.4 Placement Enum Mapping

From the official enum mapping document:

Unified API placementSP v3 placementSB v4 placementConfidence
TOP_OF_SEARCHPLACEMENT_TOPTOP_OF_SEARCH✅ Confirmed from enum doc
PRODUCT_PAGEPLACEMENT_PRODUCT_PAGEDETAIL_PAGE✅ Confirmed from enum doc
REST_OF_SEARCHREST_OF_SEARCHREST_OF_SEARCH✅ Confirmed from enum doc
HOME_PAGEN/A (SP doesn't use)HOME✅ Confirmed from enum doc

5. Ad Group Field Mapping

SP v3 API (POST /sp/adGroups):

json
{
  "adGroups": [{
    "campaignId": "<campaign-id>",
    "name": "My Ad Group",
    "state": "ENABLED",
    "defaultBid": 1.50
  }]
}

Unified API (POST /adsApi/v1/create/adGroups):

json
{
  "adGroups": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "campaignId": "<campaign-id>",
    "name": "My Ad Group",
    "state": "ENABLED",
    "bid": { "bid": 1.50 }
  }]
}
FieldSP v3Unified APIConfidence
Ad productNot neededadProduct: "SPONSORED_PRODUCTS" (required)✅ Confirmed
Default biddefaultBid: 1.50 (flat number)bid: { bid: 1.50 } (object)✅ Confirmed

6. Product Ad Field Mapping

SP v3 API (POST /sp/productAds):

json
{
  "productAds": [{
    "campaignId": "<campaign-id>",
    "adGroupId": "<ad-group-id>",
    "state": "ENABLED",
    "asin": "B0XXXXXXX1",
    "sku": "SKU-123"
  }]
}

Unified API (POST /adsApi/v1/create/ads):

json
{
  "ads": [{
    "adGroupId": "<ad-group-id>",
    "adProduct": "SPONSORED_PRODUCTS",
    "adType": "PRODUCT_AD",
    "state": "ENABLED",
    "creative": {
      "productCreative": {
        "productCreativeSettings": {
          "advertisedProduct": {
            "productId": "B0XXXXXXX1",
            "productIdType": "ASIN"
          }
        }
      }
    }
  }]
}
FieldSP v3Unified APIConfidence
WrapperproductAds arrayads array✅ Confirmed
Ad productNot neededadProduct: "SPONSORED_PRODUCTS" (required)✅ Confirmed
Ad typeNot neededadType: "PRODUCT_AD" (required)✅ Confirmed
Campaign IDcampaignId in bodyNot in ad body (inherited from ad group)✅ Confirmed
ASINasin: "B0XX" (flat string)creative.productCreative.productCreativeSettings.advertisedProduct.productId + productIdType: "ASIN"✅ Confirmed
SKUsku: "SKU-123" (flat string)❓ Check if SKU maps to productId with different productIdType❓ Unconfirmed

❓ The SKU field mapping is not clear from the schema. The Unified API uses productIdType: "ASIN" — it's unclear whether SKU-based ads use a different productIdType or a different mechanism. Open a support case if you use SKU-based product ads.


7. Targeting Migration

This is the most significant structural change. SP v3 has separate endpoints for keywords, targets, negative keywords, negative targets, and campaign-level negatives. The Unified API consolidates ALL of these into a single /adsApi/v1/create/targets endpoint.

7.1 Keyword Target

SP v3 API (POST /sp/keywords):

json
{
  "keywords": [{
    "campaignId": "<campaign-id>",
    "adGroupId": "<ad-group-id>",
    "state": "ENABLED",
    "keywordText": "women running shoes",
    "matchType": "BROAD",
    "bid": 1.50
  }]
}

Unified API (POST /adsApi/v1/create/targets):

json
{
  "targets": [{
    "adGroupId": "<ad-group-id>",
    "adProduct": "SPONSORED_PRODUCTS",
    "state": "ENABLED",
    "negative": false,
    "targetType": "KEYWORD",
    "bid": { "bid": 1.50 },
    "targetDetails": {
      "keywordTarget": {
        "keyword": "women running shoes",
        "matchType": "BROAD"
      }
    }
  }]
}
FieldSP v3Unified API
Keyword textkeywordTexttargetDetails.keywordTarget.keyword
Match typematchTypetargetDetails.keywordTarget.matchType
Bidbid: 1.50 (flat number)bid: { bid: 1.50 } (object)
Campaign IDcampaignId (required)Not needed (inherited from ad group)
Negative flagSeparate endpoint /sp/negativeKeywordsnegative: true on same endpoint

7.2 Negative Keyword

SP v3 API (POST /sp/negativeKeywords):

json
{
  "negativeKeywords": [{
    "campaignId": "<campaign-id>",
    "adGroupId": "<ad-group-id>",
    "state": "ENABLED",
    "keywordText": "free",
    "matchType": "EXACT"
  }]
}

Unified API (POST /adsApi/v1/create/targets):

json
{
  "targets": [{
    "adGroupId": "<ad-group-id>",
    "adProduct": "SPONSORED_PRODUCTS",
    "state": "ENABLED",
    "negative": true,
    "targetType": "KEYWORD",
    "targetDetails": {
      "keywordTarget": {
        "keyword": "free",
        "matchType": "EXACT"
      }
    }
  }]
}

7.3 Product/Category Targeting

SP v3 API (POST /sp/targets) uses expression-based targeting. Unified API uses typed target objects:

SP v3 Target TypeUnified API targetTypeUnified API targetDetails
ASIN targetingPRODUCTproductTarget: { product: { productId }, productIdType: "ASIN", matchType: "PRODUCT_EXACT" }
Category targetingPRODUCT_CATEGORYproductCategoryTarget: { productCategoryRefinement: {...} }
Auto targetingTHEMEthemeTarget: { matchType: "..." }

7.4 Product Match Type Mapping (ASIN Exact vs Expanded)

From the official enum mapping document — this is how to distinguish ASIN exact vs expanded:

Unified API matchTypeSP v3 expressionDescriptionConfidence
PRODUCT_EXACTASIN_SAME_ASASIN exact targeting (only the specified ASIN)✅ Confirmed from enum doc
PRODUCT_SIMILARASIN_EXPANDED_FROMASIN expanded targeting (similar products)✅ Confirmed from enum doc

This is the answer to "how to distinguish ASIN exact vs expanded":

  • targetType: "PRODUCT" + productTarget.matchType: "PRODUCT_EXACT" = ASIN exact (精准)
  • targetType: "PRODUCT" + productTarget.matchType: "PRODUCT_SIMILAR" = ASIN expanded (扩展)
  • targetType: "PRODUCT_CATEGORY" = Category targeting (类目)

Note: The Unified API OpenAPI schema (UnifiedAPISP.json) only lists PRODUCT_EXACT in the SPProductMatchType enum. However, the official enum mapping document confirms PRODUCT_SIMILAR also exists for expanded ASIN targeting. The schema may be incomplete.

7.4 Campaign-Level Negative Targeting

In SP v3, campaign-level negatives use separate endpoints (/sp/campaignNegativeKeywords, /sp/campaignNegativeTargets).

In the Unified API, use the same /adsApi/v1/create/targets endpoint with:

  • negative: true
  • campaignId instead of adGroupId
  • Target level becomes campaign-level

7.5 Auto Targeting (Theme Targets)

SP v3 auto campaigns implicitly create auto targets. In the Unified API, these are explicit THEME type targets with the following match types:

Auto target match types (✅ Confirmed from enum doc):

Unified API matchTypeSP v3 equivalentDescription
SEARCH_LOOSE_MATCHQUERY_BROAD_REL_MATCHESLoosely related search terms
SEARCH_CLOSE_MATCHQUERY_HIGH_REL_MATCHESClosely related search terms
PRODUCT_SUBSTITUTESASIN_SUBSTITUTE_RELATEDSimilar product detail pages
PRODUCT_COMPLEMENTSASIN_ACCESSORY_RELATEDComplementary product detail pages

Theme target match types for manual SP campaigns (✅ Confirmed from enum doc):

Unified API matchTypeSP v3 equivalentDescription
KEYWORDS_RELATED_TO_YOUR_BRANDbrandKeywords related to your brand
KEYWORDS_RELATED_TO_GIFTSgiftKeywords related to gifts
KEYWORDS_RELATED_TO_YOUR_PRODUCT_CATEGORYcategoryKeywords related to your product category

7.6 Target Type Mapping

From the official enum mapping document, the Unified API targetType values include:

Unified API targetTypeUsage
AUTOAuto targeting (SP)
KEYWORDKeyword targeting
PRODUCTASIN targeting
PRODUCT_CATEGORYCategory targeting
PRODUCT_AUDIENCEProduct audience (SD)
PRODUCT_CATEGORY_AUDIENCECategory audience (SD)
AUDIENCEAudience targeting (SD)

7.7 Product ID Type

From the enum mapping document, productIdType supports:

  • ASIN — ASIN identifier
  • SKU — SKU identifier

This confirms that SKU-based product ads ARE supported in the Unified API via productIdType: "SKU".


8. Audience Bid Adjustment Migration

SP v3 API:

json
"dynamicBidding": {
  "shopperCohortBidding": [{
    "shopperCohortType": "AUDIENCE_SEGMENT",
    "percentage": 50,
    "audienceSegments": [{ "audienceId": "xxx", "audienceSegmentType": "SPONSORED_ADS_AMC" }]
  }]
}

Unified API:

json
"optimizations": {
  "bidSettings": {
    "bidAdjustments": {
      "audienceBidAdjustments": [{ "audienceId": "xxx", "percentage": 50 }]
    }
  }
}

What's confirmed (✅):

  • Unified API audienceBidAdjustments only has audienceId + percentage
  • No audienceSegmentType or shopperCohortType fields exist in the Unified API

Unconfirmed (❓):

  • Whether audienceId values are directly portable
  • How "default audience" is expressed — open a support case to verify

9. Response Format Differences

SP v3 success response:

json
{
  "campaigns": {
    "success": [{ "campaignId": "123", "index": 0 }],
    "error": [{ "index": 1, "errors": [...] }]
  }
}

Unified API success response:

json
{
  "success": [{ "index": 0, "campaign": {...} }],
  "error": [{ "index": 1, "errors": [...] }]
}

Top-level success/error without a resource-type wrapper.


10. Features NOT Available in Unified API

The following v3 features must still use SP v3 endpoints:

  • Budget rules — /sp/budgetRules
  • Budget recommendations — /sp/campaigns/budgetRecommendations
  • Budget usage — /sp/campaigns/budget/usage
  • Campaign recommendations — /sp/campaign/recommendations
  • Optimization rules — /sp/rules/optimization, /sp/rules/campaignOptimization
  • Keyword recommendations — /sp/targets/keywords/recommendations
  • Product recommendations — /sp/targets/products/recommendations
  • Category recommendations — /sp/targets/categories/recommendations
  • Targetable categories — /sp/targets/categories
  • Category refinements — /sp/targets/category/{id}/refinements
  • Bid recommendations — /sp/targets/bid/recommendations
  • Negative target brand recommendations — /sp/negativeTargets/brands/recommendations
  • Target promotion groups — /sp/targetPromotionGroups
  • Events — /sp/v1/events

11. Migration Checklist

Headers & Transport

  • Rename Amazon-Advertising-API-ClientId → Amazon-Ads-ClientId
  • Change Content-Type from versioned types to application/json
  • Change all HTTP methods to POST (no more PUT)
  • Update endpoint paths (/sp/... → /adsApi/v1/...)
  • Remove Prefer header (not used in Unified API)

Campaign Level

  • Add adProduct: "SPONSORED_PRODUCTS" to all create/query requests
  • Add marketplaceScope: "SINGLE_MARKETPLACE" to campaign creation
  • Restructure budget from { budget, budgetType } to nested budgets[] array
  • Convert date strings from YYYY-MM-DD to ISO 8601 datetime
  • Rename date fields (startDate → startDateTime)
  • Move bidding from dynamicBidding.strategy to optimizations.bidSettings.bidStrategy
  • Update bidding strategy enum (LEGACY_FOR_SALES → SALES_DOWN_ONLY, AUTO_FOR_SALES → SALES_UP_AND_DOWN)
  • Update placement enums (PLACEMENT_TOP → TOP_OF_SEARCH, PLACEMENT_PRODUCT_PAGE → PRODUCT_PAGE, PLACEMENT_REST_OF_SEARCH → REST_OF_SEARCH)
  • Restructure audience bid adjustments from shopperCohortBidding to audienceBidAdjustments

Ad Group Level

  • Add adProduct: "SPONSORED_PRODUCTS" to ad group requests
  • Restructure defaultBid (number) to bid: { bid: value } (object)

Ad Level

  • Replace /sp/productAds with /adsApi/v1/create/ads
  • Add adType: "PRODUCT_AD" to ad creation
  • Wrap ASIN in creative.productCreative.productCreativeSettings.advertisedProduct
  • Remove campaignId from ad body (inherited from ad group)

Targeting (Major Change)

  • Consolidate all keyword/target/negative endpoints to single /adsApi/v1/create/targets
  • Add targetType field (KEYWORD, PRODUCT, PRODUCT_CATEGORY, THEME, LOCATION)
  • Add negative: true/false flag (replaces separate negative endpoints)
  • Move keywordText to targetDetails.keywordTarget.keyword
  • Restructure bid from flat number to bid: { bid: value } object
  • Remove campaignId from ad-group-level targets (use adGroupId only)
  • For campaign-level negatives, use campaignId field instead of adGroupId

Query/Response

  • Add adProductFilter to all query requests
  • Update response parsing — remove resource-type wrapper
  • Update error handling for new ErrorCode enum

12. Common Migration Errors

Problem: 400 Bad Request

  1. Missing adProduct: "SPONSORED_PRODUCTS"
  2. Missing marketplaceScope: "SINGLE_MARKETPLACE"
  3. Wrong date format (use 2026-01-15T00:00:00Z, not 2026-01-15)
  4. Old header name Amazon-Advertising-API-ClientId instead of Amazon-Ads-ClientId
  5. Versioned Content-Type instead of application/json
  6. Budget as flat object instead of nested budgets[] array
  7. Missing adType: "PRODUCT_AD" in ad creation
  8. Missing negative field in target creation
  9. Missing targetType field in target creation

Problem: Placement bid adjustments rejected

  • Update enum values: PLACEMENT_TOP → TOP_OF_SEARCH, PLACEMENT_PRODUCT_PAGE → PRODUCT_PAGE

Problem: Keyword creation fails

  • Use /adsApi/v1/create/targets not /adsApi/v1/create/keywords (no such endpoint)
  • Set targetType: "KEYWORD" and negative: false
  • Move keywordText to targetDetails.keywordTarget.keyword

Problem: Bidding strategy rejected

  • LEGACY_FOR_SALES does not exist in Unified API — use SALES_DOWN_ONLY
  • AUTO_FOR_SALES does not exist — use SALES_UP_AND_DOWN

13. Frequently Asked Questions

Q: Do I need to migrate everything at once? A: No. Both APIs work simultaneously. Migrate incrementally.

Q: Will campaigns created in v3 be visible in Unified API? A: Yes. The Unified API can query resources regardless of which API created them.

Q: The biggest change seems to be targeting — why? A: SP v3 had 5+ separate endpoints for different target types. The Unified API consolidates them into one endpoint with targetType and negative fields. This is simpler long-term but requires restructuring your integration.

Q: What happened to campaignId in keyword/target creation? A: In the Unified API, ad-group-level targets only need adGroupId — the campaign association is inherited. Only campaign-level targets (campaign negatives) need campaignId.

Q: Is the PROPOSED state supported in Unified API? A: The Unified API create state only supports ENABLED and PAUSED. The PROPOSED state from v3 is not available for creation in the Unified API.

Q: What about autoManageCampaign from v3? A: The Unified API has autoCreationSettings.autoCreateTargets which may serve a similar purpose. However, exact equivalence is ❓ unconfirmed — open a support case if you rely on this feature.

Q: Is reporting affected? A: No. Reporting APIs are separate and unchanged.


14. Batch Size Limits

ResourceCreateQuery (maxResults)UpdateDelete
Campaigns101001010
Ad Groups101001010
Ads101001010
Targets1000500010001000

Frequently asked questions

What does the Unified Sp Migration AI skill do?

Use when migrating Sponsored Products campaigns from SP v3 API (/sp/) to the Unified API (/adsApi/v1/), including endpoint mapping, request body restructuring, header changes, field mapping differences, bidding/targeting migration, and troubleshooting migration errors.

Why use Unified Sp Migration on TypingMind?

Because you install it once and use it with any model. Unified Sp Migration 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 Sp Migration in TypingMind?

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

Which AI models can use Unified Sp Migration?

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 Sp Migration?

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

Is the Unified Sp Migration 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 👇