create_meta_catalog_campaign

Meta Ads Write

User wants to create an Advantage+ Catalog ad / Dynamic Product Ad (DPA) — ads that automatically show products from their Meta product catalog

Endpoint

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

Headers

Description

User wants to create an Advantage+ Catalog ad / Dynamic Product Ad (DPA) — ads that automatically show products from their Meta product catalog. Keywords: "catalog ad", "dynamic product ads", "DPA", "advantage+ catalog", "shopping ads", "retarget products", "show my products". Meta renders each product's image, name and price from the catalog at delivery — the user does NOT upload images. Always OUTCOME_SALES. Two audience strategies: - **prospecting** — broad audience to find new buyers (no pixel needed) - **retargeting** — show products to people who engaged via the Pixel (REQUIRES pixel_id). Presets: viewed_not_purchased, carted_not_purchased, all_engaged_not_purchased, cross_sell_purchasers, or custom. REQUIRED FIRST: run `validate_catalog_readiness` (confirms the catalog has products with images and whether retargeting is viable), and resolve catalog_id + product_set_id via `list_meta_catalogs` / `list_meta_product_sets`. For retargeting, get pixel_id from `list_meta_pixels`. The campaign is created **PAUSED** so the user can review it in Ads Manager before spending.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_namestring requiredName for the campaign.
product_catalog_idstring requiredProduct catalog ID (required). Get it from list_meta_catalogs.
product_set_idstring requiredProduct set ID to advertise (required). Get it from list_meta_product_sets — use the catalog's 'All Products' set to advertise everything, or a narrower set to boost specific items.
primary_textstring requiredPrimary ad text shown above the products (max ~125 chars). You may use {{product.name}} / {{product.current_price}} tokens.
audience_typestring optional'prospecting' (broad audience — find new buyers) or 'retargeting' (show products to people who already engaged via the Pixel). Retargeting REQUIRES pixel_id. default: "prospecting"
destination_typestring optionalWhere the ad sends people. 'WEBSITE' (default — your product pages off Facebook) or 'FACEBOOK' (an on-Facebook product listing / Shop). Use WEBSITE unless you run a Facebook/Instagram Shop. default: "WEBSITE"
budget_dailynumber optionalDaily budget in account currency (e.g. 20.0). Provide this OR budget_lifetime.
budget_lifetimenumber optionalLifetime budget in account currency. Provide this OR budget_daily. Requires end_time.
ad_account_idstring optionalMeta ad account ID. Required for multi-account users. Get from get_connections_status.
headlinestring optionalHeadline. Defaults to the product name ({{product.name}}) when omitted.
descriptionstring optionalDescription line. Defaults to the product price ({{product.current_price}}) when omitted.
call_to_actionstring optionalCTA button type (e.g. SHOP_NOW, LEARN_MORE, BUY_NOW). default: "SHOP_NOW"
landing_page_urlstring optionalOptional override landing page. Defaults to each product's own URL ({{product.url}}).
facebook_page_idstring optionalFacebook Page ID. Auto-detected from the ad account if omitted.
instagram_account_idstring optionalInstagram account ID for IG placements (optional, auto-detected).
pixel_idstring optionalMeta Pixel ID. REQUIRED when audience_type='retargeting' (used to build the viewed/added-to-cart product audience). Optional for prospecting. Get it from list_meta_pixels.
pixel_event_namestring optionalConversion event to optimize/track (default PURCHASE).
retargeting_presetstring optionalRetargeting audience preset (audience_type='retargeting' only): 'viewed_not_purchased' (default, 14d), 'carted_not_purchased' (7d), 'all_engaged_not_purchased' (30d), 'cross_sell_purchasers' (180d), or 'custom'.
retention_daysinteger optionalOverride the lookback window (days) for the retargeting audience.
include_eventsarray optionalFor retargeting_preset='custom': pixel events to INCLUDE (e.g. ['ViewContent','AddToCart']).
exclude_eventsarray optionalFor retargeting_preset='custom': pixel events to EXCLUDE (e.g. ['Purchase'] to skip recent buyers).
locationsarray optionalList of country codes / location specs (default ['US']).
age_mininteger optionalMinimum age (default 18). default: 18
age_maxinteger optionalMaximum age (default 65). default: 65
gendersarray optional['male'] / ['female'] / omit for all.
interestsarray optionalInterest targeting specs from search_meta_targeting.
behaviorsarray optionalBehavior targeting specs from search_meta_targeting.
custom_audiencesarray optionalCustom audience IDs to include (from list_meta_custom_audiences).
excluded_custom_audiencesarray optionalCustom audience IDs to exclude.
advantage_audienceboolean optionalEnable Advantage+ Audience expansion.
special_ad_categoriesarray optionalHOUSING/EMPLOYMENT/CREDIT/etc. if applicable.
campaign_budget_optimizationboolean optionalEnable CBO (budget at campaign level). default: false
end_timestring optionalCampaign/ad set end time (ISO 8601). Required for lifetime budget.
ad_set_namestring optionalCustom ad set name.
ad_namestring optionalCustom ad name.

Example request

{
  "arguments": {
    "campaign_name": "string",
    "product_catalog_id": "string",
    "product_set_id": "string",
    "primary_text": "string",
    "audience_type": "prospecting",
    "destination_type": "WEBSITE",
    "budget_daily": 1.0,
    "budget_lifetime": 1.0,
    "ad_account_id": "string",
    "headline": "string"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for create_meta_catalog_campaign)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "create_meta_catalog_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_meta_catalog_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_meta_catalog_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