Ad
One ranked ad in an ad response. Product ads name a product; display ads carry a creative.
- Returned by:
POST /server/v2/ads → placements[].ads[]
Fields
| Field | Type | Required | Description |
|---|---|---|---|
ad_id | token | No | Sealed token that identifies this impression opportunity. Send it back in events exactly as received. Valid for one hour by default. |
seller_ref | string | No | For product ads, the seller id of the product. For display ads, the advertiser code. |
position | integer | No | Rank of the ad within the placement, starting at 1. |
label | string | No | Disclosure label to show with the ad, e.g. Sponsored. |
product_id | string | No | Product ads only. The product sku, or its id when no sku was pushed. Render your own product tile for it. |
creative_id | integer | No | Display ads only. The creative shown. |
img_url | url | No | Display ads only. Banner image URL. |
size | string | No | Display ads only. Banner size, e.g. 300x250. |
html | string | No | Display ads only, when HTML creatives are on for your market. Render it instead of building the banner yourself. |
redirect | object | No | Display ads only. Where a click should go. |
redirect.type | string | No | Redirect kind, e.g. CUSTOM. |
redirect.url | url | No | Landing page of the banner. |
redirects | object[] | No | Display ads only. All redirect targets. null for product ads. |
redirects[].type | string | No | Redirect kind, e.g. CUSTOM. |
redirects[].url | url | No | Landing page of the banner. |
products | object[] | No | Display ads only. Products promoted by the banner. null for product ads. |
products[].sku | string | No | Product sku (or id when no sku was pushed). |
products[].name | string | No | Product name. |
products[].price | number | No | Product price. |
products[].brand | string | No | Brand, when known. |
products[].image_url | url | No | Product image. |
products[].pdp_url | url | No | Product page. |
products[].rating | number | No | Rating, when known. |
vast_tag | string | No | Video ads only. VAST tag, empty otherwise. |
video_url | url | No | Video ads only. Video file URL. |
duration | integer | No | Video 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
}