pmax-optimization

pmax-optimization is a skill for Claude Code, Codex from itallstartedwithaidea/agent-skills. It costs 21 tokens per session (2,628 once invoked), scanned A, original, MIT.

A guide for improving Google Performance Max campaigns, which automatically place ads across Google Search, YouTube, Maps, Gmail, and other services.

In plain words
What is it for?
It helps organize asset groups, set audience signals, manage URL expansion, use search themes, and monitor the performance of ad assets.
Why use it?
It helps make decisions in a campaign where Google controls much of the delivery, reducing wasted spending caused by weak assets, audiences, URLs, or campaign structure.

Skill for Claude CodeCodex

Part of the google-ads-skills plugin — 12 skills shipped together , and of all-skills

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/itallstartedwithaidea/agent-skills/pmax-optimization
Any agent
npx skills add itallstartedwithaidea/agent-skills --skill pmax-optimization
Clone the repo
git clone --depth 1 https://github.com/itallstartedwithaidea/agent-skills

Made for: Claude Code, Codex.

Or install google-ads-skills, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pmax-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/itallstartedwithaidea/agent-skills/pmax-optimization.svg)](https://agentmods.dev/skills/itallstartedwithaidea/agent-skills/pmax-optimization)
Your own site
<a href="https://agentmods.dev/skills/itallstartedwithaidea/agent-skills/pmax-optimization"><img src="https://agentmods.dev/badge/skills/itallstartedwithaidea/agent-skills/pmax-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.02628
Opus 5 $0.00010 $0.01314
Sonnet 5 $0.00004 $0.00526
Haiku 4.5 $0.00002 $0.00263

Measured 5d ago against content hash 6fd623e11ab6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pmax-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/google-ads/pmax-optimization/SKILL.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Performance Max Optimization

Part of Agent Skills™ by googleadsagent.ai™

Description

The Performance Max Optimization skill provides expert-level management of Google's most automated campaign type. Performance Max (PMax) campaigns serve across all Google inventory — Search, Display, YouTube, Discover, Gmail, and Maps — using AI-driven targeting. While Google automates much of the delivery, the advertiser's strategic inputs dramatically influence performance: asset quality, audience signals, URL strategies, search themes, and campaign structure determine whether PMax delivers efficient growth or wasteful spend.

This skill addresses the core challenge of PMax: optimizing a black-box system. It establishes structural best practices (asset group architecture mapped to product lines or audience segments), configures audience signals that accelerate machine learning without constraining reach, manages URL expansion settings to balance automation with brand safety, and leverages the search themes feature to influence where PMax appears on Search.

Critical to PMax success is asset performance management. The skill monitors asset performance ratings (Best, Good, Low, combinations available), identifies underperforming creative elements, and generates replacement assets. It also manages the often-overlooked negative controls: brand exclusions to prevent cannibalization of branded search campaigns, negative keywords (available via API or Google rep), and placement exclusions to maintain brand safety on Display and YouTube inventory.

Use When

  • User asks about "Performance Max" or "PMax" campaigns
  • User wants to "optimize PMax" or "improve PMax performance"
  • User mentions "asset groups" or "asset performance"
  • User asks about "audience signals" for PMax
  • User mentions "URL expansion" or "final URL" settings
  • User wants to "add search themes" to PMax
  • User asks about "PMax cannibalization" of Search campaigns
  • User mentions "PMax negative keywords" or "brand exclusions"
  • User wants to "structure PMax campaigns" or "create asset groups"

Read the full file on GitHub · 287 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 287 lines · 21 tokens per session scan A 6fd623e11ab6

Subscribe to this mod's changes

pmax-optimization is a skill published in the GitHub repository itallstartedwithaidea/agent-skills (36 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 2,628 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

update-saasmail

Sync the local saasmail repo with the latest upstream changes from https://github.com/choyiny/saasmail. Use this skill whenever the user wants to update saasmail, pull upstream changes, sync with upstream, rebase on upstream, get the latest saasmail, or says "/update-saasmail". Handles adding the upstream remote if…

choyiny/saasmail · 105 tokens

tracking-health

Preventive audit of conversion tracking across all configured ad platforms — Meta pixels + CAPI, Google Ads conversion actions, and final-URL tracking-parameter consistency on every platform — with a GA4 cross-check. Use when the user asks to check tracking, audit conversion measurement, verify pixels / tags, check…

logly/mureo · 168 tokens

story-html-publisher

Final step of the AI Storybook pipeline. Consolidates the scenes, images, and per-scene audio into ONE self-contained HTML storybook — a swipe/tap player with every image and audio clip embedded as base64 so the single file works offline and can be shared as-is. Reads {slug}scenes.json, {slug}images.json, and…

hassancs91/claude-image-generation · 207 tokens

learn

Save a marketing diagnosis insight to the pro-diagnosis knowledge base so it is applied in future operations across all platforms. Use when the user runs /learn, explicitly teaches the agent a marketing insight, corrects the agent's analysis, or asks to remember/record an operational learning for next time. Also use…

logly/mureo · 98 tokens

weekly-report

Generate a weekly summary report across all platforms. Use when the user asks for a weekly report, summary, recap, end-of-week review, or weekly digest. Also use when the user asks in Japanese (週次レポート / 今週のまとめ / 週報を作成して).

logly/mureo · 63 tokens

adspirer-amazon-ads

Create and manage Amazon Ads through Adspirer — Sponsored Products, Sponsored Brands, and Sponsored Display, with ASIN targeting, search-term reports, ACoS, and bid optimization. Use for anything on Amazon Advertising or Seller/Vendor Central ads.

amekala/ads-mcp · 58 tokens