create_walmart_campaign

Walmart Connect Write

Create one or more Sponsored-Products campaigns for a Walmart advertiser

Endpoint

POST https://api.adspirer.ai/api/v1/tools/create_walmart_campaign/execute

Headers

Description

Create one or more Sponsored-Products campaigns for a Walmart advertiser. Campaigns are created PAUSED (review, then enable to start spend). Supports auto or manual targeting, FIXED/DYNAMIC/TROAS bidding, daily or both budget types, rollover, start/end dates and campaign options (brand-term / complementary opt-outs). Budget minimums are enforced per advertiser type (1P vs 3P); bids/budgets are plain-decimal USD. Pass a single campaign via the flat fields, or several via `campaigns`.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
advertiser_idstring optionalWalmart Advertiser ID. Optional when only one advertiser is connected.
namestring optionalCampaign name (≤255 chars). For a single campaign.
targeting_typestring optionalauto or manual targeting. one of: auto, manual
daily_budgetnumber optionalDaily budget in USD (1P ≥ $50, 3P ≥ $10).
start_datestring optionalStart date yyyy-MM-dd (campaign goes live PST midnight).
statusstring optionalCreate status (default paused). one of: enabled, paused, completed
budget_typestring optionaldaily (default) or both (daily + total). one of: daily, both
total_budgetnumber optionalTotal budget in USD (required when budget_type=both; 1P ≥ $100, 3P ≥ $50).
end_datestring optionalEnd date yyyy-MM-dd (omit for indefinite).
rolloverboolean optionalBudget rollover (only true is accepted today).
bidding_strategystring optionalSP bidding strategy (default FIXED). one of: FIXED, DYNAMIC, TROAS
campaign_optionsarray optionalOptional brand-term / complementary opt-outs (auto SP).
campaignsarray optionalMultiple campaigns at once; each object takes the same fields as above.

Example request

{
  "arguments": {
    "targeting_type": "auto",
    "status": "enabled",
    "budget_type": "daily",
    "bidding_strategy": "FIXED"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for create_walmart_campaign)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "create_walmart_campaign"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "create_walmart_campaign"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "create_walmart_campaign",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai