Meta Ads (Facebook/Instagram) MCP server for Claude, ChatGPT, Perplexity & Cursor — the Meta node of Pipeboard’s 5-platform family (+ Google, TikTok, Snap, Reddit). Hosted remote MCP, badged Meta Business Partner, free plan — no self-hosting required.
Python advertisingai-agentschatgptclaudefacebook-adsinstagram-adsmcpmeta-adsmodel-context-protocolpipeboard
Update campaign objective documentation to reflect new outcome-based values and remove legacy objectives. Simplify package description in init file. Enhance create_campaign function docstring with updated objective validation details.
Yves Junqueira0485c1d3fda0
diff --git a/README.md b/README.mdindex f054a50..599dc73 100644--- a/README.md+++ b/README.md@@ -151,7 +151,22 @@ For local installation configuration, authentication options, and advanced techn- `access_token` (optional): Meta API access token (will use cached token if not provided)- `account_id`: Meta Ads account ID (format: act_XXXXXXXXX)- `name`: Campaign name- - `objective`: Campaign objective (AWARENESS, TRAFFIC, ENGAGEMENT, etc.)+ - `objective`: Campaign objective (ODAX, outcome-based). Must be one of:+ - `OUTCOME_AWARENESS`+ - `OUTCOME_TRAFFIC`+ - `OUTCOME_ENGAGEMENT`+ - `OUTCOME_LEADS`+ - `OUTCOME_SALES`+ - `OUTCOME_APP_PROMOTION`++ Note: Legacy objectives such as `BRAND_AWARENESS`, `LINK_CLICKS`, `CONVERSIONS`, `APP_INSTALLS`, etc. are no longer valid for new campaigns and will cause a 400 error. Use the outcome-based values above. Common mappings:+ - `BRAND_AWARENESS` → `OUTCOME_AWARENESS`+ - `REACH` → `OUTCOME_AWARENESS`+ - `LINK_CLICKS`, `TRAFFIC` → `OUTCOME_TRAFFIC`+ - `POST_ENGAGEMENT`, `PAGE_LIKES`, `EVENT_RESPONSES`, `VIDEO_VIEWS` → `OUTCOME_ENGAGEMENT`+ - `LEAD_GENERATION` → `OUTCOME_LEADS`+ - `CONVERSIONS`, `CATALOG_SALES`, `MESSAGES` (sales-focused flows) → `OUTCOME_SALES`+ - `APP_INSTALLS` → `OUTCOME_APP_PROMOTION`- `status`: Initial campaign status (default: PAUSED)- `special_ad_categories`: List of special ad categories if applicable- `daily_budget`: Daily budget in account currency (in cents)@@ -159,6 +174,20 @@ For local installation configuration, authentication options, and advanced techn- `bid_strategy`: Bid strategy. Must be one of: `LOWEST_COST_WITHOUT_CAP`, `LOWEST_COST_WITH_BID_CAP`, `COST_CAP`, `LOWEST_COST_WITH_MIN_ROAS`.- Returns: Confirmation with new campaign details+ - Example:+ ```json+ {+ "name": "2025 - Bedroom Furniture - Awareness",+ "account_id": "act_123456789012345",+ "objective": "OUTCOME_AWARENESS",+ "special_ad_categories": [],+ "status": "PAUSED",+ "buying_type": "AUCTION",+ "bid_strategy": "LOWEST_COST_WITHOUT_CAP",+ "daily_budget": 10000+ }+ ```+7. `mcp_meta_ads_get_adsets`- Get ad sets for a Meta Ads account with optional filtering by campaign- Inputs:diff --git a/meta_ads_mcp/__init__.py b/meta_ads_mcp/__init__.pyindex fb43c7a..46d3c42 100644--- a/meta_ads_mcp/__init__.py+++ b/meta_ads_mcp/__init__.py@@ -1,8 +1,7 @@"""Meta Ads MCP - Python Package-This package provides a Meta Ads Marketing Cloud Platform (MCP) integration-with the Claude LLM.+This package provides a Meta Ads MCP integration"""from meta_ads_mcp.core.server import maindiff --git a/meta_ads_mcp/core/campaigns.py b/meta_ads_mcp/core/campaigns.pyindex 7618f4d..2b1d96b 100644--- a/meta_ads_mcp/core/campaigns.py+++ b/meta_ads_mcp/core/campaigns.py@@ -109,7 +109,13 @@ async def create_campaign(access_token: Meta API access token (optional - will use cached token if not provided)account_id: Meta Ads account ID (format: act_XXXXXXXXX)name: Campaign name- objective: Campaign objective. Validates ad objectives. enum{BRAND_AWARENESS, LEAD_GENERATION, LINK_CLICKS, CONVERSIONS, OUTCOME_TRAFFIC, etc.}.+ objective: Campaign objective (ODAX, outcome-based). Must be one of:+ OUTCOME_AWARENESS, OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT,+ OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_APP_PROMOTION.+ Note: Legacy objectives like BRAND_AWARENESS, LINK_CLICKS,+ CONVERSIONS, APP_INSTALLS, etc. are not valid for new+ campaigns and will cause a 400 error. Use the outcome-based+ values above (e.g., BRAND_AWARENESS → OUTCOME_AWARENESS).status: Initial campaign status (default: PAUSED)special_ad_categories: List of special ad categories if applicabledaily_budget: Daily budget in account currency (in cents) as a string (only used if use_adset_level_budgets=False)