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
feat: add name parameter to update_ad tool (#59)
Yves Junqueirab056d5313f79
diff --git a/meta_ads_mcp/core/ads.py b/meta_ads_mcp/core/ads.pyindex f000fc2..0ed48d3 100644--- a/meta_ads_mcp/core/ads.py+++ b/meta_ads_mcp/core/ads.py@@ -866,6 +866,7 @@ if ENABLE_SAVE_AD_IMAGE_LOCALLY:@meta_api_toolasync def update_ad(ad_id: str,+ name: Optional[str] = None,status: Optional[str] = None,bid_amount: Optional[int] = None,tracking_specs: Optional[List[Dict[str, Any]]] = None,@@ -877,6 +878,7 @@ async def update_ad(Args:ad_id: Meta Ads ad ID+ name: New ad namestatus: Update ad status (ACTIVE, PAUSED, etc.)bid_amount: Bid amount in account currency (in cents for USD)tracking_specs: Optional tracking specifications (e.g., for pixel events).@@ -891,6 +893,8 @@ async def update_ad(creative_id = str(creative_id)params = {}+ if name is not None:+ params["name"] = nameif status:params["status"] = statusif bid_amount is not None:@@ -903,7 +907,7 @@ async def update_ad(params["creative"] = json.dumps({"creative_id": creative_id})if not params:- return json.dumps({"error": "No update parameters provided (status, bid_amount, tracking_specs, or creative_id)"}, indent=2)+ return json.dumps({"error": "No update parameters provided (name, status, bid_amount, tracking_specs, or creative_id)"}, indent=2)endpoint = f"{ad_id}"try: