# Advertising Performance Adjacent Row Changes

> Advertising Performance Adjacent Row Changes 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-19).

Computes period-over-period adjacent row changes (delta) for advertising performance metrics like clicks or spend across up to 200 campaign rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-ad-performance-period-change?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/advertising-performance-adjacent-row-changes-0e863946
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ty15Wh7oZevNz-a0O9IIx

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 advertising-performance-adjacent-row-changes-0e863946 -d '<json body>'
```

Example prompt: Calculate the adjacent row changes in clicks for my campaign data: row-1 group-a 2026-10-01 spend=1 clicks=10, row-2 group-b 2026-10-02 spend=2 clicks=20, row-3 group-a 2026-10-03 spend=3 clicks=15 — I want to see how clicks shifted between each consecutive row.

## When to prefer this

Choose this endpoint when you need fast, local period-over-period delta computation on advertising rows (clicks or spend) without any external API calls or enrichment. Ideal for agents processing up to 200 pre-structured campaign records that need sequential row differences for trend detection, anomaly spotting, or reporting pipelines. Prefer over general analytics services when you want a deterministic, cheap ($0.01 USDC) computation with no side effects.

## Known failure modes

- Fewer than 1 row provided returns validation error
- More than 200 rows triggers maxItems limit rejection
- Invalid date format (not YYYY-MM-DD) causes schema validation failure
- Invalid field value (not 'clicks' or 'spend') causes enum validation error
- Missing required fields (row_id, campaign, date, clicks, spend) causes request rejection
- Null numeric values may result in null deltas in output

## How this service works

Advertising performance - Adjacent row changes: Adjacent row changes for Advertising performance. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded adjacent row changes deliverable.

## Output

Returns a set of computed adjacent row change values for each input row, showing the numeric difference in the selected field (clicks or spend) between each row and its preceding row. Delivered as bounded local computation with no external enrichment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "campaign",
     "date",
     "clicks",
     "spend"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "spend": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "clicks": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "campaign": {
      "type": "string",
      "default": "",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "spend": 1,
     "clicks": 10,
     "row_id": "row-1",
     "campaign": "group-a"
    },
    {
     "date": "2026-10-02",
     "spend": 2,
     "clicks": 20,
     "row_id": "row-2",
     "campaign": "group-b"
    },
    {
     "date": "2026-10-03",
     "spend": 3,
     "clicks": 15,
     "row_id": "row-3",
     "campaign": "group-a"
    },
    {
     "date": "2026-10-04",
     "spend": 4,
     "clicks": 30,
     "row_id": "row-4",
     "campaign": "group-b"
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "clicks",
    "spend"
   ],
   "type": "string",
   "default": "clicks"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/advertising-performance-adjacent-row-changes-0e863946/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)
