{
 "schema": "aiblocks-page/1",
 "id": "build-the-performance-max-diagnostics-module-builder-prompt",
 "type": "prompt",
 "name": "Performance Max check code planner",
 "summary": "Get a coding brief for Google Ads Performance Max checks on asset groups, brand overlap and audience signals, with the data used and gaps shown.",
 "headline": "Performance Max check code planner",
 "subhead": "Give your coding assistant your project and your Google Ads account. It plans a read-only module that checks each Performance Max asset group, looks for brand searches PMax may be taking, and lists what to fix first. It never changes your account.",
 "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": [
  "Your code project, or its main folders and database schema",
  "The customer ID and the names of the credentials your project uses (never the secrets)",
  "Your brand terms, including common misspellings",
  "Which asset groups changed in the last two weeks (optional)",
  "The date range to review (30 days if you don't say) and limits you want changed (optional)"
 ],
 "you_get": [
  "A list of setup gaps before any code is written",
  "A read-only module that checks each Performance Max asset group",
  "A brand overlap check that uses shares of impressions, not made-up spend",
  "Findings for audience signals and conversion goals, each with a proposed fix",
  "Test cases and a sample result built from made-up rows"
 ],
 "use_when": [
  "You run Performance Max and can't tell which asset groups are thin or weak.",
  "Branded searches seem to have moved from your Search campaign to PMax.",
  "You want a weekly PMax check built into your own tool.",
  "You inherited a PMax account and want a list of what to check first."
 ],
 "skip_when": [
  "Your account has no Performance Max campaigns, or they started less than two weeks ago. There is not enough data to judge. Use the Google Ads report auditor on an export when you have more.",
  "You want a one-time review and no code. Paste your export into the Google Ads report auditor.",
  "You want to check a Shopping feed. Use the Shopping feed audit prompt writer.",
  "You want it to change assets or goals for you. It only proposes changes. You make them in Google Ads."
 ],
 "output_sample": {
  "input": [
   "Your code project, or its main folders and database schema",
   "The customer ID and the names of your Google Ads credentials",
   "Your brand terms, including common misspellings",
   "The date range, and asset groups changed recently (optional)"
  ],
  "prerequisites": [
   "A coding assistant that can open your project, such as Claude Code or Codex",
   "Google Ads API access with read permission, set up before you run the module",
   "At least one Performance Max campaign with a few weeks of data"
  ],
  "output": [
   {
    "name": "Setup gaps",
    "contains": "Missing schemas, permissions, brand terms and asset limits to confirm, each with what it stops."
   },
   {
    "name": "Function signature",
    "contains": "The inputs and result type of the Performance Max check in your project."
   },
   {
    "name": "Sample DiagnosticOutput",
    "contains": "Findings from made-up rows for asset coverage, ad strength, asset mix, video, brand overlap, signals and goals."
   },
   {
    "name": "Asset group health table",
    "contains": "Coverage, ad strength, asset mix and bucket for each made-up asset group."
   },
   {
    "name": "Test results",
    "contains": "Tests for each bucket, the brand share limit and the asset mix base, or a note that none were run."
   }
  ]
 },
 "output_shape": "SETUP GAPS\n<what is missing: schemas, permissions, brand terms, asset limits to confirm>\n\nFUNCTION SIGNATURE\nrunPmaxDiagnostics(<input>) -> DiagnosticOutput\n\nSAMPLE DiagnosticOutput (made-up rows)\n<findings with checkId, severity, evidence and proposal>\n\nASSET GROUP HEALTH TABLE\n<asset group> | <coverage> | <ad strength> | <mix health> | <bucket>\n\nTEST RESULTS\n<passed, failed, or not run and why>\n\nNEXT STEP\n<the smallest useful step>",
 "how_to_use": [
  "Open your coding assistant, such as Claude Code or Codex, in your project folder. A plain chat AI can only write a plan.",
  "Paste the skill, then add your brand terms and project details. Never paste a secret key.",
  "Read the setup gaps first. Fix each one, or tell the assistant to go on with placeholders.",
  "Check the asset counts against Google's current limits. Say yes or change them.",
  "Read every change before you accept it. Run the tests in your own project.",
  "Treat each finding as a proposal. Look at the asset group in Google Ads, then make the change yourself."
 ],
 "checks": [],
 "next": [
  {
   "name": "Postgres performance tuner",
   "url": "https://useaiblocks.com/skills/postgres-performance-tuner",
   "why": "Build it"
  },
  {
   "name": "MATLAB signal noise calculator",
   "url": "https://useaiblocks.com/skills/noise-level-code-helper",
   "why": "Build it"
  },
  {
   "name": "MATLAB radio transmit and capture planner",
   "url": "https://useaiblocks.com/skills/radio-transmit-capture",
   "why": "Build it"
  }
 ],
 "source": null,
 "credits": [],
 "files": [
  "references/worked-example.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/prompts/build-the-performance-max-diagnostics-module-builder-prompt",
  "markdown": "https://useaiblocks.com/prompts/build-the-performance-max-diagnostics-module-builder-prompt.md",
  "json": "https://useaiblocks.com/prompts/build-the-performance-max-diagnostics-module-builder-prompt.json",
  "instructions": "https://useaiblocks.com/skills/build-the-performance-max-diagnostics-module-builder-prompt/SKILL.md",
  "download": "https://useaiblocks.com/skills/build-the-performance-max-diagnostics-module-builder-prompt.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/build-the-performance-max-diagnostics-module-builder-prompt",
  "api_document": "https://useaiblocks.com/api/v1/documents/prompt/build-the-performance-max-diagnostics-module-builder-prompt",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
