Skip to main content

Data entities

Every object GoWit reads or returns. Each page lists every field with its type, whether it is required and what it does.

  • Product: The primary data of your integration. Advertisers are opened from products (per seller or per brand), promote them, and ad requests and sales name them.
  • Seller: Optional details for the sellers your products name: display name, e-mail, tax rate and language. Can be sent at any time.
  • Store: A place a shopper buys from: a store, dark store, restaurant, kiosk or warehouse. Optional; for multi-store markets.
  • Inventory row: Price and stock of one product at one store, or the product’s general row. Optional; once an inventory source exists it owns price and stock.
  • Stock level: Price and stock of a product at one store, for multi-location markets. Sent inside a product.
  • Ad request: What your backend sends for one page view: the placements to fill and the page context.
  • Ad: One ranked ad in an ad response. Product ads name a product; display ads carry a creative.
  • Event: An impression, click or sale, reported so GoWit can attribute sales to ads.
  • Sale line: One line of an order in a sale event.

How ids connect​

The same value travels under different names. Getting these right is most of a working integration.

Seller code​

Set by you on each product. It ties products, ads and sales to a seller, and optional seller records attach to it. Case-sensitive.

WhereField
Product pushproducts[].seller_ref
Seller pushsellers[].id
Ad responseads[].seller_ref
Sale eventsales[].seller_ref

Brand → advertiser​

Under a per-brand setup rule, every distinct brand on your products becomes one advertiser.

WhereField
Product push or feedproducts[].brand
Advertiserone per brand

Product id​

Your product code. Ad requests and sale events always name products by id.

WhereField
Product pushproducts[].id
Ad requestproducts[].id
Sale eventsales[].product_id

Storefront code (sku)​

Optional. When you send a sku, product ads answer it as product_id, so you can render the tile directly. It falls back to id.

WhereField
Product pushproducts[].sku
Ad responseads[].product_id

Store code​

Your store code, the same on every surface that names a store.

WhereField
Storelocations[].external_id
Inventory rowinventory[].location_ref
Product, per storestock_levels[].location_id
Ad requestlocation_id
Offline salelocation_id

Ad token​

Returned with every ad and sent back unchanged on impressions and clicks.

WhereField
Ad responseads[].ad_id
Impression / clickad_id · ad_ids

Session​

Sales are attributed to ads by session. Send the same value everywhere.

WhereField
Ad requestsession_id
Impression / clicksession_id
Sale eventsession_id

Category path​

The same text path on both sides, character for character, so pages and ads match.

WhereField
Product pushproducts[].retailer_taxonomy
Ad requestcategory · products[].category

Placement key​

The whole number set on the placement in the Onsite app.

WhereField
Ad requestplacements[].placement_id
Ad responseplacements[].placement_id