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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adAccountId": "<adAccountId>"
},
"name": "meta_get_campaign_structure"
}
}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. |