List of advertising services

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET public_data https://api.admitad.com/adservices/
  • offset**
  • limit**

Returns the list of advertising services.*

GET public_data https://api.admitad.com/adservices/{id}/  

Returns the advertising service, where id is the advertising service identifier.*

GET public_data https://api.admitad.com/adservices/kind/{k_id}/
  • offset**
  • limit**

Returns a list of advertising services for a certain type of ad space, where k_id is the type of the ad space.*

GET public_data https://api.admitad.com/adservices/{id}/kind/{k_id}/  

Returns the advertising service for a certain type of ad space, where k_id is the type of ad space, and id is service ID.*

  • * Returns the result in the JSON format.

  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.

Example of use

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

curl -L -H 'Authorization: Bearer access-token' -X GET https://api.admitad.com/adservices/?limit=1&offset=2

curl -L -H 'Authorization: Bearer access-token' -X GET https://api.admitad.com/adservices/12/

curl -L -H 'Authorization: Bearer access-token' -X GET https://api.admitad.com/adservices/kind/website/?limit=1&offset=2

curl -L -H 'Authorization: Bearer access-token' -X GET https://api.admitad.com/adservices/12/kind/website/

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

{
    "results": [
        {
            "url": "http://adwords.google.com/",
            "logo": "http://admitad.com/some_image.png",
            "id": 3,
            "name": "Google AdWords",
            "allowed_referrers": "google.com\r\ndoubleclick.net"
        }
    ],
    "_meta": {
        "count": 9,
        "limit": 1,
        "offset": 2
    }
}

Description of API server response fields

Name

Description

id

Advertising service identifier

name

Name of ad service

logo

Advertising service logo

allowed_referrers

Allowed referrers

url

Link to the advertising service website