Warmup v2 Request
POST
https://localhost/v2/{publisherUUID}
Path Parameters
- publisherUUIDstringrequiredDescription
Body Parameters
- bodyRequestrequired
- userUserrequired
- idstringDescriptionMin Length1Max Length128
- loggedInIdstringDescriptionMin Length1Max Length128
- additionalIdsmap<string, string>Example
{ "partner_x_id": "id123", "partner_y_id": "id456" }Description - ipstringDescriptionMax Length60
- agentstringDescriptionMax Length400
- regionstringExampleDescriptionMax Length100
- operationFlagsobject
- noReportingbooleanDescription
- limitedTrackingbooleanDescription
- adUnitsAdUnit[]requiredDescription
- adUnitIdstringrequiredDescriptionMin Length1Max Length100
- searchQuerystringDescriptionMax Length400
- categoriesCategoryDescription
- currentstringDescriptionMax Length200
- additionalstring[]Description
- productsProduct[]Description
- gtinstringExampleDescriptionMin Length1Max Length128
- pricenumberDescriptionMinimum0
- quantityintegerDescriptionMinimum0
- availabilitystring<in_stock | out_of_stock>DescriptionAllowedin_stockout_of_stock
- excludedProductsexcludedProductsDescription
- adUnitContextAdUnitContextDescription
- pageNumberintegerDescription
- filtersmap<string, string[]>ExampleDescription
- excludedProductsexcludedProductsDescription
Responses
200
202
400
- ErrorResponse
- errorsstring[]
curl
curl --request POST \
--url https://localhost/v2/{publisherUUID} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"user": {},
"adUnits": [
{
"adUnitId": ""
}
]
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"user": {},
"adUnits": [
{
"adUnitId": ""
}
]
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://localhost/v2/{publisherUUID}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://localhost/v2/{publisherUUID}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"user": {},
"adUnits": [
{
"adUnitId": ""
}
]
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://localhost/v2/{publisherUUID}"
payload = json.dumps({
"user": {},
"adUnits": [
{
"adUnitId": ""
}
]
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Request Successful and data is already processed
202
// Request Accepted and will be processed asynchronously
400
// One or more request parameters don't comply to the API specifications.
{
"errors": [
""
]
}