To check Facebook CPA by campaign with AI, ask an AI assistant connected to your ad account for the cost per result of every campaign over the dates you choose. It reads Meta's own numbers, puts them in one table and flags the campaigns above your target cost. CPA is spend divided by results, and the assistant reads Meta's cost per result rather than calculating its own.
TL;DR
- The assistant returns one row per campaign: spend, results and cost per result.
- Cost per result comes per action type, as Meta calculates it, so purchases, leads and other actions each have their own cost.
- Tell it your target CPA, so campaigns over the line are marked.
- Ask for two periods to see which campaigns got more expensive.
- To understand why CPA rises, read why Facebook CPA rises and how to lower it.
Who this is for
- Media buyers who want every campaign's CPA in one view instead of opening each one.
- Founders who know the blended CPA is too high and want to see which campaigns cause it.
- Agency account managers preparing a client check-in.
Connect your AI assistant to Meta ads
Ask about your ad accounts in plain words. Every change waits for your yes. Included in the 7-day free trial.
Try for Free ($0 Trial)The prompt to paste
In my Facebook ad account [account name], show cost per purchase for every campaign for the last 14 days. Include spend and number of purchases. My target CPA is [amount]. Sort by spend, mark every campaign above my target, and tell me how much of the total spend went to campaigns above it. Do not change anything.
Follow-ups that work well:
Compare the same campaigns with the 14 days before. Which ones got more expensive?
For the campaign with the highest CPA, show me its ad sets with the same numbers.
The prompt works in any AI assistant connected to the Madgicx MCP. If yours is not set up, connect your AI assistant first.
If your goal is leads or another action, swap "purchase" for it in the prompt. The assistant reads cost per result for each action type Meta reports.
What the MCP reads
- Results per campaign. One row for each campaign that delivered in the dates you chose: spend, results by action type and cost per result, as Meta calculates them.
- Campaign setup. Objective, status, budget and bid strategy, so you can see which campaigns are active and how each is set up.
- Ad sets and ads inside a campaign. The same totals one level down, when you want to find what drives a campaign's cost.
What the answer looks like
A table with one row per campaign: name, status, spend, results and cost per result, sorted by spend. Campaigns above your target are marked, and a short line states the share of spend that went to them.
The assistant reads one total for the whole period, not a day-by-day line. To see a trend, ask for two or more periods and have it compare them. Campaigns with very few results can show a swinging CPA, so ask it to note them separately.
If CPA is too high, what to check
The MCP reads the numbers behind a high CPA. Changing the ads, audience or tracking setup is your job in Ads Manager. Three checks, each with a follow-up you can ask for:
- Frequency rising. Ask for frequency per ad in the campaign. If it climbs while CPA climbs, check creative fatigue. The MCP lists the tired ads; you replace the creatives.
- Spend in weak campaigns. Ask how much spend sits in campaigns above your target, then find wasted ad spend. Pausing or lowering a budget happens only after you confirm.
- Tracking quality. If purchases are under-reported, cost per result looks higher than it is. Check Event Match Quality shows the score per event. Fixing the setup is done outside the MCP.
What to do next
- Find out where the money leaks: find wasted ad spend lists what spent without results.
- Cost per result is half the picture, so check ROAS by campaign for the revenue side.
- Put two campaigns next to each other: compare campaigns side by side.
- If CPA climbs while frequency rises, check creative fatigue.
Changes happen only after you confirm
This page only reads. If you later ask the assistant to change something, such as pausing a campaign or lowering a budget, it must show you the exact change and wait for your confirmation before it runs. Nothing changes until you say yes.
Try it on your own account
The Madgicx MCP comes with a Madgicx subscription, and the 7-day free trial includes it. When you want more than a CPA check, Madgicx's AI marketer audits your Facebook and Instagram account and prepares the next moves, which you approve.
FAQ
How do I calculate CPA?
Divide the amount spent by the number of results in the same dates. Meta reports this as cost per result, and it changes with the action you count: purchases, leads and other actions each have their own. The assistant reads Meta's figure for each campaign, so you do not need a spreadsheet.
How do I lower my CPA?
Start with the three checks above: rising frequency, spend in campaigns over your target, and tracking quality. The assistant shows you which of these applies. The fix, such as new creatives or a tracking setup change, is made in Ads Manager, and any pause or budget change it makes for you waits for your confirmation.
What is a good CPA on Facebook?
It depends on your margins, not on an industry average. Compare cost per result with the profit you make per sale: if each result costs less than that profit, the campaign pays for itself. Give your own figure to the assistant as the target and let it mark every campaign above it.
Does it show CPA for leads as well as purchases?
Yes. Cost per result comes for each action type Meta reports, so name the action you care about in the prompt.
Can it show CPA by day?
No. Results come as one total for the dates you pick. Ask for two or more periods, such as this week and last week, to see how CPA moved.
Does it match what Ads Manager shows?
The numbers are Meta's own, as the account reports them for the dates you ask about, so they should line up with what you see in Ads Manager.