{"uid":"cap_2grMOpJmetq9HpfmFDVnR","slug":"advertising-performance-date-by-category-pivot-a09f6f4a","name":"Advertising Performance – Date by Category Pivot","description":"Advertising performance - Date by category pivot: Date by category pivot 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 date by category pivot deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-ad-performance-pivot?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_dLwIXrJBogJLC0fSAaHpH","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":"Pivots advertising performance data (clicks or spend) by date and campaign category, returning a cross-tabulated summary table for up to 200 rows.","exampleAgentPrompt":"Can you pivot my advertising data by date and campaign, using clicks as the measure? I have four rows: row-1 for group-a on 2026-10-01 with 10 clicks and $1 spend, row-2 for group-b on 2026-10-02 with 20 clicks and $2 spend, row-3 for group-a on 2026-10-03 with 15 clicks and $3 spend, and row-4 for group-b on 2026-10-04 with 30 clicks and $4 spend.","exampleUseCases":[{"title":"Daily campaign click comparison","prompt":"I have a week's worth of ad data across three campaigns — can you pivot it by date and campaign so I can see clicks side-by-side per day? The field I care about is clicks."},{"title":"Daily spend breakdown by ad group","prompt":"Take my advertising rows — each has a date, campaign name, and spend amount — and give me a date-by-campaign pivot on spend so I can see which groups are burning the most budget each day."},{"title":"Monthly campaign performance summary","prompt":"I've got 180 rows of daily ad performance data for October across five campaigns. Can you cross-tabulate them by date and campaign using clicks as the measure so I can spot trends?"}],"resultDescription":"A cross-tabulated pivot table where rows represent dates and columns represent campaign categories, with each cell containing the aggregated value (clicks or spend) for that date-campaign combination, derived entirely from the supplied input records.","failureModes":["Missing required fields (row_id, campaign, date, clicks, spend) cause validation errors","Date strings not matching YYYY-MM-DD pattern are rejected","More than 200 rows in the input array exceeds the maximum and is rejected","Invalid field enum value (anything other than 'clicks' or 'spend') causes a schema error","Empty rows array (minItems: 1 violation) returns an error"],"whenToPreferThis":"Choose this endpoint when you need a quick, local date-by-campaign cross-tab of advertising data without external enrichment or forecasting — especially when you have up to 200 pre-collected ad records and want a structured pivot on either clicks or spend at minimal cost ($0.01 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:11:30.950Z","isFirstParty":false,"canonicalSlug":"advertising-performance-date-by-category-pivot-a09f6f4a"}