/mureo:_mureo-chatgpt-adsfrom mureo
Manages ChatGPT Ads via OpenAI's Advertiser API: read ad accounts, campaigns, ad groups, ads, performance insights, and change history; pause/activate, rename, reschedule, set budgets/bids/daily spending limits; create campaigns, ad groups, ads (always paused), archive, upload images, preview ads, search locations; manage custom audiences…
Ships in mureo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
PREREQUISITE: Read
../_mureo-shared/SKILL.mdfor auth, security rules, and output format — and specifically its Plugin platforms (third-party providers) section: ChatGPT Ads is served through the same provider path, so its honest scope applies. This file does not repeat it.
Before you diagnose or change anything: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and consult advisors (mureo_consult_advisor) before drawing conclusions or making a change.
Canonical platform key:
plugin:mureo-chatgpt-ads:chatgpt_ads. Use it verbatim wherever a mureo surface names a platform — STATE.jsonplatforms,mureo_state_upsert_campaign(platform="plugin:mureo-chatgpt-ads:chatgpt_ads"),mureo_state_platform_metrics_set,mureo_analytics_*. Joining on anything else (chatgpt,chatgpt_ads,openai) silently fails to join.
There is no
mureo chatgpt-ads …CLI command. Every operation below is an MCP tool (chatgpt_ads_*) — call it directly.
Call chatgpt_ads_account_get first. It returns the account's id, name,
status, timezone and currency_code. Every report is in that currency and
that time zone; say which account you read.
| Tool | Use it to |
|---|---|
chatgpt_ads_account_get | Confirm the account, its currency and time zone |
chatgpt_ads_campaigns_list | Find campaigns and their ids (name filter, include_serving_issues, limit default 50) |
chatgpt_ads_campaigns_get | Read one campaign's objective, bidding type, budget, targeting and schedule; include_serving_issues=true to see why it is not delivering |
chatgpt_ads_ad_groups_list | List ad groups: one campaign's with campaign_id, otherwise the whole account's |
chatgpt_ads_ad_groups_get | Read one ad group's bid settings and serving issues |
chatgpt_ads_ads_list | Find ads, optionally within one ad group; check review status across ads |
chatgpt_ads_ads_get | See why one ad was rejected or is not serving, and what its creative says |
chatgpt_ads_insights_report | Performance for a period |
chatgpt_ads_change_history_list | Who changed what, before explaining a performance shift |
chatgpt_ads_account_spend_limits_get | Read the account's spending limits, its daily rule and revision (invoice-billed accounts only) |
chatgpt_ads_ads_preview | Show how an ad renders: an HTML iframe snippet that expires after 24 hours (not for a draft ad). It changes no campaign, ad group or ad (the platform renders and saves an expiring preview snapshot), which is why it is treated as a read |
chatgpt_ads_locations_search | Find location ids for campaign targeting by name (query, limit default 20, at most 100) |
Lists follow the API's cursor until limit rows are collected (at most 1000)
and come back as one array; there is no cursor to pass back.
period: today, yesterday, last_7d, last_14d, last_30d
(default), last_90d, this_month, last_month, or
YYYY-MM-DD..YYYY-MM-DD (inclusive). last_Nd ends yesterday. Periods
resolve in the ad account's time zone, not the operator's. At most 365
days.campaign_id / ad_group_id / ad_id (none =
the whole account). level (account | campaign | ad_group | ad)
picks the row entity and must be at or below the scope; default campaign,
or the scope's own level for an ad group or ad.metrics: delivery impressions, clicks, spend, ctr, cpc, cpm
(the default set); conversion conversions, cpa, post_click_cvr,
order_created_attributed_sales, order_created_roas. Ask for conversion
metrics only over full days.time_granularity: none (default, one row per entity) or daily (one
row per entity per day).limit: default 1000, the maximum. Rows beyond it are dropped without
notice, so a daily report over many entities can come back short: when the
row count equals limit, narrow the scope or the period and ask again.attribution_window_days: 7, 14 or 30 for the click window; omitted, the
API default (30) applies.chatgpt_ads_change_history_list defaults to last_7d, which ends
yesterday (pass today for changes made today), and can be narrowed to one
campaign, ad group or ad. Read it before attributing a performance change to
the market.
Changes made on this account outside mureo are recorded into action_log by
mureo_external_changes_import, from the same audit log (at most 1,000
entries per pass, oldest first). A capped pass says truncated and its note
names the time it read through: run the import again, which continues from
the newest change imported, and if it stops at the same point, pass the
since the note gives rather than repeating the same call. The account id
recorded for this platform in STATE.json must be the id that
chatgpt_ads_account_get returns: when the key reads another account,
nothing is imported and the outcome is unavailable; when none is recorded,
the import runs unchecked and its notes say so. An account-level change such
as the daily spending limit is always imported as external, even when mureo
made it, and so is the entry for an entity mureo created (its record cannot
name an id that did not exist yet).
Every change follows _mureo-shared → Confirm Before Write Operations:
show the operator the current value (read it first), the new value and the
tool, and get explicit approval. Pass reason and expected as for any
mutating tool. Which STRATEGY.md caps read which amounts is below; a cap
that does not read an amount does not bound it.
| Tool | Use it to |
|---|---|
chatgpt_ads_campaigns_pause / _enable | Stop a campaign spending / make a paused one eligible to spend again |
chatgpt_ads_ad_groups_pause / _enable | The same for an ad group |
chatgpt_ads_ads_pause / _enable | The same for an ad |
chatgpt_ads_campaigns_update | Rename a campaign or change start_time / end_time (Unix seconds; null clears) |
chatgpt_ads_campaigns_update_budget | Set a campaign's budget |
chatgpt_ads_ad_groups_update | Rename an ad group |
chatgpt_ads_ad_groups_update_bid | Set an ad group's bidding_config |
chatgpt_ads_account_daily_spend_limit_set | Set the account's daily spending limit (amount_micros) |
chatgpt_ads_campaigns_update_budget reads
the campaign first (one more request) and answers "status": "refused",
"error": "budget_kind_change" (or budget_unreadable), changing nothing,
when the amounts sent differ from the ones the budget holds: send the same
keys (a daily budget stays daily). Relay that the budget type has to be
changed in Ads Manager.current_daily_budget and projected_total_daily_budget in
currency units, not micros (75.0 is 75.00) on every budget change, so
max_daily_budget_increase_pct and max_total_daily_budget can be checked;
without them those two caps are not checked. They are never sent to the
platform.billing_event_type (impression or click) is required. With
impression billing the bid is per impression, not per thousand: CPM / 1000.
Omitting both strategy and max_bid_micros selects automatic bidding,
which reads back as automated_bid or, on a clicks campaign, as
maximize_clicks. A fixed bid is sent as strategy fixed_bid with
max_bid_micros; on click billing it reads back as target_strategy
target_cpc with target_micros. max_cpc_bid_per_ad_group and
max_bid_amount_per_ad_set read max_bid_micros only: audience
multipliers (up to 10x) and the strategies without a bid are not bounded
by them, and with impression billing the amount
is per impression (CPM = amount × 1000). The campaign budget is what bounds
spend; say so when a change raises multipliers or switches strategy.revision first; with more than one daily rule it answers
"status": "refused", "error": "multiple_daily_spend_limits" and changes
nothing: relay that the limits have to be edited in Ads Manager. A
decrease below the spend already counted today is rejected.
max_daily_budget_per_campaign also holds this account-wide amount.STATE.json in the working directory,
each change lands in action_log with a reversal that rollback_apply
can run (pause ↔ enable, or the same tool with the prior values). No
reversal is recorded when the prior state could not be read, when a prior
value would fail the tool's own check (a budget, bidding config or ad group
name is restored whole or not at all; a campaign update leaves such a field
out and says so), or when the change was a no-op (pausing a campaign that
was not active). An account-limit
change names no campaign, ad group or ad. Creates, archives and uploads
are recorded with no reversal (see below).mureo_learning_reset_preflight answers
unknown for these tools; do not claim a change will or will not reset
learning.| Tool | Use it to |
|---|---|
chatgpt_ads_campaigns_create | Create a campaign (name, budget, bidding_type; optional targeting, schedule, conversion event settings) |
chatgpt_ads_ad_groups_create | Create an ad group in a campaign (campaign_id, name, bidding_config; optional context_hints) |
chatgpt_ads_images_upload_file | Upload a local JPEG, PNG or WebP image (at least 640x640, at most 30MB); its content must be identified as the format its extension names, and the bytes checked are the bytes sent. Its file_id goes into creative.file_id. Not retried on a 5xx or a transport error |
chatgpt_ads_ads_create | Create an ad in an ad group (ad_group_id, name, creative: a single-image chat card) |
chatgpt_ads_campaigns_archive / chatgpt_ads_ad_groups_archive / chatgpt_ads_ads_archive | Archive an entity, irreversibly |
status argument; nothing created
can spend until the operator approves the matching *_enable call. Show
the full object (name, budget, bidding, targeting, creative) before the
create, as for any change.budget holds exactly one of daily_spend_limit_micros or
lifetime_spend_limit_micros. Pass projected_total_daily_budget
(currency units) so max_total_daily_budget can be checked.
max_daily_budget_per_campaign does not bound a lifetime budget; only
max_lifetime_budget_per_campaign does.countries,
1000 audience ids, 1000 conversion_event_setting_ids, 255 characters per
descriptive include field, and 1 to 1000 characters per context_hints
item. target_url needs a host and takes no user:password@ and no
backslash.bidding_type cannot be changed later. impressions pairs with
impression billing and fixed_bid; clicks with click billing and
fixed_bid or maximize_clicks; conversions with click billing and
fixed_bid or maximize_conversions and exactly one conversion event
setting. The maximize strategies need a daily budget. The platform enforces
this; say so before the operator picks one.in_review, then approved or
rejected); read the outcome with chatgpt_ads_ads_get.repeat the call with idempotency_key="...", repeat the same call with
that key and the same arguments: when the platform can see the earlier
create it returns that entity instead of creating a second one. If that
repeat fails too, list by name (chatgpt_ads_campaigns_list,
chatgpt_ads_ad_groups_list or chatgpt_ads_ads_list with name) before
creating with a new key. Do not repeat a create without the key.rollback_apply cannot undo a create or an archive. Undo a
create by leaving it paused, or archive it once the operator confirms.
Archiving cannot be reversed on the platform: prefer pausing, and say so
before asking for approval. Archiving a campaign does not archive its ad
groups and ads: they keep their status and are archived one by one.
Whether archiving an ad group archives its ads is not documented.| Tool | Use it to |
|---|---|
chatgpt_ads_audiences_list / chatgpt_ads_audiences_get | Find audiences (intended_use filter) and read one's status and size (audience_id) |
chatgpt_ads_audiences_create | Create an empty audience (name, optional description) |
chatgpt_ads_audiences_members_add / _remove | Add or remove members from a local file (audience_id, file_path, identifier_type) |
chatgpt_ads_audiences_operations_get | Poll an add or remove until its status is no longer processing |
.txt or .csv
file (at most 2 MiB), one identifier per line, no header, every line of the
identifier_type named: email and phone (E.164 with + and country
code) are hashed with SHA-256 on the machine; email_sha256 and
phone_number_sha256 are sent as given; gaid is sent unhashed. Never
read, quote or summarise the file's lines in the conversation.mailto:, brackets or invisible
characters, a dotted domain); for non-ASCII addresses the operator hashes
them and passes email_sha256. A phone written +44 (0)20 ... is invalid:
drop the bracketed zero.repeat the call with idempotency_key="...", repeat it with that key,
the same arguments and the same file. An audience create has no key: list
audiences before creating another.succeeded is not a match count. It means the operation finished; a
remove from an opt-out list removes nobody whose address was spelled
differently when it was uploaded. Say so when reporting a remove.rollback_apply cannot undo an add or remove: removing
what was added would also drop members who were there before.destructiveHint, like an archive) and can take
an audience below the 25,000 matched users inclusion and bid multipliers
need; say so before asking for approval.| Tool | Use it to |
|---|---|
chatgpt_ads_pixels_list / chatgpt_ads_pixels_create | Find or create a web pixel (name) |
chatgpt_ads_conversion_events_list | Find conversion event settings and their ids |
chatgpt_ads_conversion_events_create | Create an event setting (name, event_type, source_id; custom_event_name when event_type is custom; always the documented 30-day click window) |
chatgpt_ads_conversions_report | Conversion totals, click- and view-through counts, sales and per-event details for a period |
source_id is the pixel's id, not its pixel_id (that one
initialises the JavaScript Pixel). An answer Client data source not found
means source_id is not a pixel of this account: list the pixels again.feature_not_enabled on the pixel list or create means conversions are
not enabled for the account; relay it, do not retry. A 404 on event
settings is an ordinary API error:.period, level, time_granularity and
attribution_window_days as chatgpt_ads_insights_report does, and needs
entity_ids (1 to 100) unless group_by_entity is false. There is no
pagination: more than 2,000 rows is refused, so narrow the ids or the
period. Use chatgpt_ads_insights_report for conversions next to spend.| Value | Unit |
|---|---|
| Budgets and bid amounts in campaign / ad group objects, spending limits, and every amount a change tool takes | micros of the account currency: 1,000,000 = 1 unit (an amount of 50000000 is 50.00) |
Insights spend, cpc, cpm | major currency units (12.50 = 12.50) |
Insights ctr | a ratio |
Convert micros before comparing a budget with spend, and never convert insights values a second time.
Impressions and clicks can arrive within minutes; spend, CPC and CPM reflect finalized activity and can arrive later; conversions take at least a day.
today and this_month figures provisional, and do not compare a
partial day or month with a complete one.cpc / cpm; dividing the latest spend by the latest
clicks gives a different, wrong number.| Result | What it means | Tell the operator |
|---|---|---|
"status": "auth_error", "auth_cause": "no_credentials" | No ChatGPT Ads API key is configured | Create an Ads API key on the Settings page in Ads Manager for their own ad account, then paste it in the ChatGPT Ads tab of mureo configure (or set CHATGPT_ADS_API_KEY). No restart is needed |
"status": "auth_error", "auth_cause": "token_invalid" | A key is configured and the API rejected it (wrong, revoked, or without access to the account) | Check the key in Ads Manager, issue a new one if needed, and save it in the same tab |
"status": "error", "error": "feature_not_enabled" | The account does not have that feature enabled | Relay detail as-is and say the feature has to be enabled for the account on the platform's side; mureo cannot enable it. Do not retry unchanged |
Text starting API error: | Any other platform error, already retried where a retry could help (429 / 5xx on reads, 429 on changes) | Quote the message; for a 429 suggest waiting and narrowing the request |
Text ending The change may have been applied; check the account before retrying. | A change ended in a 5xx, an unreadable success answer, a transport error or the deadline, after the request may have reached the platform | Read the entity with its *_get tool (or list audiences, pixels or event settings after a create without a key) and report what it shows; never repeat the change blind |
Text ending repeat the call with idempotency_key="<key>" and the same arguments: ... | A create ended the same way; the platform may hold the new entity | Repeat the create with that idempotency_key and unchanged arguments after the operator agrees; if that fails too, list by name before creating with a new key |
Text ending repeat the call with idempotency_key="<key>", the same arguments and the same file: ... | An audience add or remove ended the same way; the operation may have been accepted | Repeat it with that key, the same arguments and the same file after the operator agrees |
An auth_error is not data: never render detail where a metric belongs and
never read the missing numbers as zero. Mark ChatGPT Ads as not read with
its auth_cause, and keep going with the other platforms.
A ValueError means the call itself was malformed (an unknown period, two
scope ids, a level above the scope, an unknown metric, an image of another
type, not identified as its extension's format, or over 30MB; an identifier
file with an invalid line or too many identifiers). A FileNotFoundError
means the image or identifier file path does not exist. Fix the arguments;
nothing was sent to the API.
action_log. A change tool that fails is not
recorded either; a change recorded without a reversal has to be undone by
hand with the matching change tool.MUREO_DISABLE_CHATGPT_ADS=1;
the chatgpt_ads_* tools are then absent from the session. Report the
platform as not available rather than guessing.instructions carry a ChatGPT Ads delivery-model line
(auction-set CPC, billing by the ad group's billing event, micros,
conversion delay). Follow it and do not carry over another platform's
auction or bidding concepts.docs/chatgpt-ads.md.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub logly/mureo --plugin mureo30 skills in this plugin
/ad-fatigue-checkDetect creative fatigue across active ads — rising frequency, declining CTR week-over-week, and CPM drift — score each ad FATIGUED / WATCH / FRESH, and hand the evidence to a creative refresh. Use when the user asks whether creatives are worn out, why CTR is falling, if frequency is too high, when to rotate or refresh ads, or requests クリエイティブ疲弊チェック / 広告の疲弊を確認 / フリークエンシーが高い / CTRが落ちてきた / そろそろ差し替え時か. Reads active ads per platform, applies documented fatigue thresholds with noise guards, and routes fatigued ads to /creative-generate or /creative-refresh./audience-reviewAudit who your ads actually target and where they run, compare it against the STRATEGY.md Persona, and surface exclusions, bid adjustments, lookalikes, and placement pruning tied to that Persona. Use when the user asks to review targeting, audiences, demographics, placements, or device performance, to check whether spend matches the Persona, to find wasted placements (e.g. Audience Network with no conversions), or requests オーディエンスレビュー / 配置レビュー / ターゲティング見直し / ペルソナと配信のズレを確認 / 除外設定を提案して. Reads Persona + Target Audience from STRATEGY.md and drives the read-only targeting tools./budget-pacingMonth-to-date spend vs the monthly budget target, projected month-end landing, and pace alerts across all configured platforms. Use when the user asks about pacing, burn rate, whether they will overspend or underspend this month, monthly-budget tracking, landing/forecast, 'are we on budget', or requests 予算ペーシング / 着地予測 / 予算消化ペース. DISTINCT from /budget-rebalance (which reallocates budget between campaigns) — this manages total-spend trajectory toward a monthly target. Reads STRATEGY.md Guardrails / a Monthly Budget section and STATE.json.Other plugins' skills for the same job