CLI command
paid-ads
List paid-ad campaign metadata.
Invocation#
echo-cli paid-adsInputs and output#
Writes at most 200 campaigns with provider identity, status, objective, declared budgets, and timestamps.
State effect#
The command performs one bounded SELECT from ad_campaigns. It does not create, change, fund, pause, or synchronize a campaign.
Refusals#
- Without NEXT_PUBLIC_SUPABASE_URL it prints exactly "NEXT_PUBLIC_SUPABASE_URL is not configured" to stderr and exits 1.
- After the URL is present, without SUPABASE_SERVICE_ROLE_KEY it prints exactly "SUPABASE_SERVICE_ROLE_KEY is not configured" to stderr and exits 1.
- If Supabase refuses a SELECT, the CLI prints the returned database error message to stderr and exits 1.