Ad spaces joined to the program

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET advertiser_websites https://api.admitad.com/advertiser/{c_id}/websites
  • offset**
  • limit**

The list of active ad spaces that are joined to the program.

  • * Returns the result in the JSON format.

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

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X GET "https://api.admitad.com/advertiser/1/websites/?limit=3"

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

{
    "_meta": {
        "count": 3,
        "limit": 10,
        "offset": 0
    },
    "results": [
        {
            "user": {
                "id": 96,
                "name": "webmaster1"
            },
            "website": {
                "code": "59505879f5",
                "id": 22
            }
        },
        {
            "user": {
                "id": 96,
                "name": "webmaster1"
            },
            "website": {
                "code": "8cb0fd8d17",
                "id": 25
            }
        },
        {
            "user": {
                "id": 97,
                "name": "webmaster1_ref1"
            },
            "website": {
                "code": "351a105bf9",
                "id": 24
            }
        }
    ]
}

Description of API server response fields

Name

Description

user

Information about publisher

website

Information about ad space