# Attributed Return on Ad Spend (ROAS) - Single Calculation

> Attributed Return on Ad Spend (ROAS) - Single Calculation 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-27).

Calculates attributed return on ad spend (ROAS) from supplied ad spend and attributed revenue figures, returning a single computed result.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-ad-spend-return-calculate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/attributed-return-on-ad-spend-roas-single-calculation-d108a932
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KrrIinimZ31j1q2JaXFXN

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 attributed-return-on-ad-spend-roas-single-calculation-d108a932 -d '<json body>'
```

Example prompt: Can you calculate my attributed ROAS? I spent $1,000 on ads and the attributed revenue from those ads came out to $5,500.

## When to prefer this

Use this endpoint when you need a quick, single ROAS computation from known ad spend and attributed revenue figures without needing live platform data, inventory access, or account integrations. Ideal for scenario modeling, manual campaign reporting, or when data is already available locally and you simply need the ratio computed.

## Known failure modes

- Missing required field 'ad_spend' returns a validation error
- Missing required field 'attributed_revenue' returns a validation error
- ad_spend of zero or negative value is rejected (exclusiveMinimum: 0)
- Values exceeding 1,000,000,000,000 are out of range and rejected
- Payment not included or insufficient USDC results in 402 Payment Required

## How this service works

Attributed return on ad spend - Single calculation: Single calculation for Attributed return on ad spend. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded single calculation deliverable.

## Output

A computed ROAS value derived from the supplied attributed revenue divided by ad spend, returned as a single numeric result representing how much revenue was generated per dollar of advertising spend.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "object",
   "default": {
    "ad_spend": 1000,
    "attributed_revenue": 5000
   },
   "required": [
    "attributed_revenue",
    "ad_spend"
   ],
   "properties": {
    "ad_spend": {
     "type": "number",
     "default": 1000,
     "maximum": 1000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "attributed_revenue": {
     "type": "number",
     "default": 5000,
     "maximum": 1000000000000,
     "minimum": -1000000000000
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/attributed-return-on-ad-spend-roas-single-calculation-d108a932/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)
