Sponsored Products — deprecated
Integration via API /v1/dsa/raw — deprecated
/v1/dsa/raw/batch.In the integration model via AdsHero API, AdsHero is solely responsible for selecting ads. Their rendering is performed by the service querying AdsHero for ads.
A basic request for ads (emission request) looks like this:
GET https://dispatcher.ahevds.com/v1/dsa/raw/{slotHash}/{adCount} HTTP/2
cid: {cid}
uid: {uid}curl --location --request GET 'https://dispatcher.ahevds.com/v1/dsa/raw/{slotHash}/{adCount}' \
--header 'cid: {cid}' \
--header 'uid: {uid}'slotHashis the identifier of the ad unit available in the publisher’s (shop’s) panel on the ad units list (menu “Slots”).adCountis the maximum number of ads to be returned.
All additional parameters are passed as “query parameters”, i.e. URL parameters in the form key=value provided after the ? sign and separated by the & sign.
Available parameters:
| Name | Description | Example value |
|---|---|---|
searchData | Search phrase. | karma dla kota |
excludeShopProductsIds | List of product IDs to exclude. | BAM-SWA-BLA-MIN |
priceMin | Filter on the minimum price. | 1.23 |
priceMax | Filter on the maximum price. | 12.3 |
currency | Page currency. | PLN |
brand | Product brand. | Fun with Mum |
productTitle | Product title. | Kocyk Bambusowy - Mint |
categories | List of category IDs. | 113 |
categoryPaths | List of category paths. | Kocyki > Kocyki Dziane > Kocyk Bambusowy |
shopProductId | Product ID in the context of which the ad is rendered. | BAM-SWA-BLA-MIN |
attributes | Additional attributes. Description below. | [{"name":"color","value":"red"}] |
adType | Allows limiting ad selection to only autopromo or only sponsored offers. | ALL |
If we pass more than one value for a given parameter, the parameter should be passed multiple times, e.g., categories=113&categories=114.
attributes parameter
attributes serve to further filter/limit products.
The values of these parameters do not affect the quality of offer matching: they only guarantee that only offers that have the given attribute values will be returned.
Each attribute is accepted in the form:
{
"name": "name",
"value": "value"
}All attributes should be passed as a text array in JSON, i.e., [{"name": "color", "value": "red"}].
name is the attribute’s name, and value is its value.
We accept attributes (from the feed):
adultage_groupcolorenergy_efficiency_classgendergoogle_product_categorygtinmaterialmpnpatternsizeunit_pricing_measure
And all attributes provided in product_detail.