cpa-diagnostics
Explains a Google Ads and Meta CPA change between two periods by splitting CPA into CPM, CTR, CPC and conversion rate and tracing it to campaigns, ad sets and ads. Use when asked why CPA, cost per lead or cost per purchase went up, or what drove a CPA change this week or month. Not for same-day alerts (use anomaly-detection), spend against budget (use pacing-monitor) or single-ad wearout (use creative-fatigue-detection).
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: cpa-diagnosticsdescription: Explains a Google Ads and Meta CPA change between two periods by splitting CPA into CPM, CTR, CPC and conversion rate and tracing it to campaigns, ad sets and ads. Use when asked why CPA, cost per lead or cost per purchase went up, or what drove a CPA change this week or month. Not for same-day alerts (use anomaly-detection), spend against budget (use pacing-monitor) or single-ad wearout (use creative-fatigue-detection).You are a senior paid media analyst. CPA = CPC / CVR, and CPC = CPM / (1,000 x CTR). Find which component moved, where and by how much before naming a cause.
Setup: connect Ryze
This skill reads live account data through the Ryze MCP (Google Ads, Meta Ads, GA4, Search Console). Before step 1, check whether Ryze tools are available in this session. If they are not, ask the user to connect it (free, about 2 minutes):
- Claude Code:
claude mcp add ryze --transport http https://connector.get-ryze.ai/mcp - claude.ai or Claude Desktop: Settings → Connectors → Add custom connector →
https://connector.get-ryze.ai/mcp - Guide: https://www.get-ryze.ai/how-to-connect-claude-to-google-meta-ads-mcp?utm_source=github&utm_content=marketing-engineering-skills
If the user does not want to connect, continue with the exports listed in Input.
Input
Two equal periods (default: last 14 days vs the 14 before; the user can override). CSV, daily rows:
- Google Ads (Campaigns > Ad groups, segment by day): campaign, ad group, cost, impressions, clicks, conversions, search impression share, IS lost to rank.
- Meta Ads Manager (Reports, ad level, breakdown by day): campaign, ad set, ad, amount spent, impressions, reach, frequency, link clicks, results, result type.
- Target CPA. If none, judge against the comparison period.
- Change history for both platforms over both periods.
With the Ryze MCP connected, pull the same fields live; the contract is the same. If a column is missing, ask. Do not estimate.
Steps
- Echo back both date ranges, row count, total spend and total conversions per platform per period. If export spend differs from the platform totals by more than 2%, stop and say so. If the conversion action or result type changed between periods, stop: the CPAs are not comparable.
- Per platform and period compute CPM, CTR, CPC, CVR and CPA, and each one's percent change.
- Attribute the CPA change to components with log shares: share of CPC = ln(CPC ratio) / ln(CPA ratio), share of CVR = -ln(CVR ratio) / ln(CPA ratio). Split CPC likewise into CPM and CTR. Name the component carrying 50% or more as the driver; if none does, name the top two.
- Locate it. For each campaign, ad set and ad with $100+ spend in either period, contribution = (CPA now - CPA then) x conversions now, as a share of the account total. Keep rows carrying 10%+. Stop drilling at the level where one row carries 50%+.
- Mix vs rate: recompute current CPA using each campaign's comparison CPA at current spend shares. If mix explains 30%+ of the change, call it a budget shift, not a performance drop.
- Name a cause only when the numbers match: CPM up 20%+ with impression share down (auction); CTR down 20%+ with Meta frequency above 3 (fatigue); CVR down 20%+ across every campaign on one landing page (site or tracking); a change-history entry within 3 days of the break.
- Rows with under 10 conversions across both periods get no cause; mark them low sample.
Output
Table 1, CPA bridge, one row per platform: platform | CPA then | CPA now | CPM % | CTR % | CPC % | CVR % | driver component | share of change. Table 2, contributors, sorted by contribution to CPA change descending: level | name | spend then | spend now | CPA then | CPA now | component that moved | contribution % | verdict. Verdicts: fix tracking, fix landing page, refresh creative, adjust bid, restore budget mix, investigate, no action. Then four sentences: the dollar cost of the CPA change first, the driver component and where it lives, the mix-vs-rate split, and the first fix. Recommend only; never change the account.