delete_campaign_structure
Delete entire campaign structure including ads, ad sets, and campaigns in correct order. Supports specific campaign IDs or all active campaigns, with a dry-run option for verification.
Instructions
Delete entire campaign structure (ads -> adsets -> campaigns) in correct order.
Args: account_id: Ad account ID. campaign_ids_json: JSON array of campaign IDs to delete. If not provided with delete_all_active=True, deletes all non-deleted campaigns. delete_all_active: If True and no campaign_ids, targets all campaigns. confirm: Must be True to actually delete. False = dry run showing what would be deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| campaign_ids_json | No | ||
| delete_all_active | No | ||
| confirm | No |