List of banners

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET banners https://api.admitad.com/banners/{c_id}/ Request parameters list.

Returns a list of banners, where с_id is the affiliate program ID. *

  • * Returns the result in the JSON format.

Request parameters list.

Name

Type

Allowed values

landing integer Landing pages
mobile_content string
  • true
  • false
uri_scheme string
  • http
  • https
  • no
offset integer limit, offset parameters
limit integer limit, offset parameters

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/banners/340/?limit=2

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

{
        "results": [
            {
                "name": "Gmail Banner",
                "size_width": 240,
                "creation_date": "2015-03-31T19:44:00",
                "size_height": 400,
                "mobile_content": true,
                "banner_image_url": "https://cdn.admitad.com/bs/2015/03/31/2c8c9dc5173456544c82a12465aadb74.png",
                "is_flash": false,
                "type": "flash",
                "id": 703
            },
            {
                "banner_flashobj_url": "https://cdn.admitad.com/bs/2015/03/23/aaab3ffd6137de8ee93149a1da0fc131.swf",
                "name": "Gmail Banner2",
                "size_width": 728,
                "creation_date": "2015-03-31T19:44:00",
                "size_height": 90,
                "mobile_content": false,
                "banner_image_url": "https://cdn.admitad.com/bs/2015/03/31/2088d0e3e765a438d6229bc62fc56c14.png",
                "is_flash": true,
                "type": "png",
                "id": 704
            }
        ],
        "_meta": {
            "count": 5,
            "limit": 2,
            "offset": 704
        }
    }

Description of API server response fields

Name

Description

id

Banner ID

name

Name of banner

size_width

Banner width

size_height

Banner height

creation_date

Banner added time

is_flash

Flash banner

type

Type of banner (png, jpeg, gif, link, flash)

banner_image_url

Link to the image banner

banner_flashobj_url

Link to the flash banner

mobile_content

Mobile content