Parameters
HTTP method | Access rights | URL | Note |
---|---|---|---|
GET | advertiser_info | https://api.admitad.com/ |
Information about the program required for integration. |
GET | advertiser_info | https://api.admitad.com/ |
Information about the user's programs required for integration. |
- * Returns the result in the JSON format.
Example of use
Example of a request with utility ``curl``:
curl -L -H 'Authorization: Bearer access_token' -X GET
"https://api.admitad.com/advertiser/6/info/"
Example of the response from the API server in the JSON format:
{
"campaign_name": "AdvCamp 1",
"campaign_id": 6,
"actions": [
{
"action_code": "1",
"tariffs": [
{
"default": true,
"tariff_name": "test",
"tariff_id": 8,
"tariff_code": "1"
}
],
"action_id": 6,
"action_name": "lead action"
},
{
"action_code": "2",
"tariffs": [
{
"default": true,
"tariff_name": "sale tariff default",
"tariff_id": 6,
"tariff_code": "1"
},
{
"default": false,
"tariff_name": "sale tariff 2",
"tariff_id": 7,
"tariff_code": "2"
}
],
"action_id": 7,
"action_name": "sale action"
}
],
"campaign_code": "234642e5a7",
"postback_key": "123456789012345678901234567890qw"
}
The method advertiser/info returns an array of similar structures.
Description of API server response fields
Name | Description |
---|---|
campaign_name | Program name |
campaign_id | Program ID |
campaign_code | Program code |
postback_key | Authorization key for postback requests |
action_code | Action code |
action_id | Action ID |
action_name | Action name |
default | Default rate |
tariff_id | Rate ID |
tariff_code | Rate code |
tariff_name | Rate name |