Ad settings

This endpoint can be used to create / update the advertisement-settings.

Reference

GET /adsettings/[<adId>]

Retrieve the current settings

POST /adsettings/

Create / Replace the current settings


Fields

field type constraints Req W U
adId int Yes Yes No
settings array List of settings-objects Yes Yes Yes


Example retrieving settings

Request

GET /rest/v1/adsettings/659593/ HTTP/2

Response

{
 "result": true,
 "errors": [],
 "data": {
   "adId": 659593,
   "settings": [
     {
       "portal": "marktplaats",
       "showcontact": true,
       "autoreplace": false,
       "video": ""
     }
   ]
 }
}


Example updating settings

Request

POST /rest/v1/adsettings/ HTTP/2
{
 "adId": 664586,
 "settings": [
   {
     "portal": "marktplaats",
     "showcontact": true,
     "autoreplace": false,
     "video": "https://media.taggle.nl/238934/283928382.mp4"
   }
 ]
}

Response

{
 "result": true,
 "errors": [],
 "data": {
   "adId": 664586,
   "settings": [
     {
       "portal": "marktplaats",
       "showcontact": true,
       "autoreplace": false,
       "video": "media.taggle.nl/238934/283928382.mp4"
     }
   ]
 }
}