Unified Sp Migrationのロゴ

Unified Sp Migration

コミュニティ
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.

概要

公開者wjwwwww
リポジトリamazon-ads-api-skills
スキル名unified-sp-migration
スター
30
フォーク
2
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    wjwwwwwがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Unified Sp Migration」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/unified-sp-migration
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでUnified Sp Migrationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUnified Sp Migrationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Unified Sp Migrationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「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.

TypingMindでUnified Sp Migrationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Unified Sp Migrationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUnified Sp Migrationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/unified-sp-migrationを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Unified Sp Migrationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Unified Sp Migrationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUnified Sp Migrationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Unified Sp Migration」は無料ですか?

はい。wjwwwwwがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇