check-campaign-structure skill
The read-only skill an agent uses to check that Shopping and Performance Max campaigns are built on your product segments, and to read the campaign plan results.
check-campaign-structure checks how your Shopping and Performance Max campaigns use the segment label, and what happened since you applied the campaign plan. It reads listing group filters, results per segment and per campaign, and the plan results, then gives you the exact steps to change in Google Ads. It changes nothing itself.
Campaigns filtered on the segments, catch-all asset groups, other labels, plan results.
The MCP tools get_product_targeting and compare_product_segments, and the CLI for plan results.
A verdict per campaign and the steps to take in Google Ads.
The skill
Full file: on GitHub or at /.well-known/agent-skills/check-campaign-structure/SKILL.md.
pnpm dlx skills add product-metrics/skills \
--skill check-campaign-structureWhen an agent uses it
- “Is my Performance Max campaign filtered on your segments?”
- “Are my campaigns built on ProfitMetrics labels or on yours?”
- “What happened since I applied the campaign plan?”
Example conversation
You: Is PMax Shoes built on the segments?
Agent: get_product_targeting (campaign_name_contains: "Shoes")
Asset group "All products" filters on custom_label_3 (your own
margin bands), not on custom_label_0, where the segments go.
An "everything else" node serves Drainers next to Stars.
In Google Ads: split the asset group's listing groups on
custom_label_0, so you can increase priority on Stars and
lower it on Drainers. Tell me when it's done and I'll check.Example data.
Commands and tools it uses
| Step | CLI / MCP |
|---|---|
| Segment label | productmetrics feed-source-settings get (feed_source_settings.get) |
| Listing groups per asset group | MCP get_product_targeting |
| Segments against other labels | MCP compare_product_segments |
| Results per segment | MCP get_google_ads_report (level: "product_label") |
| Campaign plan results | productmetrics google-ads get-plan-results (google_ads.get_plan_results) |
In the app, no API: the campaign plan itself is on the Campaign plan page. In Google Ads, your step: every change to listing groups, asset groups, budgets and targets.