{"uid":"cap_dCoa_XbT4_-aUBKv2zzmm","slug":"advertising-performance-grouped-numeric-summary-e9e17dec","name":"Advertising Performance Grouped Numeric Summary","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-ad-performance-group-summary?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"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_0666H0V7uoEp18YtOG-X5","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":"Computes a grouped numeric summary (e.g. sum, mean) of a specified metric field (clicks or spend) across advertising campaign records, grouped by campaign.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Campaign click comparison report","prompt":"I have a list of daily ad performance rows across two campaigns — 'brand-awareness' and 'retargeting' — with clicks and spend for each day last week. Can you group them by campaign and give me a summary of the clicks field so I can compare total engagement?"},{"title":"Spend rollup for budget review","prompt":"We're doing a budget review and I need a grouped numeric summary of spend across our three campaigns from the past month. Here are up to 200 rows with campaign name, date, and spend — can you aggregate the spend field by campaign?"},{"title":"Ad performance data quality check","prompt":"I want to validate and summarize our advertising data before sending it to stakeholders. Can you run a grouped numeric summary on these click records grouped by campaign to flag any data-quality issues and give me the aggregated numbers?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:59:13.645Z","isFirstParty":false,"canonicalSlug":"advertising-performance-grouped-numeric-summary-e9e17dec"}