List of ReTag tags¶
Parameters¶
HTTP method |
Access rights |
URL | Parameters |
Note |
---|---|---|---|---|
GET | webmaster_retag | https://api.admitad.com/retag/ |
|
Returns the list of Postback URLs.* |
GET | webmaster_retag | https://api.admitad.com/retag/{id}/ |
Returns the postback url, where id is code identifier.* |
* Returns the result in the JSON format.
** Sets skipping and the number of records returned. For example limit=5&offset=2.
*** Filter by publisher’s ad spaces. For example, &website=12, where the value is the ad space identifier.
**** Filter by active/inactive ReTag codes. For example, &active=0, only inactive &active=1, only active
Example of use¶
Example of a request with utility ``curl``:
curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/retag/?limit=2
curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/retag/3/
Example of the response from the API server in the JSON format:
{
"_meta": {
"count": 8,
"limit": 2,
"offset": 0
},
"results": [
{
"active": false,
"comment": "Test",
"id": 11,
"level": {
"campaign": {
"id": 6,
"name": "AdvCamp 1"
},
"id": 78,
"name": "Level 1. Main page"
},
"script": "<script>console.log('test script')</script>",
"status": 1,
"website": {
"id": 22,
"name": "site1_of_webmaster1"
}
},
{
"active": true,
"comment": "Test script #2",
"id": 15,
"level": {
"campaign": {
"id": 6,
"name": "AdvCamp 1"
},
"id": 78,
"name": "Level 1. Main pageа"
},
"script": "<script>console.log(\"loaded\")</script>",
"status": 2,
"website": {
"id": 22,
"name": "site1_of_webmaster1"
}
}
]
}
Description of API server response fields¶
Name |
Description |
---|---|
id | Tag identifier |
website | Tag ad space |
comment | Comment to the tag |
level | |
script | Tag |
active | Activation status (true - active, false - inactive) |
status | Moderation status (0 - accepted, 1 - rejected, 2 - in moderation, 3 - active, 4 - stopped, 5 - stopped by the advertiser) |