Agency Client Health Monitor
One health check for every client, built from live data. The skill sorts the connected accounts into clients, pulls the same short set of numbers for each, and grades each client on seven checks with stated thresholds. Two more shapes sit on the same client map: a budget pacing board for the whole book, and an access and offboarding audit for one client. Every number in the report comes from a call in this run or from what the user pasted, and the report says which.
Before you start
The health shapes need the InsightfulPipe MCP connected with at least one client's sources. The budget pacing board and the access audit also run with no connection, from pasted budgets, spend and user lists (see their sections).
- Call
query_contextswithrequest="accounts"and no platform. That lists every connected source with itsworkspace_id,brand_id, account id andaccess_level(full,partialorread). - Build the client map from that list (Step 1 below) and ask the user to confirm the grouping before pulling anything.
- Call
query_contextswithrequest="actions_details"for each action below on each platform you will use, and follow the body shapes it returns. - Ask three things, and use the defaults if the user doesn't say:
- Shape: portfolio overview, churn-risk report, onboarding audit (one client), takeover audit (one ad account), budget pacing board (every client) or access and offboarding audit (one client). Default: portfolio overview.
- Per client, the result that matters (leads, sales, sign-ups) and a target cost per result if there is one. Default: each ad platform's own conversions, and no target.
- For a takeover audit: which account, and the date it was handed over.
- For the pacing board: where the monthly budgets live (a Google Sheet, a pasted table, or none) and each client's tolerance. Default: 10% either side of the budget.
- For the access audit: who should have access today, and who is leaving, if anyone.
Windows. CUR is the 30 days ending two days before today (GA4 and Search Console are still filling the last two days). PRI is the 30 days before CUR. State both date ranges at the top of every report.
Placeholders in the blocks. Dates are YYYY-MM-DD.
CUR_START,CUR_END: the first and last day ofCUR.PRI_START,PRI_END: the same forPRI.CUR_END_PLUS_1: the day after the window's last day, for the platforms whose end time is exclusive (Snapchat, X).TODAY: today's date.TODAY_MINUS_30: 30 days before today.START_Y,START_M,START_DandEND_Y,END_M,END_D(Microsoft Ads only): the year, month and day of the window's first and last day, written as plain numbers, for example2026,9,3.- In the
PRIrun, putPRI_START,PRI_ENDand the day afterPRI_END(which isCUR_START) where a block saysCUR_START,CUR_ENDandCUR_END_PLUS_1.
How to run the queries
Every read goes through query_data with the platform named in the body. Run the blocks for each client, on every account of that client, once for CUR (CUR_START to CUR_END) and once for PRI (PRI_START to PRI_END). A block with no CUR_START in it, or one that spans PRI_START to CUR_END, runs once. The Microsoft Ads blocks are the exception: submit and poll once per window. Skip a platform the client doesn't have.
- Money: Google Ads
_microsfields and Snapchatspenddivide by 1,000,000. Metaspendand LinkedIncostInUsdarrive as strings. Keep each client in its own currency, and say which. - Rates come from totals. Cost per result is summed spend ÷ summed results, never an average of daily or per-campaign rates.
- An empty result is a zero, not an error. Meta, LinkedIn, TikTok, Pinterest, X and OpenAI Ads return an empty list when nothing ran, and a Microsoft Ads report comes back with
data_csvnull. Record the account as idle. - Rate limits. When a call is refused with
rate_limit_exceeded, wait theretry_afterseconds and try again. Don't skip the source. - A source that needs reconnecting (a reconnect, expired-token or permission error) is broken. Keep going without it.
If a call fails for any other reason, keep going, mark that source unknown, and say which call failed and why. Never fill a gap with a guess.
Many clients. Each client costs one round of the blocks below. For more than ten clients, run them in batches of ten and say which clients each batch covers.
Step 1: the client map
Group every source in the accounts list into clients. Use the account names, the ids that link accounts together (a LinkedIn ad account's organization_id, a Meta ad account's linked_fb_page_ids), and the website domain on GA4, Search Console and Bing. A brand in InsightfulPipe can hold several businesses, so never assume a brand is one client.
| Status | Meaning |
|---|---|
| active | returned data in CUR or PRI |
| idle | the calls worked but show nothing in either window: no spend, no clicks, no sessions |
| broken | the call failed because the connection needs attention |
| unknown | the call failed for another reason |
| left out | the owner is unclear, or it is a test or placeholder account; listed without its name |
Also record each source's access_level. read on an ad account means the agency can see it but can't change it; partial means some changes are allowed and others aren't (the row lists which). This is the InsightfulPipe connection's own level, not a list of who else can get in: that is the access audit's job.
Before the pull, show the grouping as one table per client (platform, account, access) and ask the user to confirm it. Fill in each status after the pull. When an account's owner is unclear, ask; never guess. Use each client's name as the user gives it, and in anything that will be shared outside the agency, call clients "Client A", "Client B" and so on unless the user says otherwise.
Organic social pages, video channels, business listings and email tools are not graded by this skill. Name them in one line under the map as not graded, so nobody reads them as checked.
Step 2: the health pull
Paid media
Google Ads (account totals and auto-tagging, then the counted conversion actions, then recent changes):
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT customer.currency_code, customer.auto_tagging_enabled, metrics.cost_micros, metrics.impressions, metrics.clicks, metrics.conversions FROM customer WHERE segments.date BETWEEN 'CUR_START' AND 'CUR_END'"}
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT conversion_action.name, conversion_action.category, conversion_action.counting_type, conversion_action.include_in_conversions_metric FROM conversion_action WHERE conversion_action.status = 'ENABLED'"}
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT change_status.resource_type, change_status.resource_status, change_status.last_change_date_time FROM change_status WHERE change_status.last_change_date_time DURING LAST_30_DAYS ORDER BY change_status.last_change_date_time DESC LIMIT 1000"}
Never grade a manager account; grade the client accounts under it. change_status holds one row per changed item with its latest change time, so it shows when someone last worked in the account, not every edit. It never names the person. It caps at 1,000 rows: when it returns exactly 1,000, write the 30-day change count as "1,000 or more" and count by type only within those rows (they are the newest). resource_status is only ADDED, CHANGED or REMOVED; it never says whether a campaign was paused or enabled.
Meta (account status, then account totals, then the activity log):
{"platform": "facebook-ads", "action": "get_adaccount", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"fields": ["name", "account_status", "disable_reason", "currency"]}
{"platform": "facebook-ads", "action": "get_insights_adaccount", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"level": "account", "time_range": {"since": "CUR_START", "until": "CUR_END"},
"fields": ["account_currency", "spend", "impressions", "clicks", "inline_link_clicks", "actions"]}
{"platform": "facebook-ads", "action": "get_activities_adaccount", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"since": "TODAY_MINUS_30", "until": "TODAY"}
account_status 1 is active. Anything else (disabled, unsettled payment, in review, closed) stops delivery: grade it under H1. Meta's actions is a list of {action_type, value}; count only the action types that match the client's result (for example lead, complete_registration, purchase), never every action type. This call returns each change's event_type and event_time, not who made it; count the changes and use the dates.
LinkedIn Ads:
{"platform": "linkedin-ads", "action": "get_account_analytics", "ad_account_id": "<LINKEDIN_AD_ACCOUNT_ID>",
"start_date": "CUR_START", "end_date": "CUR_END", "time_granularity": "ALL",
"fields": ["impressions", "clicks", "costInUsd", "externalWebsiteConversions", "oneClickLeads"]}
A result is externalWebsiteConversions plus oneClickLeads (lead-form leads).
TikTok Ads (copy the action value actions_details gives for integrated_report_basic; rows sit in data.data.list):
{"platform": "tiktok-ads", "action": "report/integrated/get/", "method": "GET",
"account_id": "<TIKTOK_ADVERTISER_ID>", "advertiser_id": "<TIKTOK_ADVERTISER_ID>",
"service_type": "AUCTION", "report_type": "BASIC", "data_level": "AUCTION_ADVERTISER",
"start_date": "CUR_START", "end_date": "CUR_END",
"dimensions": ["advertiser_id"], "metrics": ["spend", "impressions", "clicks", "conversion"]}
Microsoft Ads (submit, then poll with the ReportRequestId the first call returns; Year, Month and Day are numbers, not strings):
{"platform": "microsoft-ads", "action": "submit_account_performance_report", "account_id": "<MICROSOFT_ADS_ID>",
"columns": ["AccountName", "CurrencyCode", "Impressions", "Clicks", "Spend", "Conversions"], "aggregation": "Summary",
"time": {"CustomDateRangeStart": {"Year": START_Y, "Month": START_M, "Day": START_D}, "CustomDateRangeEnd": {"Year": END_Y, "Month": END_M, "Day": END_D},
"ReportTimeZone": "PacificTimeUSCanadaTijuana"}}
{"platform": "microsoft-ads", "action": "poll_report_status", "account_id": "<MICROSOFT_ADS_ID>", "report_request_id": "<REPORT_REQUEST_ID>"}
When report_status is Success, the rows are CSV in data_csv; null means no rows in the window. If it isn't Success yet, wait a few seconds and poll again.
Pinterest Ads (analytics go back 90 days only):
{"platform": "pinterest-ads", "action": "get_ad_account_analytics", "ad_account_id": "<PINTEREST_AD_ACCOUNT_ID>",
"start_date": "CUR_START", "end_date": "CUR_END", "granularity": "TOTAL",
"columns": ["SPEND_IN_DOLLAR", "IMPRESSION_1", "CLICKTHROUGH_1", "TOTAL_CONVERSIONS"]}
Snapchat Ads (the account level returns spend only):
{"platform": "snapchat-ads", "action": "get_adaccount_stats", "ad_account_id": "<SNAPCHAT_AD_ACCOUNT_ID>",
"fields": ["spend"], "granularity": "TOTAL",
"start_time": "CUR_STARTT00:00:00.000Z", "end_time": "CUR_END_PLUS_1T00:00:00.000Z"}
X Ads (which campaigns delivered; an empty list means none did):
{"platform": "x-ads", "action": "get_active_entities", "account_id": "<X_ADS_ACCOUNT_ID>", "entity": "CAMPAIGN",
"start_time": "CUR_STARTT00:00:00Z", "end_time": "CUR_END_PLUS_1T00:00:00Z"}
OpenAI Ads:
{"platform": "openai-ads", "action": "get_ad_account_insights", "ad_account_id": "<OPENAI_AD_ACCOUNT_ID>",
"time_ranges": [{"type": "date_range", "since": "CUR_START", "until": "CUR_END"}], "time_granularity": "none",
"fields": ["ad_account.impressions", "ad_account.clicks", "ad_account.spend"]}
When Snapchat, X or OpenAI Ads show delivery, their account-level reads carry no results; grade them on spend only and say so.
Website and search
GA4 (totals, then sessions by channel, then a daily line across both windows):
{"platform": "google-analytics", "action": "get_report", "property_id": "<GA4_PROPERTY>",
"metrics": ["sessions", "keyEvents"], "start_date": "CUR_START", "end_date": "CUR_END"}
{"platform": "google-analytics", "action": "get_report", "property_id": "<GA4_PROPERTY>",
"dimensions": ["sessionDefaultChannelGroup"], "metrics": ["sessions", "keyEvents"],
"start_date": "CUR_START", "end_date": "CUR_END"}
{"platform": "google-analytics", "action": "get_report", "property_id": "<GA4_PROPERTY>",
"dimensions": ["date"], "metrics": ["sessions"], "start_date": "PRI_START", "end_date": "CUR_END"}
Sort the daily line by date and fill missing days with 0. Two readings of it feed H2:
- A break: 3 or more days in a row under 20% of the
PRIdaily median. Use it only when that median is 10 sessions or more; on a small site, days with no visits are normal. - A step up: when the last days of
CURrun above 5 times thePRIdaily median and above 20 sessions a day, the tag was probably fixed or added on the first of those days. Say so, with the date. The H2 ratio still covers the whole window, so rerun 14 days later before calling tracking fixed.
Search Console (run on every site of the client; a domain property sc-domain:example.com already includes https://example.com/, so count only the domain property when both exist):
{"platform": "google-search-console", "action": "search_analytics", "site_url": "<GSC_SITE>",
"dimensions": ["date"], "start_date": "CUR_START", "end_date": "CUR_END", "row_limit": 500}
Search Console lags two to three days, so count the dates that came back and compare the windows on daily averages.
Bing (one call returns about six months of daily rows; dates are /Date(<epoch ms>)/):
{"platform": "bing-webmaster", "action": "get_rank_and_traffic_stats", "site_url": "<BING_SITE>"}
Keep only the rows inside each window and sum Clicks.
Extra calls for the onboarding audit
{"platform": "facebook-ads", "action": "get_pixels", "ad_account_id": "<META_AD_ACCOUNT_ID>"}
{"platform": "google-analytics", "action": "list_key_events", "property_id": "<GA4_PROPERTY>"}
{"platform": "google-search-console", "action": "sitemaps_list", "site_url": "<GSC_SITE>"}
An empty pixel list means the ad account has no pixel: fix that first if the client runs conversion campaigns. An empty sitemap list means none was submitted. In sitemaps_list, read submitted, errors, warnings and lastDownloaded, and ignore indexed: Google has deprecated it.
Extra calls for the takeover audit
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT campaign.id, campaign.name, campaign.status, campaign.bidding_strategy_type, campaign_budget.amount_micros, metrics.cost_micros, metrics.clicks, metrics.conversions FROM campaign WHERE segments.date BETWEEN 'CUR_START' AND 'CUR_END' AND metrics.impressions > 0"}
{"platform": "facebook-ads", "action": "get_insights_adaccount", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"level": "campaign", "time_range": {"since": "CUR_START", "until": "CUR_END"},
"fields": ["campaign_name", "objective", "spend", "inline_link_clicks", "actions"]}
Step 3: the seven health checks
Grade each check green, amber, red, or not graded (no source for it, or every number under the floor). A check that couldn't run because a call failed is unknown. All changes compare CUR with PRI.
Floors. A change is computed only when the larger of the two windows clears the floor: $100 of spend, 10 results, 100 organic clicks. Below the floor, show both numbers and write "too small to call".
| Check | Red | Amber | Source |
|---|---|---|---|
| H1. Connections and access | any source broken, or a Meta ad account whose account_status isn't 1 |
an ad account the agency manages has read access only |
accounts list, get_adaccount |
| H2. Tracking | Google Ads auto-tagging off, or no enabled action with include_in_conversions_metric true; a break in the GA4 daily line (see GA4 above); GA4 Organic Search sessions ÷ (Search Console + Bing clicks) below 0.3, when those clicks are 100 or more |
that ratio between 0.3 and 0.6; a counted lead action (calls, forms, sign-ups) that counts MANY_PER_CLICK, which counts one person's repeat calls or forms as extra results; an ad account with $100+ spend and 0 results in both windows; GA4 with 100+ sessions and 0 key events in CUR |
customer, conversion_action, GA4, Search Console, Bing |
| H3. Results | results down 40% or more | down 20% to 40% | each ad platform's results, or GA4 key events when the user named them and H2 has no GA4 red |
| H4. Cost per result | up 40% or more, or above 1.5x the target | up 20% to 40%, or above 1.2x the target | spend ÷ results, both windows at 10+ results |
| H5. Spend | spend went to 0 from $100+, or fell 60% or more | fell 30% to 60%; or rose 50% or more while H4 is amber or red | the client's ad spend, all platforms added |
| H6. Organic demand | organic clicks down 40% or more | down 20% to 40% | Search Console + Bing, daily averages |
| H7. Account activity | no change in 30 days on an ad account that spent $100+ in CUR |
no change in the last 14 days on such an account | change_status, Meta activity log |
How to apply them:
- H3 and H4 go platform by platform. Never add results from different platforms together: each platform claims credit for the same people. The check takes the worst platform above the floor, and names it.
- H5 adds spend across platforms for one client, because spend doesn't overlap. Explain a red or amber H5 with what the data shows: an account that stopped delivering, a Meta status, or campaign changes in
change_statusnear the drop.change_statusshows that a campaign changed, not how: to say campaigns were paused, run the takeover campaign table for both windows and readcampaign.status(their status now). If the data shows no cause, say "cause not visible: ask the client whether budget changed". - H6 is the client's market, not the agency's work. Report it, but don't blame the agency for it.
- H7 measures attention. It says nothing about whether the changes were good, and automated rules and scripts count as changes too, so a green H7 doesn't prove a person looked.
Step 4: score and churn risk
Health score: start at 100. Each red costs 15 points and each amber 5. Unknown and not graded cost nothing but are listed. Rating: 80 or above is healthy, 60 to 79 is watch, below 60 is at risk, and a client with any red check is watch at best, whatever the score. Print the math.
Churn risk uses the checks a client feels: H2 (they can't see results), H3, H4, H5 (they cut budget) and H7 (nobody is working on it).
- High: two or more of these are red, or H3 is red while H5 is amber or red.
- Medium: one of these is red, or three or more checks of any kind are amber.
- Low: anything else.
The data can't see the strongest churn signals: a contract end date, a new contact on the client side, slow replies, late invoices, a request for a call about "strategy". Ask the account manager about them, list them as "not in the data", and raise the risk one level for each one they confirm, up to High. Never guess them.
Step 5: write the shape asked for
The four health shapes below start with the two date ranges, the currency of each client, and the client map (one line per client in the portfolio shapes). The budget pacing board and the access audit have their own sections after them.
Portfolio overview
- Header: clients graded, how many are healthy, watch and at risk, and the ad spend under management in
CUR. Add spend across clients only when they share a currency; never add results across clients. - Client table, worst score first: client, score, rating, churn risk, spend
CUR(change), main resultCUR(change), cost per result (change), top issue. - One card per client: each red and amber check with its numbers and the call behind them, then one line naming the green, not graded and unknown checks. End with up to three next actions, each tied to a check.
- Left out and not graded: the sources left out (count only, no names) and the kinds of source not graded.
Churn-risk report
Clients ranked by risk, then by score. For each: the risk level, the signals that set it (with numbers), the questions for the account manager from "not in the data", and a save plan of up to three actions that each answer one signal. Write the save plan so it can be said to the client: what went wrong, what changes this week, and the number it should move.
Onboarding audit (one client)
- Every connected source: platform, account, access level, status, and the last day with data (the last date in the GA4 daily line and the Search Console date rows; for ad accounts, whether there was spend in
CUR). - Setup checks: Google Ads auto-tagging, counted conversion actions, and any lead action that counts
MANY_PER_CLICK; the Meta pixel (an empty list means none) and, when there is one, itslast_fired_timefrom the fieldsactions_detailslists (warn when older than 7 days); GA4 key events set up (list_key_events) and recorded; Search Console sitemaps submitted, with their errors and warnings; Bing returning rows. - Missing sources: compare GA4 channels with what is connected. Paid Search sessions with no search ad account connected, Paid Social sessions with no social ad account, Email sessions with no email tool, or a website in GA4 with no Search Console site: each is a source to ask the client for.
- Baseline: the health pull's numbers for
CURandPRI, so later reports have a starting point. - Verdict: ready, fix first (the reds and ambers that block reporting), or missing access, with a two-week plan.
Takeover audit (one ad account)
- Freeze the baseline before changing anything: the account totals and the campaign table for
CURandPRI(spend, clicks, results, cost per result per campaign, budget and bidding). Tell the user to save it. - Tracking: the counted conversion actions or the pixel, with any red from H2.
- What the last team did: changes in 30 days by type (campaigns, ad groups, ads, keywords, budgets) and the date of the last one, from
change_status("1,000 or more" when it hits its cap) or the Meta activity log. Many changes in the last week before the handover can mean a rushed exit; none in 30 days means nobody was managing it. - Access: the
access_levelInsightfulPipe has, then run the access and offboarding audit below with the old agency as the leaver: on Google Ads it reads the users, pending invitations and manager links live, and on Meta the owning business and partners. Removing them is done by the user in each platform; this skill never removes anyone. - First 14 days: fix tracking first; change nothing else until two weeks of data are measured against the baseline, unless money is clearly wasted. Point to the full audit for the rest.
Budget pacing board (every client)
One board for the whole book: for each client and each ad platform, this month's spend against the budget, where the month will land, and what to change today. It uses the client map from Step 1 but none of the health checks.
What it needs
- Monthly budgets per client and platform. If the Google Sheets MCP server is connected and the agency keeps a pacing sheet, read it (blocks below). Otherwise take a pasted table. Map the columns with the user (client, platform, monthly budget, and a tolerance column if there is one) and never guess which column is which.
- A tolerance per client. Default: 10% either side of the budget. A tolerance column in the sheet, or a number the user gives for a client, overrides it for that client.
- A line with no budget anywhere can use an implied one, always labelled "implied": the sum of its campaigns' daily budgets times the days in the month (Google Ads and Meta only).
- Spend. Live from each connected ad account (below). With no connection, ask for each line's month-to-date spend and its spend over the last 7 full days; for dark campaigns, the last day each campaign spent. The math is the same.
Dates
D is the number of finished days this month (the 1st to yesterday, in the ad account's time zone), N the days in the month, and L = N - D the days left, counting today. Today is never counted as spend: it is still running. In the blocks, MTD_START is the 1st, YESTERDAY is yesterday and L7_START is the day 7 days before today.
The pull
Budget sheet (find the tab, read its column names, then the rows):
{"platform": "google-sheets", "action": "list_sheets", "spreadsheet_id": "<SPREADSHEET_ID>"}
{"platform": "google-sheets", "action": "get_sheet_peak", "spreadsheet_id": "<SPREADSHEET_ID>", "sheet_id": "<SHEET_ID>"}
{"platform": "google-sheets", "action": "query_sheet_data", "spreadsheet_id": "<SPREADSHEET_ID>", "sheet_id": "<SHEET_ID>",
"select": "<CLIENT_COLUMN>,<PLATFORM_COLUMN>,<BUDGET_COLUMN>"}
Column names are case-sensitive and come from get_sheet_peak. Add the tolerance column to select when the sheet has one. An empty values list means the tab has no rows: ask for the right tab.
Google Ads (one row per campaign per day with spend; a day with no spend comes back as a missing row, so a missing date is 0):
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT campaign.id, campaign.name, campaign.status, campaign_budget.id, campaign_budget.amount_micros, campaign_budget.explicitly_shared, campaign_budget.period, segments.date, metrics.cost_micros FROM campaign WHERE segments.date BETWEEN 'MTD_START' AND 'YESTERDAY' AND metrics.cost_micros > 0"}
Meta (one row per campaign per day, then where the budgets sit):
{"platform": "facebook-ads", "action": "get_insights_adaccount", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"level": "campaign", "time_range": {"since": "MTD_START", "until": "YESTERDAY"}, "time_increment": 1,
"fields": ["campaign_id", "campaign_name", "spend"]}
{"platform": "facebook-ads", "action": "get_campaigns", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"fields": ["id", "name", "effective_status", "daily_budget", "lifetime_budget", "stop_time"]}
{"platform": "facebook-ads", "action": "get_adsets", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"fields": ["id", "name", "campaign_id", "effective_status", "daily_budget", "lifetime_budget", "end_time"]}
Each insights row carries its day in date_start; an empty list means nothing spent. Meta budgets arrive in cents: divide by 100. A budget on the campaign is shared by its ad sets; with none there, each ad set holds its own. A value of 0 means no budget of that kind.
The other ad platforms: run their Step 2 account-level block twice, once for MTD_START to YESTERDAY and once for L7_START to YESTERDAY (on Snapchat and X the end is the day after, which is today). LinkedIn, TikTok, Microsoft, Pinterest, Snapchat and OpenAI Ads return spend. The X Ads block shows which campaigns delivered, not spend: ask for X spend pasted. These lines are graded on the month total only, with no campaign detail.
The math (per client and platform line)
- Pro-rated budget = budget ×
D÷N. Pace = month-to-date spend ÷ pro-rated budget. - Run rate = spend over the last 7 full days ÷ 7. Before the 8th, use month-to-date spend ÷
D, and mark the line "early month, low confidence". - Projection = month-to-date spend + run rate ×
L. Landing = projection ÷ budget. - Daily budget needed = (budget − month-to-date spend) ÷
L. When the budget is already spent, it is 0: write "budget spent: pause, or agree an increase with the client".
| Status | When (tolerance T) |
|---|---|
| green | landing within T of the budget |
| amber | landing between T and 2T away, over or under |
| red | landing more than 2T away, or month-to-date spend already over the month's budget |
Don't call a normal heavy day overspend. Each platform lets a day run over the daily budget and evens it out:
- Google Ads: a campaign can spend up to twice its average daily budget on a day, and is charged no more than 30.4 times that average over a month. A day at 2x is normal; flag only a day above 2x (usually a budget raised during the day) or a month heading past 30.4x.
- Meta: a daily budget can be beaten by up to 75% on a day, but never by more than 7 times the daily budget across a calendar week. A lifetime budget is never exceeded.
- Every other platform: grade the month total only, never a single day.
Dark campaigns. A campaign that spent this month, is still on (campaign.status ENABLED on Google Ads, effective_status ACTIVE on Meta) and spent nothing on the last 2 full days. Name it with the last day it spent, and ask why before calling it a fault: an end date, a disapproval or a failed payment all look the same here.
Sizing a change.
- Underpacing: more budget only helps a campaign whose run rate is at least 85% of its daily budget, because only those are held back by the budget. Split the line's daily budget needed across those campaigns in proportion to their run rate. For the rest, say the limit is elsewhere (bids, targeting, ads or audience) and point to the platform audit.
- Overpacing: cut each campaign's daily budget in proportion to its share of the run rate, so the line lands on the daily budget needed.
- Google Ads shared budgets (
explicitly_sharedtrue): change the shared budget once, never campaign by campaign. Settingbudget_amounton one campaign rewrites the shared budget for every campaign on it. - Three or fewer days left: a new budget can still run to 2 times on Google Ads or 1.75 times on Meta on one day. Give that worst case beside the plan.
The board
- Header: the date, day
DofN, the clients covered, spend under management this month (one total per currency) and the count of red, amber and green lines. Never add spend across currencies. - Fix today (up to 10 rows): dark campaigns first, then red lines by money at stake (the gap between projection and budget), then amber lines. Each row names the client, the platform, the gap and the change.
- Board table: client, platform, budget (and whether it is implied), tolerance, month-to-date spend, pace, run rate, projection, landing, status, daily budget needed.
- Campaign notes under each red or amber Google Ads or Meta line: budget-limited campaigns, dark campaigns, and campaigns held back by something other than the budget.
- Drafted changes: each Google Ads or Meta budget change as the exact call (see "Fixes this skill can run"), marked "not run". For the other platforms, the number to set by hand.
Access and offboarding audit (one client)
Who can get into a client's marketing accounts, who shouldn't be there, and the clean-up list when a person or an agency leaves. Run it for one client, or for the agency's own accounts.
What it needs
- The roster: who should have access today, with their role (agency staff, client staff, other agencies, freelancers). Without it nobody can be called unknown, so ask for it first.
- For offboarding: who is leaving (a person, or an agency with its email domain and its business or manager account ids) and who takes over each role they hold.
- The user lists the connector can't read, pasted or as screenshots: GA4 access management (account and property), Tag Manager user management (account and container), Search Console users and permissions, Meta Business settings (people, partners, and each ad account's assigned people), LinkedIn Campaign Manager account access (and the Page admins when LinkedIn Pages isn't connected), TikTok Business Center members and partners, Shopify users and collaborators, Klaviyo users, Merchant Center users when it isn't connected, and any other tool the client runs. With no connection at all, the whole audit runs on these pastes.
Live reads
Google Ads (the people with access, pending invitations, and the manager accounts linked to the account):
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT customer_user_access.user_id, customer_user_access.email_address, customer_user_access.access_role, customer_user_access.access_creation_date_time, customer_user_access.inviter_user_email_address FROM customer_user_access"}
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT customer_user_access_invitation.email_address, customer_user_access_invitation.access_role, customer_user_access_invitation.invitation_status, customer_user_access_invitation.creation_date_time FROM customer_user_access_invitation"}
{"platform": "google-ads", "action": "gaql", "account_id": "<GOOGLE_ADS_ID>",
"query": "SELECT customer_manager_link.manager_customer, customer_manager_link.manager_link_id, customer_manager_link.status FROM customer_manager_link"}
access_role is ADMIN, STANDARD, READ_ONLY or EMAIL_ONLY. The API gives no last sign-in date and no two-step verification status. A user with no inviter_user_email_address was there from the start, usually the original owner. customer_manager_link returns the manager account's id and status, not its name: match each id against the agency's own manager accounts in the accounts list and the roster, and ask the user to name the rest from the Managers tab of the account's access settings. A PENDING link nobody expected is an attempt to get in.
Meta (who owns the ad account, and any agency or partner on it; not the people):
{"platform": "facebook-ads", "action": "get_adaccount", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"fields": ["name", "account_status", "business", "owner", "partner", "media_agency", "end_advertiser"]}
business is the business portfolio that owns the account, with its name; owner is the owning id. partner and media_agency appear only when another business holds a role. If the owner isn't the client's own business, flag it: whoever owns the account can remove everyone else. The people come from the pasted Business settings list.
LinkedIn Page admins and Merchant Center users (untested until connected: follow the body actions_details returns, and take the pasted list if the call fails):
{"platform": "linkedin-pages", "action": "fetch_organization_admins", "org_id": "<LINKEDIN_ORG_ID>"}
{"platform": "google-merchant-center", "action": "list_users", "merchant_id": "<MERCHANT_ID>"}
Everything else comes from the pastes. Never write as if the connector read a list it didn't.
Rank the risks (worst first)
- Admin rights held by someone not on the roster: a former employee, a former agency or a stranger with the top role on a platform (Google Ads
ADMIN, full control of a Meta business or ad account, GA4 administrator, Tag Manager publish or admin, a Search Console owner, a Shopify owner or full-permission staff), or a manager link the roster doesn't explain. - A single owner: only one person holds the top role on a platform, or the only one is the person leaving. If they lose their login or leave, nobody can add users or change billing.
- Anyone else not on the roster, at a lower role: old freelancers, past agencies with read or standard access, unexplained pending invitations.
- More access than the job needs, for example a reporting contact with admin rights.
- No two-step verification: visible only in pasted lists or screenshots. Where it isn't shown, write "not visible" rather than passing it.
- Stale invitations: pending user invitations or manager link requests more than 30 days old.
The report
- Access map: one table per platform with the person or business, role, roster status (current, former or unknown), where the line came from (live call or paste) and the date added where known.
- Risks, ranked as above, each with the platform, the person's role and the fix.
- Offboarding checklist (when someone is leaving), platform by platform, in this order:
- Move every owner, admin and billing role the leaver holds to the named successor, and check the successor can sign in. Do this before removing anyone, or the account can end up with no owner.
- Remove the leaver's users and pending invitations.
- Remove their business as a partner or agency (Meta, TikTok Business Center) and unlink their manager account (Google Ads).
- On Search Console, also remove their verification token (the HTML file, meta tag or DNS record): an owner verified that way keeps access until it is gone.
- Change shared passwords and API keys, and check Tag Manager for tags or scripts the leaver hosts.
- Run this audit again and keep the result as the record.
- Coverage: which platforms were read live, which came from pastes, and which weren't checked.
The email addresses in the map stay in the chat. In anything shared outside the agency, replace them with a role label ("Agency admin 1", "Former agency user 2").
Go deeper
Point to the skill that handles each area in depth, if it is installed:
| Area | Skill |
|---|---|
| Full Google Ads audit after a takeover | google-ads-account-audit |
| Full Meta audit after a takeover | facebook-ads-account-auditor |
| The client's monthly report | marketing-performance-report (if installed) |
| Tracking problems | conversion-tracking-auditor (if installed) |
| Budget split across a client's channels | cross-platform-budget-allocator |
| Day-by-day pacing inside one Google Ads account | spend-pacing-monitor |
| Deeper security checks inside Google Ads or Meta after an access audit | google-ads-account-audit, facebook-ads-account-auditor |
If the skill isn't installed, describe the next step in plain words.
Fixes this skill can run
The health shapes and the access audit change nothing. The budget pacing board can apply the budget changes it drafted on Google Ads and Meta, only after the user confirms each one, on a source with full or partial access that allows it:
Google Ads (a new daily budget in the account's currency; on a shared budget it changes every campaign that uses it):
{"platform": "google-ads", "action": "update_campaign", "account_id": "<GOOGLE_ADS_ID>",
"campaign_id": "<CAMPAIGN_ID>", "budget_amount": <NEW_DAILY_BUDGET>}
Meta (a new daily budget in cents, on the campaign when the campaign holds the budget, otherwise on the ad set):
{"platform": "facebook-ads", "action": "update_campaign", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"campaign_id": "<CAMPAIGN_ID>", "daily_budget": <NEW_DAILY_BUDGET_CENTS>}
{"platform": "facebook-ads", "action": "update_adset", "ad_account_id": "<META_AD_ACCOUNT_ID>",
"adset_id": "<ADSET_ID>", "daily_budget": <NEW_DAILY_BUDGET_CENTS>}
Before each call, show the old and new budget, the line's new projection, and the client. After it, read the budget back (the pacing pull) and report it. Pausing, ending campaigns and every other platform stay with the user. The access audit never adds or removes anyone, not even on Merchant Center, wh
…(truncated)