Skip to main content

Ad

One ranked ad in an ad response. Product ads name a product; display ads carry a creative.

Fields​

FieldTypeRequiredDescription
ad_idtokenNoSealed token that identifies this impression opportunity. Send it back in events exactly as received. Valid for one hour by default.
seller_refstringNoFor product ads, the seller id of the product. For display ads, the advertiser code.
positionintegerNoRank of the ad within the placement, starting at 1.
labelstringNoDisclosure label to show with the ad, e.g. Sponsored.
product_idstringNoProduct ads only. The product sku, or its id when no sku was pushed. Render your own product tile for it.
creative_idintegerNoDisplay ads only. The creative shown.
img_urlurlNoDisplay ads only. Banner image URL.
sizestringNoDisplay ads only. Banner size, e.g. 300x250.
htmlstringNoDisplay ads only, when HTML creatives are on for your market. Render it instead of building the banner yourself.
redirectobjectNoDisplay ads only. Where a click should go.
redirect.typestringNoRedirect kind, e.g. CUSTOM.
redirect.urlurlNoLanding page of the banner.
redirectsobject[]NoDisplay ads only. All redirect targets. null for product ads.
redirects[].typestringNoRedirect kind, e.g. CUSTOM.
redirects[].urlurlNoLanding page of the banner.
productsobject[]NoDisplay ads only. Products promoted by the banner. null for product ads.
products[].skustringNoProduct sku (or id when no sku was pushed).
products[].namestringNoProduct name.
products[].pricenumberNoProduct price.
products[].brandstringNoBrand, when known.
products[].image_urlurlNoProduct image.
products[].pdp_urlurlNoProduct page.
products[].ratingnumberNoRating, when known.
vast_tagstringNoVideo ads only. VAST tag, empty otherwise.
video_urlurlNoVideo ads only. Video file URL.
durationintegerNoVideo ads only. Video length.

Shape​

{
"ad_id": "<ad_id>",
"seller_ref": "<seller_ref>",
"position": 0,
"label": "<label>",
"product_id": "<product_id>",
"creative_id": 0,
"img_url": "https://…",
"size": "<size>",
"html": "<html>",
"redirect": {
"type": "<type>",
"url": "https://…"
},
"redirects": [
{
"type": "<type>",
"url": "https://…"
}
],
"products": [
{
"sku": "<sku>",
"name": "<name>",
"price": 0,
"brand": "<brand>",
"image_url": "https://…",
"pdp_url": "https://…",
"rating": 0
}
],
"vast_tag": "<vast_tag>",
"video_url": "https://…",
"duration": 0
}