meta get campaign structure
meta_get_campaign_structureRetrieve the campaign, ad set, and ad hierarchy for a Meta ad account to understand account organization. Optionally narrow to a single campaign.
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. |