Available program levels

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET webmaster_retag https://api.admitad.com/retag/advcampaign/ {advcampaign_id}/levels/
  • limit*
  • offset*
  • Returns the list of program levels for setting a ReTag

  • * 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/retag/advcampaign/6/levels/

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

{
    "_meta": {
        "count": 4,
        "limit": 20,
        "offset": 0
    },
    "results": [
        {
            "advcampaign": {
                "id": 6,
                "name": "AdvCamp 1"
            },
            "id": 78,
            "level": "Level 1. Main page"
        },
        {
            "advcampaign": {
                "id": 6,
                "name": "AdvCamp 1"
            },
            "id": 81,
            "level": "Level 2. Categories page"
        },
        {
            "advcampaign": {
                "id": 6,
                "name": "AdvCamp 1"
            },
            "id": 82,
            "level": "Level 3. Product page"
        },
        {
            "advcampaign": {
                "id": 6,
                "name": "AdvCamp 1"
            },
            "id": 83,
            "level": "Level 5. Page \"Thank you\""
        }
    ]
}

Description of API server response fields

Name

Description

id

Level identifier (unique for each program level)

name

Name of level

advcampaign

Information about the program