Amazon Ads Spglobal 标志

Amazon Ads Spglobal

社区
wjwwwww
amazon-ads-spglobal

当开发者需要集成 Amazon Ads SP Global Campaigns 时使用:通过 Unified API(/adsApi/v1/)同时管理多个市场中的 Sponsored Products 广告系列。涵盖全球广告系列创建、各市场单独设置、多市场预算和出价、产品映射,以及与单市场 SP 广告系列的差异。

Add to TypingMind

概览

发布者wjwwwww
代码仓库amazon-ads-api-skills
技能名称amazon-ads-spglobal
星标数
30
复刻数
2
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 wjwwwww 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Amazon Ads Spglobal AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/amazon-ads-spglobal
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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/amazon-ads-spglobal .claude/skills/amazon-ads-spglobal
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Amazon Ads Spglobal,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Amazon Ads Spglobal。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Amazon Ads Spglobal 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Amazon Ads SP Global Campaigns — Integration Guide

1. What is SP Global Campaigns?

SP Global (Sponsored Products Global) is a product designed to simplify managing Sponsored Products advertising across multiple Amazon marketplaces from a single campaign. Instead of creating separate campaigns per country, advertisers create one global campaign that spans multiple marketplaces (US, UK, DE, FR, JP, etc.) with per-marketplace overrides for budget, bid, state, and product ASINs.

Target Users

  • Sellers/vendors advertising in 2+ countries looking for efficiency
  • Sellers/vendors expanding into new countries
  • API integrators building multi-marketplace campaign management tools

Key Value Propositions

  • One campaign → multiple marketplaces: Create once, manage everywhere
  • Per-marketplace overrides: Customize budget, bid, state, name per country without separate campaigns
  • Auto-scale: Optionally auto-expand to new marketplaces as they become available
  • Unified management: Single API call to query/update across all marketplaces

2. Relationship to SP Unified API

SPG uses the same 19 endpoints as SP Unified API:

/adsApi/v1/{create|query|update|delete}/{campaigns|adGroups|ads|targets|adExtensions}

The difference is entirely in the schema structure — SPG schemas are prefixed SPGlobal* and add marketplace-aware fields to every resource.

Architectural Comparison

AspectSP (Single Marketplace)SPG (Global)
Design1 campaign = 1 marketplace1 campaign = N marketplaces
Schema prefixSP*SPGlobal*
marketplaceScopeOptionalRequired (always GLOBAL)
marketplaces[]OptionalRequired on all creates
BudgetSingle valuePer-marketplace marketplaceSettings[]
BidSingle defaultBidPer-marketplace marketplaceSettings[]
Product ASINSingle productIdPer-marketplace marketplaceSettings[{marketplace, productId}]
State overrideN/AmarketplaceConfigurations[].overrides.state
AccountId headerOptionalRequired
Scope headerSupportedNot used

3. Headers

bash
# Required
-H "Amazon-Ads-AccountId: ${ACCOUNT_ID}"     # REQUIRED (not optional like SP)
-H "Amazon-Ads-ClientId: ${CLIENT_ID}"
-H "Authorization: Bearer ${ACCESS_TOKEN}"
-H "Content-Type: application/json"

# NOT used in SPG (unlike SP):
# -H "Amazon-Advertising-API-Scope: ${PROFILE_ID}"

4. SPG-Specific Concepts

4.1 marketplaceScope (Required on all creates)

Always "GLOBAL". Marks the resource as a global (multi-marketplace) resource.

4.2 marketplaces[] (Required on all creates)

Array of country codes where this resource applies. Must be a subset of parent resource's marketplaces.

json
"marketplaces": ["US", "GB", "DE", "FR", "IT", "ES"]

Supported marketplaces: AE, AU, BE, BR, CA, DE, EG, ES, FR, GB, IN, IT, JP, MX, NL, PL, SA, SE, SG, TR, US

4.3 marketplaceConfigurations[] (Per-marketplace overrides)

Every resource (campaign, adGroup, ad, target) supports per-marketplace overrides. When not specified, the global value applies.

json
"marketplaceConfigurations": [
  {
    "marketplace": "DE",
    "overrides": {
      "state": "PAUSED",
      "name": "SP Campaign - Germany (Paused)"
    }
  }
]

Campaign overridable fields: state, name, startDateTime, endDateTime, optimizations, tags AdGroup overridable fields: state, name, tags Ad overridable fields: state, tags Target overridable fields: state, tags, targetDetails (keyword/theme only)

4.4 autoScaleGlobalCampaign

Controls whether the campaign auto-expands to new marketplaces.

ValueBehavior
AUTOAuto-add new marketplaces as they become available
MANUALOnly expand when explicitly updated

4.5 targetLevel

SPG targets can be attached at two levels:

ValueMeaning
AD_GROUPTarget belongs to an ad group (standard)
CAMPAIGNTarget belongs to the campaign directly (negative targets)

4.6 siteRestrictions

Restrict ad delivery to specific Amazon properties:

ValueDescription
AMAZON_BUSINESSOnly show on Amazon Business
AMAZON_HAULOnly show on Amazon Haul

4.7 BidStrategy (includes NEW_TO_BRAND)

StrategyDescription
MANUALUses exact bid, no dynamic adjustments
SALES_DOWN_ONLYDecreases bids when less likely to convert
SALES_UP_AND_DOWNIncreases/decreases bids by up to 100%
RULE_BASEDApplies advertiser-defined bidding rules
NEW_TO_BRANDSPG-only — Optimizes for new-to-brand customer acquisitions

4.8 nativeLanguageKeyword

Keywords support native language with locale:

json
{
  "keyword": "手机壳",
  "matchType": "BROAD",
  "nativeLanguageKeyword": "手机壳",
  "nativeLanguageLocale": "zh_CN"
}

5. Campaign Create

Required Fields

FieldTypeDescription
adProduct"SPONSORED_PRODUCTS"Always SPONSORED_PRODUCTS
marketplaceScope"GLOBAL"Always GLOBAL
namestringCampaign name
stateENABLED or PAUSEDInitial state
startDateTimedatetimeStart time
autoCreationSettingsobject{autoCreateTargets: boolean}
budgetsarrayPer-marketplace budget settings

Budget Structure (Per-Marketplace)

json
"budgets": [{
  "budgetType": "MONETARY",
  "budgetValue": {
    "monetaryBudgetValue": {
      "marketplaceSettings": [
        {"marketplace": "US", "monetaryBudget": {"value": 50.00}},
        {"marketplace": "GB", "monetaryBudget": {"value": 40.00}},
        {"marketplace": "DE", "monetaryBudget": {"value": 45.00}}
      ]
    }
  },
  "recurrenceTimePeriod": "DAILY"
}]

Complete Campaign Create Example

json
POST /adsApi/v1/create/campaigns

{
  "campaigns": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "marketplaceScope": "GLOBAL",
    "marketplaces": ["US", "GB", "DE"],
    "name": "SP Global - Electronics Q4",
    "state": "ENABLED",
    "startDateTime": "2026-10-01T00:00:00Z",
    "autoCreationSettings": {"autoCreateTargets": true},
    "budgets": [{
      "budgetType": "MONETARY",
      "budgetValue": {
        "monetaryBudgetValue": {
          "marketplaceSettings": [
            {"marketplace": "US", "monetaryBudget": {"value": 100.00}},
            {"marketplace": "GB", "monetaryBudget": {"value": 80.00}},
            {"marketplace": "DE", "monetaryBudget": {"value": 90.00}}
          ]
        }
      },
      "recurrenceTimePeriod": "DAILY"
    }],
    "optimizations": {
      "bidSettings": {
        "bidStrategy": "SALES_UP_AND_DOWN",
        "bidAdjustments": {
          "placementBidAdjustments": [
            {"placement": "TOP_OF_SEARCH", "percentage": 50}
          ]
        }
      }
    },
    "marketplaceConfigurations": [
      {
        "marketplace": "DE",
        "overrides": {
          "name": "SP Global - Elektronik Q4",
          "startDateTime": "2026-10-02T00:00:00Z"
        }
      }
    ]
  }]
}

6. AdGroup Create

Required Fields

FieldTypeDescription
adProduct"SPONSORED_PRODUCTS"Always
marketplaceScope"GLOBAL"Always
marketplacesarraySubset of campaign's marketplaces
campaignIdstringParent campaign
namestringAd group name
stateENABLED/PAUSEDInitial state
bidobjectPer-marketplace bid settings

Bid Structure (Per-Marketplace)

json
"bid": {
  "marketplaceSettings": [
    {"marketplace": "US", "currencyCode": "USD", "defaultBid": 1.50},
    {"marketplace": "GB", "currencyCode": "GBP", "defaultBid": 1.20},
    {"marketplace": "DE", "currencyCode": "EUR", "defaultBid": 1.30}
  ]
}

Complete AdGroup Create Example

json
POST /adsApi/v1/create/adGroups

{
  "adGroups": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "marketplaceScope": "GLOBAL",
    "marketplaces": ["US", "GB", "DE"],
    "campaignId": "CAMPAIGN_ID",
    "name": "Phone Cases - All Markets",
    "state": "ENABLED",
    "bid": {
      "marketplaceSettings": [
        {"marketplace": "US", "currencyCode": "USD", "defaultBid": 1.50},
        {"marketplace": "GB", "currencyCode": "GBP", "defaultBid": 1.20},
        {"marketplace": "DE", "currencyCode": "EUR", "defaultBid": 1.30}
      ]
    }
  }]
}

7. Ad Create (Product Ad with Per-Marketplace ASIN)

Required Fields

FieldTypeDescription
adProduct"SPONSORED_PRODUCTS"Always
adType"PRODUCT_AD"Always PRODUCT_AD
marketplaceScope"GLOBAL"Always
marketplacesarraySubset of adGroup's marketplaces
adGroupIdstringParent ad group
stateENABLED/PAUSEDInitial state
creativeobjectPer-marketplace product settings

Per-Marketplace Product Creative

json
POST /adsApi/v1/create/ads

{
  "ads": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "adType": "PRODUCT_AD",
    "marketplaceScope": "GLOBAL",
    "marketplaces": ["US", "GB", "DE"],
    "adGroupId": "AD_GROUP_ID",
    "state": "ENABLED",
    "creative": {
      "productCreative": {
        "productCreativeSettings": {
          "advertisedProduct": {
            "productIdType": "ASIN",
            "marketplaceSettings": [
              {"marketplace": "US", "productId": "B0ASIN_US"},
              {"marketplace": "GB", "productId": "B0ASIN_UK"},
              {"marketplace": "DE", "productId": "B0ASIN_DE"}
            ]
          }
        }
      }
    }
  }]
}

Note: globalStoreSetting.catalogSourceMarketplace can be used to specify where the product catalog is sourced from for a particular marketplace.

8. Target Create

Required Fields

FieldTypeDescription
adProduct"SPONSORED_PRODUCTS"Always
marketplaceScope"GLOBAL"Always
marketplacesarrayWhere this target applies
negativebooleanIs it a negative target?
stateENABLED/PAUSEDInitial state
targetTypeenumKEYWORD, PRODUCT, PRODUCT_CATEGORY, THEME
targetDetailsobjectTarget-type-specific details

Target Types

targetTypetargetDetails keyDescription
KEYWORDkeywordTargetCustomer search term targeting
PRODUCTproductTargetSpecific ASIN targeting
PRODUCT_CATEGORYproductCategoryTargetCategory targeting with refinements
THEMEthemeTargetAuto-targets (close match, loose match, complements, substitutes)

Keyword Target Example

json
POST /adsApi/v1/create/targets

{
  "targets": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "marketplaceScope": "GLOBAL",
    "marketplaces": ["US", "GB", "DE"],
    "adGroupId": "AD_GROUP_ID",
    "negative": false,
    "state": "ENABLED",
    "targetType": "KEYWORD",
    "targetDetails": {
      "keywordTarget": {
        "keyword": "phone case",
        "matchType": "BROAD"
      }
    },
    "bid": {
      "marketplaceSettings": [
        {"marketplace": "US", "currencyCode": "USD", "bid": 2.00},
        {"marketplace": "GB", "currencyCode": "GBP", "bid": 1.60},
        {"marketplace": "DE", "currencyCode": "EUR", "bid": 1.80}
      ]
    },
    "marketplaceConfigurations": [
      {
        "marketplace": "DE",
        "overrides": {
          "targetDetails": {
            "keywordTarget": {
              "keyword": "Handyhülle",
              "matchType": "BROAD"
            }
          }
        }
      }
    ]
  }]
}

Product Target Example (Per-Marketplace ASIN)

json
{
  "targets": [{
    "adProduct": "SPONSORED_PRODUCTS",
    "marketplaceScope": "GLOBAL",
    "marketplaces": ["US", "GB"],
    "adGroupId": "AD_GROUP_ID",
    "negative": false,
    "state": "ENABLED",
    "targetType": "PRODUCT",
    "targetDetails": {
      "productTarget": {
        "matchType": "PRODUCT_EXACT",
        "productIdType": "ASIN",
        "product": {
          "marketplaceSettings": [
            {"marketplace": "US", "productId": "B0COMPETITOR_US"},
            {"marketplace": "GB", "productId": "B0COMPETITOR_UK"}
          ]
        }
      }
    }
  }]
}

9. SP Features NOT Available in SPG

FeatureSPSPGNotes
Video / Spotlight creative✅❌SPG is product ads only
Audience bid adjustment✅❌
Creative bid adjustment (Spotlight)✅❌
Location targeting✅❌
Off-Amazon budget control strategy✅❌
Marketplace budget allocation (AUTO/MANUAL)✅❌SPG uses explicit per-marketplace budgets
Update creative content✅❌
Keyword filter on query✅❌
Marketplaces: IE, ZA✅❌Not yet supported in SPG
NEW_TO_BRAND bid strategy❌✅SPG-only

10. Common Integration Patterns

Pattern A: Expand existing campaign to a new marketplace

json
PUT /adsApi/v1/update/campaigns

{
  "campaigns": [{
    "campaignId": "CAMPAIGN_ID",
    "marketplaces": ["US", "GB", "DE", "FR"]
  }]
}

Then add budget for the new marketplace and update ad group/ad/target marketplaces accordingly.

Pattern B: Pause in one marketplace only

json
PUT /adsApi/v1/update/campaigns

{
  "campaigns": [{
    "campaignId": "CAMPAIGN_ID",
    "marketplaceConfigurations": [
      {"marketplace": "DE", "overrides": {"state": "PAUSED"}}
    ]
  }]
}

Pattern C: Different keyword per marketplace

Use marketplaceConfigurations on targets to override targetDetails:

json
{
  "targetDetails": {"keywordTarget": {"keyword": "phone case", "matchType": "BROAD"}},
  "marketplaceConfigurations": [
    {"marketplace": "DE", "overrides": {"targetDetails": {"keywordTarget": {"keyword": "Handyhülle", "matchType": "BROAD"}}}},
    {"marketplace": "FR", "overrides": {"targetDetails": {"keywordTarget": {"keyword": "coque téléphone", "matchType": "BROAD"}}}}
  ]
}

11. FAQ

Q: Can I mix SP and SPG campaigns under the same account? A: Yes. They are different campaign types managed independently.

Q: What happens if I don't specify marketplaceConfigurations? A: The global value applies uniformly to all marketplaces.

Q: Can I use different bid strategies per marketplace? A: No. bidStrategy is campaign-level (global). Only bid values can differ per marketplace.

Q: How does autoScaleGlobalCampaign: AUTO work? A: When new marketplaces become available for the account, the campaign auto-expands to include them.

Q: What's the currencyCode in bid/budget marketplace settings? A: Must match the marketplace's local currency (USD for US, GBP for GB, EUR for DE/FR/IT/ES, etc.).

Q: Can I create a global campaign with just one marketplace? A: Yes. You can start with one marketplace and expand later.

Q: What's targetLevel: CAMPAIGN used for? A: Campaign-level negative targets that apply across all ad groups in the campaign.

常见问题

Amazon Ads Spglobal AI 技能有什么作用?

当开发者需要集成 Amazon Ads SP Global Campaigns 时使用:通过 Unified API(/adsApi/v1/)同时管理多个市场中的 Sponsored Products 广告系列。涵盖全球广告系列创建、各市场单独设置、多市场预算和出价、产品映射,以及与单市场 SP 广告系列的差异。

为什么在 TypingMind 中使用 Amazon Ads Spglobal?

因为您只需安装一次,就能搭配任何模型使用。Amazon Ads Spglobal 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Amazon Ads Spglobal?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/amazon-ads-spglobal。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Amazon Ads Spglobal?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Amazon Ads Spglobal 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Amazon Ads Spglobal 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Amazon Ads Spglobal AI 技能免费吗?

是的。wjwwwww 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇