create_meta_product_set

Meta Ads Write

User wants to advertise a SUBSET of their catalog — "boost just these items / these SKUs", "promote my sale items", "make a set of my new arrivals"

Endpoint

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

Headers

Description

User wants to advertise a SUBSET of their catalog — "boost just these items / these SKUs", "promote my sale items", "make a set of my new arrivals". Creates a product SET (a filtered grouping of EXISTING catalog products) — it does NOT create or upload products (those come from Shopify / Commerce Manager). Provide either: - retailer_ids: a list of SKUs to include (simplest — "boost just these items"), or - filter: an advanced raw Meta product-set filter When to use: - "Boost these 3 products", "create a set of my sale items" - Before a catalog ad when the user wants a specific subset, not the whole catalog

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
catalog_idstring requiredProduct catalog ID the set belongs to (required). Get it from list_meta_catalogs.
namestring requiredName for the new product set (e.g. 'Summer Sale', 'Footwear').
retailer_idsarray optionalList of product retailer IDs / SKUs to include (e.g. ['SKU-001','SKU-002']). Use this to 'boost just these items'. Either retailer_ids or filter is required.
filterobject optionalAdvanced: a raw Meta product-set filter dict, e.g. {'product_type': {'i_contains': 'shoes'}}. Overrides retailer_ids if both are given.
ad_account_idstring optionalMeta ad account ID. If not provided, uses the connected account.

Example request

{
  "arguments": {
    "catalog_id": "string",
    "name": "string",
    "retailer_ids": [],
    "filter": {},
    "ad_account_id": "string"
  }
}

Example responses

200 — Success

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

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_meta_product_set"
}

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_meta_product_set",
  "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