{"uid":"cap_ty15Wh7oZevNz-a0O9IIx","slug":"advertising-performance-adjacent-row-changes-0e863946","name":"Advertising Performance Adjacent Row Changes","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-ad-performance-period-change?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_f3ZOpL-3nzJdt9Vp4Y034","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 period-over-period adjacent row changes (delta) for advertising performance metrics like clicks or spend across up to 200 campaign rows.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Daily click delta for ad campaigns","prompt":"I have four days of ad data for two campaigns — compute the adjacent row changes in clicks so I can see how engagement shifted day over day: row-1 group-a 2026-10-01 clicks=100 spend=50, row-2 group-b 2026-10-02 clicks=120 spend=60, row-3 group-a 2026-10-03 clicks=90 spend=45, row-4 group-b 2026-10-04 clicks=150 spend=80."},{"title":"Spend change tracking across periods","prompt":"Calculate the adjacent row spend changes for my campaign rows — I need to know how much budget shifted between each consecutive period: row-1 brand-campaign 2026-09-01 spend=500 clicks=200, row-2 brand-campaign 2026-09-02 spend=620 clicks=230, row-3 brand-campaign 2026-09-03 spend=410 clicks=180. Use spend as the field."},{"title":"Detecting campaign performance swings","prompt":"For these five campaign rows, compute adjacent row differences on clicks so I can spot sudden performance swings: row-1 retargeting 2026-11-01 clicks=300 spend=150, row-2 retargeting 2026-11-02 clicks=280 spend=145, row-3 retargeting 2026-11-03 clicks=450 spend=200, row-4 retargeting 2026-11-04 clicks=100 spend=80, row-5 retargeting 2026-11-05 clicks=390 spend=190."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:17:12.249Z","isFirstParty":false,"canonicalSlug":"advertising-performance-adjacent-row-changes-0e863946"}