Editing the publisher’s ad space

Parameters

HTTP method

Access rights

URL

Parameters

Note

POST manage_websites https://api.admitad.com/websites/v2/update/{id}/ Request parameters list.
  • Request data format application/json

  • Returns the updated ad space.*, where id is the ad space ID.*

  • * Returns the result in the JSON format.

Request parameters list.

Name

Type

Required

Settings restrictions

Note, allowed values

name string   max length - 200  
url string   max length - 255  

Example of data for a request

{
    "name": "Test Website Updated",
    "url": "https://updated.test/"
}

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -H "Content-Type: application/json" -X POST https://api.admitad.com/websites/v2/update/63/ -d '{ "name": "Test Website Updated", "url": "https://updated.test/"}'

Example of a raw request:

POST /websites/v2/update/63/ HTTP/1.1
User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Host: api.admitad.com
Accept: */*
Authorization: Bearer access_token
Content-Type: application/json

{
    "name": "Test Website Updated",
    "url": "https://updated.test/"
}

Example of the response from the API server in the JSON format:

{
    "status": "active",
    "kind": "website",
    "is_old": true,
    "account_id": "",
    "verification_code": "59505879f5",
    "creation_date": "2010-03-31T18:25:19",
    "adservice": null,
    "id": 22,
    "site_url": "https://updated.test/",
    "validation_passed": false,
    "name": "Test Website Updated",
    "is_lite": false
}

Description of API server response fields

Name

Description

id

Ad space ID

name

Name of ad space

status

Ad space status

creation_date

Ad space creation date

site_url

Ad space website

verification_code

Verification code

validation_passed

Indicator for successful validation

is_old

Old-type indicator

account_id

Account identifier

is_lite

Whether this is a Lite ad space

kind Types of ad spaces
adservice List of advertising services