Skip to content

Conversions report

POST
/v1/report/conversions
curl --request POST \
--url https://restapi.affattr.com/v1/report/conversions \
--header 'API-KEY: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{ "build_by_period": "example", "filter[applications]": [ 1 ], "filter[countries]": [ "example" ], "filter[currencies]": [ "example" ], "filter[date_from]": "example", "filter[date_to]": "example", "filter[environment]": "example", "filter[partners]": [ 1 ], "format": "example", "to_currency": "example", "tz": "example" }'

Impressions, clicks, installs, conversions, CTR, CR and revenue by partner and by hour of the day, with top blocks against the previous period of the same length. Formats: json (default), csv. filter[environment]: default all; does not apply to clicks and impressions. Client API key only.

Request

Media type application/json
object
build_by_period

_, install, all

string
filter[applications]
Array<integer>
filter[countries]
Array<string>
filter[currencies]
Array<string>
filter[date_from]
string
filter[date_to]
string
filter[environment]

All (default), production, sandbox

string
filter[partners]
Array<integer>
format

"", csv

string
to_currency
string
tz
string
Example generated
{
"build_by_period": "example",
"filter[applications]": [
1
],
"filter[countries]": [
"example"
],
"filter[currencies]": [
"example"
],
"filter[date_from]": "example",
"filter[date_to]": "example",
"filter[environment]": "example",
"filter[partners]": [
1
],
"format": "example",
"to_currency": "example",
"tz": "example"
}

Report data

Media type application/json
object
key
additional properties
any
Example generated
{}

Bad request

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

No credentials (answered with 403 until default-deny is enabled)

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Invalid credentials or no access

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Internal server error

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}