Ad spaces joined to the program
Parameters
HTTP method | Access rights | URL | Parameters | Note |
---|---|---|---|---|
GET | advertiser_websites | https://api.admitad.com/ |
|
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",
"name": "my facebook profile 96-1",
"site_url": "https://www.facebook.com/96-1",
"id": 22
}
},
{
"user": {
"id": 96,
"name": "webmaster_1"
},
"website": {
"code": "8cb0fd8d17",
"name": "my facebook profile 96-2",
"site_url": "https://www.facebook.com/96-2",
"id": 25
}
},
{
"user": {
"id": 97,
"name": "webmaster_1_ref1"
},
"website": {
"code": "351a105bf9",
"name": "my facebook profile 97",
"site_url": "https://www.facebook.com/97",
"id": 24
}
}
]
}
Description of API server response fields
Name | Description |
---|---|
user | Information about publisher |
website | Information about ad space |
Active ad spaces of the affiliate program (detailed)
Parameters
HTTP method | Access rights | URL | Parameters | Note |
---|---|---|---|---|
GET | advertiser_websites | https://api.admitad.com/ |
|
The list of active ad spaces connected to the affiliate program, with detailed information on the publisher's region and the date the ad space was connected. |
- * 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/details/?limit=3"
Example of the response from the API server in the JSON format:
{
"_meta": {
"count": 2,
"limit": 3,
"offset": 0
},
"results": [
{
"id": 1,
"user": {
"id": 3,
"name": "webmaster_1",
"region": "RU"
},
"website": {
"id": 1,
"code": "faf5349iop"
"name": "my facebook profile 1",
"site_url": "https://www.facebook.com/1",
"start_date": "2019-06-10"
},
},
{
"id": 2,
"user": {
"id": 4,
"name": "webmaster_2",
"region": "EN"
},
"website": {
"id": 2, "code": "faf5349hjk"
"name": "my facebook profile 2",
"site_url": "https://www.facebook.com/2",
"start_date": "2020-11-05"
},
},
]
}
Description of API server response fields
Name | Description |
---|---|
user | Information about publisher |
website | Information about ad space |