# Marketing Contribution Return – Weighted Result Mean

> Marketing Contribution Return – Weighted Result Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Calculates a weighted mean of marketing contribution return (attributed contribution / marketing spend) across up to 200 data rows using supplied non-negative weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-marketing-return-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/marketing-contribution-return-weighted-result-mean-a99b4239
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YR7TtShmjSeCDjcWvDvmd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability marketing-contribution-return-weighted-result-mean-a99b4239 -d '<json body>'
```

Example prompt: Calculate a weighted mean of our marketing contribution return across four campaigns: spend of $5,000 with $8,000 attributed contribution (weight 1), spend of $5,500 with $8,800 attributed contribution (weight 2), spend of $5,000 with $8,000 contribution (weight 1), and spend of $5,500 with $8,800 contribution (weight 2) — give me the formula, units, and any limitations.

## When to prefer this

Choose this endpoint when you need a statistically weighted aggregate of marketing contribution return across multiple campaigns, periods, or channels, and you want to assign non-equal importance weights to each data point. It is ideal for blended reporting where different campaigns have different sample sizes or strategic priorities. Prefer it over a simple mean when equal weighting would misrepresent your data.

## Known failure modes

- Weights array length does not match rows array length — mismatch error returned
- Fewer than 2 rows supplied — minimum items validation failure
- Marketing spend of zero or negative — excluded by exclusiveMinimum constraint
- Weight values are negative — validation error since weights must be non-negative
- More than 200 rows submitted — maxItems constraint violation
- Non-numeric values in spend, contribution, or weight fields — schema type error

## How this service works

Marketing contribution return - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. 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 weighted result mean report.

## Output

A JSON object containing the weighted mean of marketing contribution return across the supplied rows, along with the formula used, measurement units, and a note of limitations. Does not include live data, financial advice, or trade execution.

## Request schema (JSON Schema)

```json
{
 "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
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/marketing-contribution-return-weighted-result-mean-a99b4239/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
