Skip to content

WMC SDK & Data Platform

I built a Walmart Connect SDK and recoverable reporting pipeline that preserves the different grains of Search, Display, and item-sales data.

The Problem

Search spend, Display cost, and SKU sales describe different things at different grains. Combining them carelessly can make a valid-looking report misleading; ingestion, enrichment, and reporting must preserve their meaning and source context.

My Contribution

I built the SDK, ingestion, reporting layers and cloud infrastructure as K2POV's sole technical builder.

How It Works

  1. 01I separated the runtime-neutral SDK from its runner. Endpoint metadata defines request schemas, metrics, and plans so API behavior and ingestion planning stay connected.
  2. 02Bronze preserves source fields and request context; Silver normalizes each source at its own grain; Gold enriches item fields by item ID while keeping campaign and ad-group rows distinct.
  3. 03Cloudflare Workflows checkpoints runs, D1 stores control records, and R2 holds captures and datasets. A SQLite coordinator orders layer dependencies, while receipts identify completed work for repair.
  4. 04Gold keeps Search and Display delivery, item sales and attributed conversions, and campaign and ad-group dimensions in distinct outputs. Incomparable fields stay null; reports calculate rates from compatible measures.
  5. 05Catalog candidates retain validation and winner reasons, with item-wide evidence for company and taxonomy fields. Keep the versioned item-performance index separate from catalog decisions.

Engineering Decisions

  • Derive plans from endpoint-owned metadata

    The SDK distinguishes an endpoint's accepted request range from the smaller windows chosen for reliable ingestion. Those two limits serve different purposes.

    Review contract and planner changes together. A nonempty snapshot still needs its download captured; SDK helpers alone do not provide durable checkpoints or publication ownership.

  • Preserve the purpose of each data layer

    Request context, campaign relationships and item-level catalog evidence have different scopes. A synthetic catalog label can enrich an item without changing the spend measure on a delivery row.

    A valid file does not guarantee comparable measures. Add values only when attribution models and windows match and populations do not overlap. Do not add a channel total to its component rows.

  • Resolve catalog evidence before emitting attributes

    A brand decision records the winning value, nonwinners and the rule that separated them. Item-wide company or taxonomy needs item-wide evidence; a plausible label in a sales row is insufficient.

    Missing values and quarantined identities remain visible. A local candidate build requires explicit retain/retire decisions for baseline-only items and remains separate from remote publication.

  • Let item-family consensus fill blanks only

    After direct evidence is considered, a unanimous item-family value can fill an otherwise blank field before derived fields are recalculated.

    A conflicting family vote stays unresolved, and a value already present on the base row is preserved. Consensus cannot establish that an item belongs to a company or taxonomy without suitable evidence.

  • Keep observed cost and allocation estimates separate

    Display SKU sales do not identify actual item cost. The optional campaign allocation projection retains the captured metric and emits separately classified company-share estimates from an exact, dated rule.

    Approval, source pins, currency and complete shares need checks. A revenue-weighted sensitivity can reconcile spend while giving every item the same modeled ROAS; it cannot recover observed line cost or establish item ownership.

Outcome

The reporting model keeps observed delivery cost separate from item sales and attribution. Run receipts identify work to repair, and catalog decisions retain the evidence and rule behind each assigned field.