{"uid":"cap_4IFrQf_LvWgrqg48-Zfw_","slug":"marketing-contribution-return-rolling-mean-report-abf199e6","name":"Marketing Contribution Return - Rolling Mean Report","description":"Marketing contribution return - Rolling mean report: Calculate trailing full-window means over ordered observations, preserving invalid-row gaps. Metric: Marketing contribution return. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded rolling mean report report.","url":"https://market.datapackvibe.com/x402/assistant-finance-marketing-return-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["attributed_contribution","marketing_spend"],"properties":{"marketing_spend":{"type":"number","default":5000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"attributed_contribution":{"type":"number","default":8000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"marketing_spend":5000,"attributed_contribution":8000},{"marketing_spend":5500,"attributed_contribution":8800},{"marketing_spend":5000,"attributed_contribution":8000},{"marketing_spend":5500,"attributed_contribution":8800}],"maxItems":200,"minItems":2},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oi9wYbWTH-t36csJvQoib","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates trailing full-window rolling means over a series of marketing contribution return observations, preserving gaps for invalid rows, and returns a JSON report with formula, units, and limitations.","exampleAgentPrompt":"Can you compute a rolling mean report for my marketing contribution return data using a window of 3? Here are my rows: spend $5000 / contribution $8000, spend $5500 / contribution $8800, spend $6000 / contribution $9000, spend $5200 / contribution $8400.","exampleUseCases":[{"title":"Quarterly campaign smoothing analysis","prompt":"I have 12 months of marketing spend and attributed contribution data and I want to smooth it with a rolling mean using a window of 3 — can you compute the trailing averages and show me the formula and any limitations?"},{"title":"Detecting marketing ROI trends","prompt":"Can you run a rolling mean over my marketing contribution return series with a window of 4? My rows go: spend $4000/return $7200, spend $4500/return $7800, spend $5000/return $8500, spend $4800/return $8100, spend $5200/return $8900."},{"title":"Multi-period marketing efficiency report","prompt":"I need a rolling average report on 8 periods of marketing data — window size 2 — where spend ranged from $3000 to $7000 and attributed contributions from $5000 to $12000. Can you calculate the trailing full-window means and tell me the units and formula used?"}],"resultDescription":"A JSON object containing the trailing full-window rolling mean values for the marketing contribution return metric across the supplied observation rows, along with the formula used, units, and stated limitations of the calculation. Rows that fall within incomplete windows (before the full window is reached) are represented as gaps/nulls.","failureModes":["Fewer than 2 rows supplied — minimum row count not met","Window size exceeds number of rows — no full windows can be computed","marketing_spend value is zero or negative — exclusiveMinimum constraint violated","Row object missing required fields (attributed_contribution or marketing_spend)","Values exceed maximum bounds (1,000,000,000,000) — validation error","More than 200 rows supplied — maxItems exceeded","Window integer outside range 2–200 — schema validation failure"],"whenToPreferThis":"Use this endpoint when you need a statistical rolling mean (moving average) specifically for the marketing contribution return metric over an ordered time series, with proper handling of incomplete windows and invalid-row gaps. Prefer this over a generic batch calculator when you need the trailing full-window smoothing behavior and want the result annotated with formula, units, and limitations in JSON format. Not suitable for live data feeds, financial advice, or trade execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:30.334Z","isFirstParty":false,"canonicalSlug":"marketing-contribution-return-rolling-mean-report-abf199e6"}