Amazon · Capability

Amazon Advertising API — Campaigns

Amazon Advertising API — Campaigns. 5 operations. Lead operation: Amazon List Sponsored Products Campaigns. Self-contained Naftiko capability covering one Amazon business surface.

Run with Naftiko AmazonCampaigns

What You Can Do

GET
Listcampaigns — Amazon List Sponsored Products Campaigns
/v1/v2/sp/campaigns
POST
Createcampaigns — Amazon Create Sponsored Products Campaigns
/v1/v2/sp/campaigns
PUT
Updatecampaigns — Amazon Update Sponsored Products Campaigns
/v1/v2/sp/campaigns
GET
Getcampaign — Amazon Get Campaign Details
/v1/v2/sp/campaigns/{campaignid}
DELETE
Archivecampaign — Amazon Archive Campaign
/v1/v2/sp/campaigns/{campaignid}

MCP Tools

amazon-list-sponsored-products-campaigns

Amazon List Sponsored Products Campaigns

read-only idempotent
amazon-create-sponsored-products-campaigns

Amazon Create Sponsored Products Campaigns

amazon-update-sponsored-products-campaigns

Amazon Update Sponsored Products Campaigns

idempotent
amazon-get-campaign-details

Amazon Get Campaign Details

read-only idempotent
amazon-archive-campaign

Amazon Archive Campaign

idempotent

Capability Spec

advertising-campaigns.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Advertising API — Campaigns
  description: 'Amazon Advertising API — Campaigns. 5 operations. Lead operation: Amazon List Sponsored Products Campaigns.
    Self-contained Naftiko capability covering one Amazon business surface.'
  tags:
  - Amazon
  - Campaigns
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_API_KEY: AMAZON_API_KEY
capability:
  consumes:
  - type: http
    namespace: advertising-campaigns
    baseUri: https://advertising-api.amazon.com
    description: Amazon Advertising API — Campaigns business capability. Self-contained, no shared references.
    resources:
    - name: v2-sp-campaigns
      path: /v2/sp/campaigns
      operations:
      - name: listcampaigns
        method: GET
        description: Amazon List Sponsored Products Campaigns
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: startIndex
          in: query
          type: integer
        - name: count
          in: query
          type: integer
        - name: stateFilter
          in: query
          type: string
      - name: createcampaigns
        method: POST
        description: Amazon Create Sponsored Products Campaigns
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updatecampaigns
        method: PUT
        description: Amazon Update Sponsored Products Campaigns
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-sp-campaigns-campaignId
      path: /v2/sp/campaigns/{campaignId}
      operations:
      - name: getcampaign
        method: GET
        description: Amazon Get Campaign Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: campaignId
          in: path
          type: string
          required: true
      - name: archivecampaign
        method: DELETE
        description: Amazon Archive Campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: campaignId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.AMAZON_API_KEY}}'
  exposes:
  - type: rest
    namespace: advertising-campaigns-rest
    port: 8080
    description: REST adapter for Amazon Advertising API — Campaigns. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/sp/campaigns
      name: v2-sp-campaigns
      description: REST surface for v2-sp-campaigns.
      operations:
      - method: GET
        name: listcampaigns
        description: Amazon List Sponsored Products Campaigns
        call: advertising-campaigns.listcampaigns
        with:
          startIndex: rest.startIndex
          count: rest.count
          stateFilter: rest.stateFilter
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcampaigns
        description: Amazon Create Sponsored Products Campaigns
        call: advertising-campaigns.createcampaigns
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecampaigns
        description: Amazon Update Sponsored Products Campaigns
        call: advertising-campaigns.updatecampaigns
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/sp/campaigns/{campaignid}
      name: v2-sp-campaigns-campaignid
      description: REST surface for v2-sp-campaigns-campaignId.
      operations:
      - method: GET
        name: getcampaign
        description: Amazon Get Campaign Details
        call: advertising-campaigns.getcampaign
        with:
          campaignId: rest.campaignId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: archivecampaign
        description: Amazon Archive Campaign
        call: advertising-campaigns.archivecampaign
        with:
          campaignId: rest.campaignId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: advertising-campaigns-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Advertising API — Campaigns. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-list-sponsored-products-campaigns
      description: Amazon List Sponsored Products Campaigns
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: advertising-campaigns.listcampaigns
      with:
        startIndex: tools.startIndex
        count: tools.count
        stateFilter: tools.stateFilter
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-create-sponsored-products-campaigns
      description: Amazon Create Sponsored Products Campaigns
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: advertising-campaigns.createcampaigns
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-update-sponsored-products-campaigns
      description: Amazon Update Sponsored Products Campaigns
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: advertising-campaigns.updatecampaigns
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-get-campaign-details
      description: Amazon Get Campaign Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: advertising-campaigns.getcampaign
      with:
        campaignId: tools.campaignId
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-archive-campaign
      description: Amazon Archive Campaign
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: advertising-campaigns.archivecampaign
      with:
        campaignId: tools.campaignId
      outputParameters:
      - type: object
        mapping: $.