Skip to content

Target CPA after 50 conversions in 7 days; Max Conversions budget 10-15× CPA at setup - #32

Merged
amitl-levi merged 4 commits into
mainfrom
fix/bid-budget-rules
Nov 26, 2026
Merged

amitl-levi merged 4 commits into
mainfrom
fix/bid-budget-rules

Conversation

@amitl-levi

Copy link
Copy Markdown
Collaborator

What

Brings the plugin's Target CPA timing and Maximize Conversions budget guidance in line with current Realize guidance.

  • Target CPA waits for 50 conversions over a 7-day period, not 3-4 days. Elapsed days alone are not the test: a low-volume campaign can run for days without enough data. On a new campaign, the plugin offers Maximize Conversions, not Target CPA.
  • The first Target CPA starts ~20% above the average post-click CPA over that window (was "within 10-20% of stable CPA" or "at or near current CPA"). Not based on the advertiser's other channels; lowered never more than 20% at a time, never below actual average CPA.
  • Maximize Conversions daily budget is 10-15× the CPA goal at setup, with 10× as the minimum once the campaign has stabilised. The $50 minimum when CPA is under $5 is unchanged.

Where

knowledge/bidding.md, knowledge/budget.md, knowledge/manifest.json, two budget examples in os/guardrails.md, and the Target CPA lines in skills/optimize-campaign/SKILL.md and references/optimization-flow.md.

Not in this PR

  • manage-campaigns (its 10× budget table and the cpa_goal comment in references/mcp-write-surface.md), plus checks at campaign creation. That skill is being changed by open PRs, so it follows in a separate PR once those land.
  • knowledge/bidding.md:387 ("past weeks"): left as is because an open PR edits that line.

Version

0.5.7 in .claude-plugin/plugin.json, .claude-plugin/marketplace.json, .codex-plugin/plugin.json and .mcp.json. 0.5.6 is already used by open PRs.

Two self-review rounds ran before pushing.

🤖 Generated with Claude Code

- Target CPA waits for 50 conversions over a 7-day period, not 3-4 days.
  On a new campaign, offer Maximize Conversions, not Target CPA.
- First Target CPA starts ~20% above the window's average post-click CPA.
- Maximize Conversions daily budget: 10-15x CPA at setup, 10x minimum once
  stable, $50 minimum when CPA < $5.
- Version 0.5.7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
amitl-levi and others added 2 commits November 7, 2026 21:06
Four points from review, plus the version renumber.

The budget and calibration numbers were changed in knowledge/ but not in
manage-campaigns, so the plugin answered the same question two ways
depending on which file the agent had open. Its budget-minimums table, the
two create_campaign payload sketches in the write-surface reference and its
knowledge-file pointer now carry the same figures.

The 50-conversion bar was written as a hard rule. It is not one, and
knowledge/tracking.md already said so. Target CPA is gated by Realize's own
eligibility check: over the trailing 7 days a campaign needs more than
$1,000 USD spend, more than 50 click-through conversions, spend on more than
4 of those days, and a daily CPA that has held steady. Those are platform
defaults, tunable server-side, and they decide when Realize suggests the
strategy rather than whether it can be used. If a user asks for Target CPA
earlier the plugin says what the check is waiting on instead of refusing.

The first Target CPA now comes from the platform when the platform has one.
get_campaign returns a target_cpa block whose recommended_target_cpa is
Realize's own recommendation, with min_range / max_range bounds, and it is
distinct from cpa_goal, which is the advertiser's writable field. The
plugin had never mentioned it. The block is often absent, so the fallback
stays: ~20% above the last 7 days' average post-click CPA.

The "CPA too high, set the target above it" rows read as backwards without
the second half, so they now say to step the target down as each level
holds, and why starting above is deliberate.

Also: the budget multiples are labelled as published planning guidance
rather than a platform rule. Nothing server-side validates daily budget
against CPA for Maximize Conversions, so a campaign under the multiple is
accepted and runs; the plugin advises, and its own pre-submit check still
holds the user to the floor.

Version renumbered 0.5.7 to 0.5.6 after main merged at 0.5.5.

Checked against the Realize platform and MCP sources at their default
branches on 2026-11-07.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@amitl-levi

Copy link
Copy Markdown
Collaborator Author

Pushed. All four comments addressed, plus the version conflict with main.

1. manage-campaigns had the old numbers. Fixed here rather than deferred — the follow-up it was waiting on has landed. Its budget-minimums table, the two create_campaign payload sketches in the write-surface reference and its knowledge-file pointer all said 10× and "within 10-20% of stable actual CPA", so the plugin answered the same question two ways depending on which file the agent had open.

2. 50 conversions is a recommendation. You were right, and knowledge/tracking.md already said so — the first draft contradicted a file it didn't touch. It now states the platform's actual eligibility check, as the defaults they are: over the trailing 7 days, more than $1,000 USD spend, more than 50 click-through conversions (view-attributed excluded), spend on more than 4 of those days, and a steady daily CPA. All tunable server-side, none of them blocking. If a user asks for Target CPA before the bar is met, the plugin says what the check is still waiting on instead of refusing.

3. The suggested Target CPA. You were right and I was wrong — target_cpa is the server recommendation and cpa_goal is the advertiser's setting. The plugin now uses target_cpa.recommended_target_cpa when get_campaign returns it, stays inside the min_range / max_range it comes with, and falls back to ~20% above the last 7 days' post-click CPA when it is absent.

One thing worth your eye: the recommendation's own max_range default is +10%, so the ~20% fallback sits outside the bound the platform would have set. They never apply at the same time, so the guidance does not contradict itself — but if you would rather the fallback matched, say so and I will change it. I also have a question about when that field is actually populated; sending it to you separately rather than here.

4. The "CPA too high → set target 20% above" row. Both such rows now say to step the target down as each level holds, and why starting above is deliberate: a target the algorithm can already hit keeps delivery alive, and the descent is what closes the gap to the goal.

One change you did not ask for. Checking against the platform source turned up that nothing server-side validates daily budget against CPA for Maximize Conversions — a campaign under the multiple is accepted and simply runs. The multiples are now labelled as Taboola published planning guidance rather than a platform rule, and the pre-submit check in manage-campaigns still holds the user to the floor. If you would rather state that differently, tell me.

Version. Renumbered 0.5.7 → 0.5.6 — main is at 0.5.5 and this merges next. #30 and #25 both still claim 0.5.6, so they will need renumbering in merge order too.

Three review rounds plus a source-verification pass against the platform and MCP sources at their default branches, 2026-11-07.

…t CPA

Review feedback: Realize does not gate Target CPA, and the numbers are not
reported through the API. Reworded to "wait until the campaign hits these
numbers" across knowledge/bidding.md, the optimize-campaign skill and its
optimization-flow reference.

get_campaign's target_cpa block always comes back null, so the instruction to
read target_cpa.recommended_target_cpa is removed; ~20% above the last 7 days'
average post-click CPA is now the only starting value.

The Target CPA payload sketch in mcp-write-surface.md used create_campaign for
what the surrounding text calls a switch on an existing campaign; it is now
update_campaign.

Version stays 0.5.5 in all four files and this entry folds under the existing
0.5.5 heading.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@amitl-levi

Copy link
Copy Markdown
Collaborator Author

Pushed 8ecf373 — this landed after the approval, so here is what changed.

Eligibility framing is gone. Realize does not gate Target CPA and the numbers are not reported through the API, so every "clears Realize's eligibility check" now reads "wait until the campaign hits these numbers". Six places in knowledge/bidding.md, plus skills/optimize-campaign/SKILL.md and three in references/optimization-flow.md.

recommended_target_cpa is no longer an instruction. The block always comes back null, so ~20% above the last 7 days' average post-click CPA is now the only starting value, everywhere.

One deliberate deviation: I kept a single sentence saying the target_cpa block exists and always returns null, rather than deleting the mention outright. Without it the next reader sees the field in a get_campaign response and re-adds the rule. Happy to drop it if you'd rather.

Payload sketch fixed. The Target CPA example in mcp-write-surface.md called create_campaign under a heading that describes switching an existing campaign. Now update_campaign, and the is_active=False line is gone.

Version held at 0.5.5. All four version files are back to 0.5.5 and this entry folds under the existing 0.5.5 heading — the release number is frozen until the directory review closes.

brand-check.sh 0 FAIL / 5 WARN (pre-existing), 112 passed, 114 passed.

@amitl-levi
amitl-levi merged commit 9abe7e9 into main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants