Daily reports

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET statistics https://api.admitad.com/statistics/dates/
  • offset **
  • limit **
  • date_start ***
  • date_end ***
  • website ***
  • campaign ***
  • subid ***
  • total****
  • order_by*****

Statistical data by days.*

  • * Returns the result in the JSON format.

  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.

  • *** Filter by date, ad spaces, affiliate programs and subID, respectively. For example campaign=3&campaign=4&website=8&date_start=01.01.2011, where the values are identifiers of filtered categories or filtered data. The values for dates should be in format %d.%m.%Y - 01.05.2012.

  • **** The parameter that allows to obtain aggregated data for the entire request. Possible values: 1/0 - aggregated data/not aggregated result

  • ***** Sorting order. Possible values:
    • action
    • clicks
    • cr
    • ctr
    • date
    • ecpc
    • ecpm
    • leads
    • payment_sum
    • payment_sum_approved
    • payment_sum_declined
    • payment_sum_open
    • sales
    • views

    Sign ‘-‘ before the value means inverse sort order. For example, order_by=-clicks&order_by=cr.

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/statistics/dates/?date_start=01.01.2011&limit=2&order_by=date&offset=1

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

{
    "results": [
        {
            "leads_sum": 0,
            "ctr": 0.0,
            "views": 0,
            "payment_sum_declined": 0.0,
            "clicks": 2,
            "payment_sum_approved": -1254.81,
            "currency": "RUB",
            "ecpm": 0.0,
            "sales_sum": 4,
            "sales_sum_approved": 1,
            "sales_sum_open": 1,
            "sales_sum_declined": 2,
            "leads_sum_approved": 1,
            "leads_sum_open": 2,
            "leads_sum_declined": 0,
            "date": "2011-02-24",
            "cr": 0.0,
            "ecpc": 2509.615,
            "payment_sum_open": 6274.04
        },
        {
            "leads_sum": 12,
            "ctr": 7.0,
            "views": 1,
            "payment_sum_declined": 0.0,
            "clicks": 7,
            "payment_sum_approved": 0.0,
            "currency": "RUB",
            "ecpm": 4350000.0,
            "sales_sum": 0,
            "sales_sum_approved": 0,
            "sales_sum_open": 0,
            "sales_sum_declined": 0,
            "leads_sum_approved": 0,
            "leads_sum_open": 0,
            "leads_sum_declined": 0,
            "date": "2011-07-19",
            "cr": 1.7143,
            "ecpc": 621.428571,
            "payment_sum_open": 4350.0
        }
    ],
    "_meta": {
        "count": 58,
        "limit": 2,
        "offset": 1
    }
}

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

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/statistics/dates/?date_start=01.01.2011&limit=2&order_by=date&offset=1&total=1

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

[
    {
        "leads_sum": 21594304,
        "payment_sum": 3382089.02,
        "views": 7337610,
        "payment_sum_declined": 1705783.09,
        "actions_sum_total": 22023257,
        "payment_sum_approved": 1646173.57,
        "currency": "RUB",
        "sales_sum": 21694727,
        "payment_sum_open": 1735915.45,
        "clicks": 7064253
    }
]

Description of API server response fields

Name

Description

date

Report date

currency System currencies
leads_sum

Number of leads

sales_sum

Number of sales

payment_sum_declined

The amount related to the rejected actions

payment_sum_approved

The amount related to the confirmed actions

payment_sum_open

The amount related to the actions on hold

sales_sum_approved

Number of confirmed sales

sales_sum_open

Number of sales on hold

sales_sum_declined

Number of rejected sales

leads_sum_approved

Number of confirmed leads

leads_sum_open

Number of leads on hold

leads_sum_declined

Number of leads on hold

views

The number of impressions

clicks

The number of clicks

ctr CTR
ecpc eCPC
cr

Conversion rate

ecpm eCPM