SENSOR_BASKET
products requires a device with the SENSOR_BASKET sensor — the sensor that detects the shopper’s basket. On a device without it, products is rejected (400).
Grammar
Section titled “Grammar”products=<sku>[:<qty>][;<sku>[:<qty>]…];-separated set of<sku>[:<qty>]entries;qtyoptional, default1.qtyis always the trailing:<digits>when present. A SKU may itself contain:, so quantity is parsed from the right:products=ABC:12:2is SKUABC:12, qty2;products=ABC:12is SKUABC, qty12. A SKU whose own value ends in:<digits>must therefore be sent with an explicit qty, so the trailing number is never mistaken for part of the SKU.
products=sku-123:2;sku-456# 2x sku-123, 1x sku-456The basket is matched against flights that target cart contents (skus / items).
Example
Section titled “Example”An online request carrying just a basket (no demographics):
GET /v1alpha2/ads?playerid=screen-01&key=retailer-acme&products=sku-123:2;sku-456 HTTP/1.1Accept: application/xmlAs sent on the wire (; → %3B, : → %3A):
GET /v1alpha2/ads?playerid=screen-01&key=retailer-acme&products=sku-123%3A2%3Bsku-456