Skip to content

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.

fix: instagram_actor_id placement — top-level param, not inside object_story_spec

Yves Junqueira075000c7228c
diff --git a/meta_ads_mcp/core/ads.py b/meta_ads_mcp/core/ads.py
index 371550e..0ffa49d 100644
--- a/meta_ads_mcp/core/ads.py
+++ b/meta_ads_mcp/core/ads.py
@@ -1172,7 +1172,7 @@ async def create_ad_creative(
if dynamic_creative_spec:
creative_data["dynamic_creative_spec"] = dynamic_creative_spec
- # instagram_actor_id always goes at the top level of creative_data.
+ # instagram_actor_id is a top-level creative param (separate form field).
# Meta API v24 rejects it inside video_data (error_subcode 1443050).
if instagram_actor_id:
creative_data["instagram_actor_id"] = instagram_actor_id
diff --git a/tests/test_video_creatives.py b/tests/test_video_creatives.py
index a7691dc..6bb54f7 100644
--- a/tests/test_video_creatives.py
+++ b/tests/test_video_creatives.py
@@ -147,8 +147,8 @@ async def test_video_creative_with_instagram_actor_id():
creative_data = mock_api.call_args_list[1][0][2]
video_data = creative_data["object_story_spec"]["video_data"]
- # instagram_actor_id should be at the top level, NOT inside video_data
- # (Meta API v24 rejects it inside video_data with error_subcode 1443050)
+ # instagram_actor_id should be a top-level creative param (separate form field),
+ # NOT inside video_data (Meta API v24 rejects it there with error_subcode 1443050).
assert "instagram_actor_id" not in video_data
assert creative_data["instagram_actor_id"] == "ig_555666"