Logo Pmax Audit

Pmax Audit

Tổ chức
cognyai
pmax-audit

Performance Max campaign audit — asset group strength, asset coverage, search themes, audience signals, brand exclusions, channel distribution

Tổng quan

Nhà phát hànhcognyai
Kho mãclaude-code-marketing-skills
Tên kỹ năngpmax-audit
Sao
111
Bản fork
15
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được cognyai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Pmax Audit trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/pmax-audit
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git /tmp/claude-code-marketing-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-marketing-skills/skills/pmax-audit .claude/skills/pmax-audit
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Pmax Audit trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Pmax Audit ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Pmax Audit với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Performance Max Audit

A deep audit of your Performance Max campaigns. PMax hides most of its levers — this skill pulls the ones the API still exposes (asset groups, asset coverage, search themes, audience signals, exclusions, channel mix) and flags what's leaking spend.

Requires: Cogny Agent subscription ($9/mo) — Sign up

Works with

JobPrimaryAlso answers itDifferences to state
Asset groups, assets, signals, exclusionsGoogle Ads—Only Google exposes these levers
PMax spend, conversions, ROASGoogle AdsMicrosoft Ads (Bing_Ads, campaign type PerformanceMax)Bing: account-currency units; compute ROAS as Revenue / Spend yourself; no asset-group data
Is the ROAS real?Shopify / WooCommerce ordersGA4 (sessionGoogleAdsCampaignName)Store = paid orders; PMax claims brand and remarketing conversions

Step 0: Cogny check

If no mcp__cogny__* tools exist (no list_integrations, no cogny_status), print this and stop:

Performance Max Audit needs your marketing data through Cogny's MCP gateway.

1. Sign up at https://cogny.com and connect Google Ads (plus Microsoft Ads, GA4, Shopify or
   WooCommerce if you use them).
2. Add Cogny to .mcp.json in your project:
   {"mcpServers": {"cogny": {"type": "http", "url": "https://app.cogny.com/mcp"}}}
3. Restart Claude Code; it opens a browser for the OAuth login on first use.

Nothing to run without Cogny.

If Cogny is connected but mcp__cogny__mcp__Google_Ads__tool_execute_gaql is missing, say "connect Google Ads in Cogny" (or "reconnect Google Ads in Cogny" if it's listed but unhealthy or a read returns 401/permission denied) and stop. If only Microsoft Ads is connected, run step 1's Microsoft branch and say that the asset-level audit needs Google Ads.

Usage

/pmax-audit — audit every Performance Max campaign in the account /pmax-audit Holiday Retail — audit one campaign by name or id

Why PMax needs its own audit

PMax is a black box compared to Search. There are no keywords and no per-placement bids. The few real levers — asset group ad strength, asset coverage, search themes, audience signals, and exclusions — are what this skill inspects, because they are the only things you can actually change.

Steps

Google Ads money fields are micros (divide by 1,000,000). An empty GAQL result (no rows, or the tool returns no output) means zero: no matching entities or no activity in the window. Report it as 0, not as an error. Query errors come back as explicit error messages.

1. Find the Performance Max campaigns

sql
SELECT campaign.id, campaign.name, campaign.status,
  campaign.bidding_strategy_type, campaign.maximize_conversion_value.target_roas,
  campaign.target_cpa.target_cpa_micros, campaign_budget.amount_micros,
  metrics.cost_micros, metrics.conversions, metrics.conversions_value
FROM campaign
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'
  AND segments.date DURING LAST_30_DAYS
ORDER BY metrics.cost_micros DESC

Microsoft Ads (if connected): tool_list_accounts for the account_id, then tool_get_campaigns (account_id, campaign_types: ["PerformanceMax"]), then tool_get_report (account_id, report_type: "campaign", campaign_ids, start_date, end_date). Report spend, conversions and revenue as a separate block; Microsoft PMax is often an import of the Google one, so compare CPA/ROAS between the two and flag a gap over 2x.

2. Asset group health

sql
SELECT asset_group.id, asset_group.name, asset_group.status,
  asset_group.ad_strength, campaign.name,
  metrics.cost_micros, metrics.conversions, metrics.conversions_value
FROM asset_group
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'
  AND segments.date DURING LAST_30_DAYS

Flag:

  • Ad strength POOR or AVERAGE on any spending asset group
  • Campaigns with a single asset group (no audience/theme segmentation)
  • Asset groups with status REMOVED/PAUSED still configured but campaign starved

3. Asset coverage per group

asset_group_asset.performance_label was removed in API v25 (UNRECOGNIZED_FIELD). Use primary_status / primary_status_reasons plus the asset's own metrics:

sql
SELECT asset_group.name, asset_group_asset.field_type, asset_group_asset.status,
  asset_group_asset.primary_status, asset_group_asset.primary_status_reasons,
  asset.id, asset.type,
  metrics.impressions, metrics.clicks, metrics.conversions, metrics.cost_micros
FROM asset_group_asset
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'
  AND segments.date DURING LAST_30_DAYS

Assets with no impressions in the window drop out of this result; run it once more without the metrics and the segments.date filter to count every linked asset.

For each asset group, count assets by field_type and compare to Google's max slots:

Field typeRecommendedMax
HEADLINE11+15
LONG_HEADLINE55
DESCRIPTION55
MARKETING_IMAGE (1.91:1)4+20
SQUARE_MARKETING_IMAGE4+20
PORTRAIT_MARKETING_IMAGE2+20
LOGO1+5
YOUTUBE_VIDEO1+5

Flag:

  • Any group below the recommended count for headlines, images, or video
  • No video asset — Google auto-generates a low-quality one if you skip it
  • Assets whose primary_status is NOT_ELIGIBLE or LIMITED (read primary_status_reasons for why, e.g. a policy limit), and low performers: assets with impressions but a CTR or conversion rate far below the other assets of the same field_type in the group
  • Only one image aspect ratio (limits inventory: blocks whole channels)

4. Search themes & audience signals

sql
SELECT asset_group.name, asset_group_signal.search_theme.text,
  asset_group_signal.audience.audience
FROM asset_group_signal
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'

Flag:

  • Asset groups with no audience signal — PMax starts cold, wastes budget learning
  • No search themes set (up to 25 allowed — they steer the Search surface)
  • Search themes that overlap your brand terms (inflates brand cannibalization)

5. Search category insight (where spend actually goes)

campaign_search_term_insight accepts one campaign per query. Loop over the campaign ids from step 1:

sql
SELECT campaign_search_term_insight.category_label,
  metrics.clicks, metrics.conversions, metrics.conversions_value
FROM campaign_search_term_insight
WHERE segments.date DURING LAST_30_DAYS
  AND campaign_search_term_insight.campaign_id = '<id>'
ORDER BY metrics.clicks DESC
LIMIT 50

An empty category_label is the bucket of uncategorised terms, not an error.

Flag categories with high clicks and zero conversions — candidates for negative keywords (PMax negatives are set at the account level, or via support).

6. Brand exclusions, URL expansion & new customers

campaign.brand_guidelines_enabled is about brand colours and fonts in generated assets, not brand exclusions. Brand exclusions are BRAND_LIST campaign criteria:

sql
SELECT campaign.name, campaign_criterion.type, campaign_criterion.negative,
  campaign_criterion.brand_list.shared_set
FROM campaign_criterion
WHERE campaign_criterion.type = 'BRAND_LIST'
  AND campaign.advertising_channel_type = 'PERFORMANCE_MAX'

A PMax campaign with no row here has no brand exclusion. Final URL expansion and other automation settings:

sql
SELECT campaign.name, campaign.asset_automation_settings
FROM campaign
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'

Look for the final-URL-expansion entry (e.g. FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION) with asset_automation_status: OPTED_IN. campaign.customer_acquisition_setting.optimization_mode is not recognised by the API, so read the new-customer split from conversions instead. This segment accepts conversion metrics only (adding metrics.cost_micros fails):

sql
SELECT campaign.name, segments.new_versus_returning_customers,
  metrics.conversions, metrics.conversions_value
FROM campaign
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'
  AND segments.date DURING LAST_30_DAYS

An empty result means 0 conversions in either segment. If step 1 shows conversions for the campaign but this returns nothing, new-vs-returning isn't being measured (no customer lists or new-customer goal), so say "not measured" rather than "0 new customers".

Flag:

  • No brand exclusion list — PMax happily spends on your own brand searches
  • Most conversions value from returning customers, or no new-vs-returning data at all (new-customer goal likely not configured), for accounts that want growth, not just remarketing-flavored conversions
  • Final URL expansion ON with no URL exclusions (PMax can send traffic anywhere on the domain)

7. Listing groups (retail PMax only)

If the campaign has a Merchant Center feed:

sql
SELECT asset_group.name, asset_group_listing_group_filter.type,
  asset_group_listing_group_filter.case_value.product_type.value
FROM asset_group_listing_group_filter
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'

Flag everything dumped into one "All products" node — no way to prioritize high-margin SKUs. Recommend /shopping-campaign-audit for full feed analysis.

7b. Enhanced when connected: is the ROAS real?

PMax claims credit for brand searches and returning buyers. If a store is connected, pull paid revenue for the same 30 days (Shopify tool_list_orders with query_filter: "created_at:>=YYYY-MM-DD financial_status:paid"; WooCommerce get_sales_report with date_min, date_max) and show PMax conversions_value as a share of it. With GA4, tool_list_account_summaries for the property, then tool_run_report (dimensions: ["sessionGoogleAdsCampaignName", "newVsReturning"], metrics: ["sessions", "keyEvents", "purchaseRevenue"]; keep sessions, as GA4 drops rows where every metric is 0) shows how much PMax revenue comes from returning users. A high returning share plus no brand exclusion makes step 6 critical.

8. Score and report

Performance Max Audit — [Account Name]
PMax Score: X/100  ·  30-day spend: [X]  ·  Conv: [X]  ·  ROAS: [X.Xx]

Per campaign / asset group:
| Campaign | Asset group | Ad strength | Signal? | Video? | Spend | ROAS |
|----------|-------------|-------------|---------|--------|-------|------|

🔴 Critical   — broken signals, POOR ad strength, no brand exclusion
🟡 Important  — thin assets, missing video, no search themes
🟢 Optimization — add aspect ratios, expand headlines

Top 3 Actions:
1. [Highest $ impact]
2. ...
3. ...

9. Record findings

json
{
  "title": "PMax 'Holiday Retail' has no audience signal — slow, expensive learning",
  "body": "Asset group 'Gifts' spends $90/day with no audience signal attached. PMax is exploring blind. Add a signal from converting customers (customer match list or your top-converting segment) to speed up learning.",
  "action_type": "audience_refinement",
  "expected_outcome": "Faster learning, lower CPA within 2-3 weeks",
  "estimated_impact_usd": 1200,
  "priority": "high"
}

Cloud uses create_ticket with the same content, fields mapped per section 2 of the routing guide.

Action types: asset_optimization, audience_refinement, negative_keyword, campaign_optimization, bidding_strategy, brand_exclusion.

Recording findings

Use create_ticket when the workspace has it (Cloud) and create_finding otherwise (Solo). The fields differ; see section 2 of ../marketing-engineer/references/mcp-routing.md.

Critical rules

  1. Asset strength and audience signals are the real levers. Spend the audit there, not on metrics you can't influence.
  2. Always check brand exclusions. Unexcluded brand traffic is the most common PMax money leak.
  3. Quote real numbers — ad strength label, asset counts, category clicks.
  4. Read-only. Surface issues; never edit asset groups. Write tools such as tool_add_asset_to_asset_group are used only on the user's request, and the skill asks first.
  5. Platform and store numbers stay side by side, each in its own currency.

Câu hỏi thường gặp

Kỹ năng AI Pmax Audit làm được gì?

Performance Max campaign audit — asset group strength, asset coverage, search themes, audience signals, brand exclusions, channel distribution

Vì sao nên dùng Pmax Audit trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Pmax Audit là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Pmax Audit trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/pmax-audit. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Pmax Audit?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Pmax Audit với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Pmax Audit với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Pmax Audit có miễn phí không?

Kỹ năng này được cognyai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇