...
Requires HTTP basic authentication.
All methods accept POST requests with {dmp} path variable and token query parameter:
{dmp}is your DMP ID in GetIntenttokenis your user API token
...
Content-Type: application/json
Verb: POST
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"id": 1000,
"name": "Mens 18-24",
"cost_type": "RATE",
"cost_value": 20,
"currency": "USD",
"advertisers": [
1000,
2000,
3000
]
}
{
"ok": true,
"result": {
"id": 12345
}
} |
...
URL: https://dmp-api.adhigh.net/api/v1/{dmp}/batch?token=token&with_header=true
Query parameter with_header must be set to true if the file contains header (optional, defaults to true).
Content-Type: application/gzip
Verb: POST
Users batch file must be sent as a request body.
...
Note that the file will be processed in real time if the size does not exceed 5 megabytes.
An endpoint for getting information about segments
URL: https://dmp-api.adhigh.net/api/v1/{dmp}/segments?token=token
Verb: GET
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"ok": true,
"result": [{
"id": "12345",
"name": "12345",
"cost_type": "NONE",
"cost_value": 0.0,
"currency": null,
"advertisers": [123],
"status": "CREATED"
}]
} |
An endpoint for getting information about a particular segment
URL: https://dmp-api.adhigh.net//api/v1/{dmp}/segments/{segment_id}?token=token
Verb: GET
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"ok": true,
"result": {
"id": "12345",
"name": "12345",
"cost_type": "NONE",
"cost_value": 0.0,
"currency": null,
"advertisers": [123],
"status": "CREATED"
}
}
|