Amazon Ads Spglobal logo

Amazon Ads Spglobal

Community
wjwwwww
amazon-ads-spglobal

Use when a developer needs to integrate Amazon Ads SP Global Campaigns — managing Sponsored Products campaigns across multiple marketplaces simultaneously via the Unified API (/adsApi/v1/). Covers global campaign creation, per-marketplace overrides, multi-marketplace budgets/bids, product mapping, and differences from single-marketplace SP campaigns.

Overview

Publisherwjwwwww
Repositoryamazon-ads-api-skills
Skill nameamazon-ads-spglobal
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 Amazon Ads Spglobal 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/amazon-ads-spglobal
  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/amazon-ads-spglobal .claude/skills/amazon-ads-spglobal
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Amazon Ads Spglobal 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 Amazon Ads Spglobal 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 Amazon Ads Spglobal 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 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.

Frequently asked questions

What does the Amazon Ads Spglobal AI skill do?

Use when a developer needs to integrate Amazon Ads SP Global Campaigns — managing Sponsored Products campaigns across multiple marketplaces simultaneously via the Unified API (/adsApi/v1/). Covers global campaign creation, per-marketplace overrides, multi-marketplace budgets/bids, product mapping, and differences from single-marketplace SP campaigns.

Why use Amazon Ads Spglobal on TypingMind?

Because you install it once and use it with any model. Amazon Ads Spglobal 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 Amazon Ads Spglobal in TypingMind?

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

Which AI models can use Amazon Ads Spglobal?

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 Amazon Ads Spglobal?

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

Is the Amazon Ads Spglobal 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 👇