{
 "schema": "aiblocks-page/1",
 "id": "build-the-cross-channel-analyzer-meta-google-builder-prompt",
 "type": "prompt",
 "name": "Meta and Google comparison code planner",
 "summary": "Build a read-only Meta and Google Ads comparison in your code. Get a prompt for spend balance, double-counted sales and a channel score.",
 "headline": "Meta and Google comparison code planner",
 "subhead": "Paste one prompt into a coding AI such as Claude Code. It builds a read-only module that compares your Meta and Google Ads results on matched dates. It checks spend balance, double-counted sales and mixed messages, and scores the channel mix only on what it could check.",
 "job": {
  "id": "build-software",
  "name": "Build and ship software"
 },
 "level": "intermediate",
 "thinking": "medium",
 "tested": true,
 "updated": "2026-11-03",
 "first_published": "2026-10-25",
 "inputs": [
  {
   "type": "codebase",
   "required": true,
   "label": "Codebase",
   "what": "a project's code, in a folder or repo the AI can open"
  }
 ],
 "outputs": [
  {
   "type": "code_change",
   "required": true,
   "label": "Code change",
   "what": "a change to the code, with what it fixes and how it was checked"
  }
 ],
 "you_give": [
  "A code project and a coding AI, such as Claude Code, that can edit it",
  "Google campaign results and Meta ad set results for the same dates, currency and time zone",
  "Your store sales for the same dates (optional)",
  "Your target blended ROAS (optional)",
  "Your top ad text from each platform (optional)"
 ],
 "you_get": [
  "A prompt that builds one read-only comparison function with typed input and output",
  "Five checks for balance, double counting, audience overlap, lift tests and mixed messages",
  "A channel-mix score shown as points earned out of points possible, with a grade only when enough was checked",
  "A list of every threshold and assumption for you to review",
  "Tests on sample rows, with no real account used"
 ],
 "use_when": [
  "You are building your own reporting or agent tool and want one function that compares Meta and Google spend and sales.",
  "Meta and Google add up to more sales than your store shows, and you want a check for that in code.",
  "A developer needs a clear brief for a cross-channel module, including what to do when data is missing.",
  "You want tests written for each check before any live account is touched."
 ],
 "skip_when": [
  "You only want the comparison done on your own numbers, not built into software: use the Meta and Google budget comparison reviewer.",
  "You are not a developer and have no coding AI set up: use the Google Ads store account auditor or the Meta Ads 30-check account auditor.",
  "You have no way to read your Meta or Google results yet: set up access first, starting with the Google Ads developer access checker.",
  "You want a full Google Ads audit module, not a comparison: use the Google Ads audit engine builder."
 ],
 "output_sample": {
  "input": [
   "Your code project, open in a coding AI",
   "Google campaign results and Meta ad set results for matched dates and currency",
   "Your store sales for the same dates (optional)",
   "Your target blended ROAS and top ad text (optional)"
  ],
  "prerequisites": [
   "Read-only access to your Meta and Google Ads data, or typed sample rows to start with",
   "A coding AI that can read and edit your project"
  ],
  "output": [
   {
    "name": "analyzeCrossChannel function",
    "contains": "One read-only function with typed input and output, in your project's language and style."
   },
   {
    "name": "Findings",
    "contains": "Balance, double counting, audience overlap, lift tests and mixed messages, each with evidence and a recommendation."
   },
   {
    "name": "Blended ROAS",
    "contains": "A platform-reported figure and a store-based figure, labelled and kept apart."
   },
   {
    "name": "Channel-mix score",
    "contains": "Points earned out of points possible, with a grade only when enough was checked."
   },
   {
    "name": "Not evaluated list",
    "contains": "Each check that lacked data, with the reason, so a missing input never looks like a pass."
   },
   {
    "name": "Tests and assumptions",
    "contains": "Tests on sample rows and the thresholds you need to review."
   }
  ]
 },
 "output_shape": "Function: analyzeCrossChannel(input) -> DiagnosticOutput\nFindings: <checkId | severity | evidence | recommendation | impact or \"not calculable\">\nSummary:\n  platforms: meta and google spend, conversions, value, ROAS\n  blendedRoas: platform-reported and store-based\n  storeAttributionRatio: <reported / store sales, if given>\n  channelMixScore: <earned> of <possible>, grade <A-F or not graded>\n  topRecommendations: <up to five>\n  notEvaluated: <check and reason>\nThresholds and assumptions to review: <list>\nTests: <results, or \"not run\">",
 "how_to_use": [
  "Decide where your data comes from. If you have code that fetches Meta and Google results, tell the AI where it is. If not, the prompt builds the function to take typed rows.",
  "Copy the prompt from the skill and fill in the angle brackets. Paste it into your coding AI with your project open.",
  "Read what the AI says about your project first. If it lists missing pieces, decide whether to add them or build without them.",
  "Review the thresholds it lists. Change any that do not suit your store before you trust a finding.",
  "Run the tests on the sample rows. Run it on a live account only when you decide to, read-only.",
  "Ask the AI to propose a weekly schedule if you want one, and approve it yourself."
 ],
 "checks": [],
 "next": [
  {
   "name": "Simple code coach",
   "url": "https://useaiblocks.com/skills/simple-code-coach",
   "why": "Build it"
  }
 ],
 "source": null,
 "credits": [],
 "files": [
  "references/worked-example.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/prompts/build-the-cross-channel-analyzer-meta-google-builder-prompt",
  "markdown": "https://useaiblocks.com/prompts/build-the-cross-channel-analyzer-meta-google-builder-prompt.md",
  "json": "https://useaiblocks.com/prompts/build-the-cross-channel-analyzer-meta-google-builder-prompt.json",
  "instructions": "https://useaiblocks.com/skills/build-the-cross-channel-analyzer-meta-google-builder-prompt/SKILL.md",
  "download": "https://useaiblocks.com/skills/build-the-cross-channel-analyzer-meta-google-builder-prompt.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/build-the-cross-channel-analyzer-meta-google-builder-prompt",
  "api_document": "https://useaiblocks.com/api/v1/documents/prompt/build-the-cross-channel-analyzer-meta-google-builder-prompt",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
