Display V3
POST
https://localhost/v3/{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
- agentstringExampleDescriptionMax Length400
- regionstringExampleDescriptionMax Length100
- segmentsstring[]Example
[ "income_>10k", "gender_male" ]
Description - limitedTrackingbooleanDescription
- adUnitsAdUnit[]requiredDescription
- adUnitIdstringrequiredDescriptionMin Length1Max Length100
- searchQuerystringDescriptionMax Length400
- productsobject[]Description
- gtingtinDescription
- ignoreBidbooleanDescriptionDefaultfalse
- pinnedbooleanDescriptionDefaultfalse
- extobjectDescription
- categoriesobjectDescription
- currentstringDescriptionMax Length400
- additionalstring[]Description
- additionalProductsobject[]Description
- gtingtinDescription
Responses
200
- AdResponse
- requestIdstring
- adUnitsobject[]
- adUnitIdstring
- positionsobject[]
- sponsoredbooleanExample
- kindstringDescription
- targetUrlstringExampleDescription
- beaconUrlsstring[]Description
- clickUrlsstring[]Description
- loadUrlsstring[]Description
- extTrackingExample
{ "OnFileClickBeacon": [ "https://tracking/fileClick" ] }Description - extobjectExample
{ "key": "value" }Description - advertiserNamestringExampleDescription
- advertiserIdintegerExampleDescription
- campaignNamestringExampleDescription
- campaignIdintegerExampleDescription
- adGroupNamestringExampleDescription
- adGroupIdintegerExampleDescription
- demandSourcesstring[]Example
[ "pentaleap" ]
Description - associatedProductsobject[]Description
- gtinstring
- beaconUrlsstring[]Description
- clickUrlsstring[]Description
- extobjectExample
{ "key": "value" }Description
- bannerobjectExample
{ "300x250": { "assetUrl": "https://www.example.com/image_300x250.jpg", "beaconUrls": [ "https://www.example.com/tracking/impression/image_300x250" ], "clickUrls": [ "https://www.example.com/tracking/click/image_300x250" ] }, "728x90": { "assetUrl": "https://www.example.com/image_728x90.jpg", "beaconUrls": [ "https://www.example.com/tracking/impression/image_728x90" ], "clickUrls": [ "https://www.example.com/tracking/click/image_728x90" ], "ext": { "type": "IMAGE", "backgroundColor": "blue", "altText": "some_image5", "callToAction": "click here" } } }Description- assetUrlstringExampleDescription
- beaconUrlsstring[]Description
- clickUrlsstring[]Description
- loadUrlsstring[]Description
- extobjectExample
{ "type": "IMAGE", "backgroundColor": "blue", "altText": "some_image5", "callToAction": "click here" }Description
400
- ErrorResponse
- errorsstring[]
404
- ErrorResponse
- errorsstring[]
curl
curl --request POST \
--url https://localhost/v3/{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/v3/{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/v3/{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/v3/{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
// OK
{
"requestId": "",
"adUnits": [
{
"adUnitId": "",
"positions": [
{
"sponsored": "true | false",
"kind": "",
"targetUrl": "https://www.example.com",
"beaconUrls": [
""
],
"clickUrls": [
""
],
"loadUrls": [
""
],
"extTracking": "{\"OnFileClickBeacon\":[\"https://tracking/fileClick\"]}",
"ext": {},
"advertiserName": "advertiser X",
"advertiserId": 1,
"campaignName": "campaign X",
"campaignId": 1,
"adGroupName": "ad group X",
"adGroupId": 1,
"demandSources": [
""
],
"associatedProducts": [
{
"gtin": "",
"beaconUrls": [
""
],
"clickUrls": [
""
],
"ext": {}
}
],
"banner": {
"assetUrl": "https://www.example.com/image.jpg",
"beaconUrls": [
""
],
"clickUrls": [
""
],
"loadUrls": [
""
],
"ext": {}
}
}
]
}
]
}400
// One or more request parameters don't comply to the API specifications.
{
"errors": [
""
]
}404
// One of the request ad unit IDs is unknown.
{
"errors": [
""
]
}