meta get campaign structure
meta_get_campaign_structureRetrieve the hierarchical campaign structure for a Meta Ads account, showing campaigns, ad sets, and ads. Optionally filter to a specific campaign to understand its organization.
Instructions
Get hierarchical campaign structure: campaigns -> ad sets -> ads. Useful for understanding account organization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | No | Get structure for a specific campaign only | |
| adAccountId | Yes | Ad account ID (e.g., act_123456789) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |