{"uid":"cap_bhrA9B3tFLJjEjb0m2qdo","slug":"advertising-performance-category-frequencies-bb112fdd","name":"Advertising Performance Category Frequencies","description":"Advertising performance - Category frequencies: Category frequencies 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 category frequencies deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-ad-performance-category-counts?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}}},"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_9p7jdWGVD6T6RRwA5dmx4","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 category-level frequency counts across advertising performance records (campaigns, dates, clicks, spend) for up to 200 rows.","exampleAgentPrompt":"Count how many times each campaign appears in my ad performance data — I have 4 records: row-1 on 2026-10-01 with spend 1 and clicks 10 for group-a, row-2 on 2026-10-02 with spend 2 and clicks 20 for group-b, row-3 on 2026-10-03 with spend 3 and clicks 15 for group-a, and row-4 on 2026-10-04 with spend 4 and clicks 30 for group-b.","exampleUseCases":[{"title":"Campaign frequency check for flight analysis","prompt":"I have 8 rows of ad performance data across three campaigns — brand-awareness, retargeting, and promo-launch — can you count how many records belong to each campaign? The records run from 2026-09-01 to 2026-09-08 with various clicks and spend values."},{"title":"Identifying dominant campaign in dataset","prompt":"Tell me which campaign appears most frequently in my ad data: I've got 12 rows covering campaigns summer-sale and winter-sale with dates from 2026-07-01 to 2026-07-12, clicks ranging from 5 to 200, and spend from 10 to 500."},{"title":"QA check on campaign data distribution","prompt":"Before I analyze my ad results, I want to verify the distribution of campaign labels — can you give me the category frequencies for these 6 records? Campaigns are group-a and group-b, dates are 2026-11-01 through 2026-11-06, clicks are 50–300, spend is 5–50."}],"resultDescription":"Returns a bounded category frequencies deliverable: a count of how many records belong to each distinct campaign category in the submitted advertising performance dataset, computed locally with no external enrichment.","failureModes":["Fewer than 1 row submitted returns a validation error","More than 200 rows submitted exceeds the maxItems limit","Missing required fields (row_id, campaign, date, clicks, spend) causes schema validation failure","Malformed date strings not matching YYYY-MM-DD pattern are rejected","Non-numeric values for clicks or spend fields cause type errors","Payment of 0.01 USDC not supplied or rejected results in 402 response"],"whenToPreferThis":"Choose this endpoint when you need a fast, inexpensive ($0.01 USDC) local frequency count of campaign categories from a small advertising dataset (up to 200 rows). It is ideal for pre-analysis QA, data distribution checks, or lightweight campaign tallying where no external data enrichment or forecasting is needed. Prefer alternatives if you need trend forecasting, spend aggregation, ROI computation, or datasets larger than 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:01:12.764Z","isFirstParty":false,"canonicalSlug":"advertising-performance-category-frequencies-bb112fdd"}