# Advertising Performance Grouped Numeric Summary

> Advertising Performance Grouped Numeric Summary 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-20).

Computes a grouped numeric summary (e.g. sum, mean) of a specified metric field (clicks or spend) across advertising campaign records, grouped by campaign.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-ad-performance-group-summary?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/advertising-performance-grouped-numeric-summary-e9e17dec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dCoa_XbT4_-aUBKv2zzmm

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-grouped-numeric-summary-e9e17dec -d '<json body>'
```

Example prompt: Can you group these ad performance records by campaign and give me a summary of total clicks? I have 4 rows: campaign group-a on 2026-10-01 with 10 clicks and $1 spend, group-b on 2026-10-02 with 20 clicks and $2 spend, group-a on 2026-10-03 with 15 clicks and $3 spend, and group-b on 2026-10-04 with 30 clicks and $4 spend — summarize the clicks field.

## When to prefer this

Choose this endpoint when you have raw advertising performance rows (with campaign, date, clicks, spend) and need a fast, low-cost grouped numeric summary without external API dependencies. Best for local, bounded aggregation of up to 200 records where you want campaign-level rollups of clicks or spend without forecasting or enrichment.

## Known failure modes

- Input array is empty or missing (minItems:1 violated)
- More than 200 rows submitted (maxItems:200 exceeded)
- Invalid date format (must match YYYY-MM-DD pattern)
- Missing required fields: row_id, campaign, date, clicks, or spend
- Invalid field enum value — must be 'clicks' or 'spend'
- Numeric values out of range (outside ±1,000,000,000,000)
- row_id exceeds 80-character limit or is empty

## How this service works

Advertising performance - Grouped numeric summary: Grouped numeric summary 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 grouped numeric summary deliverable.

## Output

A grouped numeric summary object where advertising performance records are aggregated by campaign, reporting computed statistics (such as sum or mean) for the specified metric field (clicks or spend) for up to 200 input rows. Processed locally with data-quality checks and 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-grouped-numeric-summary-e9e17dec/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)
