Skip to content

Ad revenue report

POST
/v1/report/ad_revenue
curl --request POST \
--url https://restapi.affattr.com/v1/report/ad_revenue \
--header 'API-KEY: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{ "build_by_period": "example", "dimensions": [ "date" ], "filter": { "additionalProperty": [ "example" ] }, "filter[applications]": [ 1 ], "filter[data_source]": [ "example" ], "filter[date_from]": "example", "filter[date_to]": "example", "filter[environment]": "example", "filter[partners]": [ 1 ], "format": "example", "limit": 1, "offset": 1, "page": 1, "tz": "example" }'

Ad revenue (monetization of ads shown in the app) from the SDK and the ad network integrations, by event_time (SDK) and time_slot (networks). Formats: tree, plain, csv, params. filter[environment]: default production. Client API key only.

Request

Media type application/json
object
build_by_period
string
dimensions
Array<string>
Allowed values: date app_id country placement platform ad_unit_id data_source ad_source ad_network ad_format
filter
object
key
additional properties
Array
filter[applications]
Array<integer>
filter[data_source]
Array<string>
filter[date_from]
string
filter[date_to]
string
filter[environment]

Production (default), sandbox, all

string
filter[partners]
Array<integer>
format
string
limit
integer
offset
integer
page
integer
tz
string

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"
}