Meta Ads CLI

OpenMarketing wraps a Meta Ads CLI as Pi tools. The tracker and creative-director subagents use these for insights and creative upload.

Tools registered

ToolWhat it does
meta_list_campaignsList Meta Ads campaigns for an account
meta_list_adsetsList ad sets for a campaign
meta_list_adsList ads under a campaign or ad set
meta_insightsPull metrics (spend, CTR, CPC, CPM, conversions, ROAS, frequency) over a window
meta_upload_creativeUpload a local image/video as a creative asset — does not launch ads
meta_pause_adPause an ad or adset (use only when user has explicitly authorized)
meta_update_budgetUpdate daily / lifetime budget (use only when user has explicitly authorized)

Configuration

The extension shells out to a meta binary. Set META_BIN to override:

export META_BIN=/path/to/meta

Safety

creative-director may upload assets but never launches ads without explicit user confirmation. tracker returns refinement recommendations by default; pause / scale / budget changes apply only when the user explicitly authorizes the action.