Staged test media plan (draft)
get_test_planA draft media plan for the workspace's staged ad test, built from the revenue ledger of the last 28 days (window since..until, the same rows as get_revenue_ledger with days 28). Read-only: it creates no campaign, changes no budget and writes nothing to an ad platform. channels[] always lists apple_search_ads, meta and google_ads (then any other channel with spend), each with spend (per currency), spendJpy (null when no exchange rate), spendDays (days with a spend row), payers (paying customers tied to the channel's campaigns that had spend in the window and who first paid inside the window, the sample size; null when the channel's payers cannot be tied to its ads, never zero), takeHome (those payers' first payments plus their own in-window renewals and refunds), notCounted (in the ledger rows but left out of the gates: zeroSpendCampaigns, payers and take-home from campaigns with no spend in the window; earlierPayers, renewals and the like from customers who first paid before the window), payback (takeHome ÷ spend), paybackIsLowerBound with excludedRevenue (money in a currency with no exchange rate, left out), costPerPayerJpy, maturing, selfReportedCeiling (upper bound from signup answers for channels without attribution), evidence (sufficient, insufficient or not_measurable), holdReasons and recommendation: budget (gets a share of step 1), hold or measure_only (payers not attributable, so the channel can only be measured). Rules: a channel gets step-1 budget only with no holdReasons: it must be attributable (not_attributable), have spend (no_spend) above zero (non_positive_spend) convertible to yen (spend_not_converted), at least rules.minPayers (6) payers (too_few_payers), take-home payback at least rules.paybackLine (1.1; below_payback_line, or revenue_not_converted when a lower bound from excluded money is below it), and cost per payer not above the test's stop line (above_stop_line); no_staged_test when the workspace has no staged test; share_rounds_to_zero when its share of the daily amount rounds down to 0.stagedTest (null without a staged test) gives the test's own settings (startDate, minDays, maxDays, dailyBudgetJpy, scaleAtOrBelowJpy and stopAboveJpy per paying customer, trialScaleAtOrBelowJpy and trialStopAboveJpy per trial, scaleToDailyJpy, capMonth, capMonthTotalJpy) and step1: dailyBudgetJpy split across budget channels in proportion to their window spend, rounded down to rules.roundToJpy, with allocatedDailyJpy, unallocatedDailyJpy and maxStep1SpendJpy (allocated × maxDays). baseline gives total new paying customers (ads, creator codes and unattributed) per week for the last 4 weeks, so the test can be read as lift over it; a week before revenueEventsFrom is null and not counted. unattributedPayers are paying customers tied to no campaign or code; they are never added to a channel. notes: no_revenue_events, revenue_window_partial, unattributed_payers, unknown_campaign_payers, zero_spend_campaign_payers, earlier_payers_not_counted, no_channel_ready, step1_exceeds_cap. Money in (revenue) and payback are take-home: after store fees and refunds, so payback compares what the advertiser keeps with spend. Events sent before store fees (amountIsNet false) are reduced by the workspace's fee rate for their store, refunds by the same rate, before any currency conversion; amounts are shown rounded to the currency's smallest unit, payback is computed before rounding. Rows, totals, keyword rows and weeks carry takeHomeBasis (null when no event has an amount): takeHomeBasis.kind says where the take-home figure comes from: net_reported (sent after store fees), net_estimated (sent before fees, reduced by the workspace's store fee rate), net_mixed (both), gross or gross_mixed (not converted to take-home); takeHomeBasis.storeFees lists the rate used per store, isDefault true when it is Loop's default estimate (App Store 15%, Google Play 15%, Stripe 3.6%, other 0%) because the workspace set none (appProfile.storeFeeRates in PATCH /api/{workspace}/config). Taxes are not deducted, and the workspace's current rates are applied to past purchases too.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_test_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||