Overview report
const url = 'https://restapi.affattr.com/v1/report/overview?only=currencies';const options = { method: 'POST', headers: {'API-KEY': '<API-KEY>', 'Content-Type': 'application/json'}, body: '{"build_by_period":"example","dimensions":["date"],"filter":{"additionalProperty":["example"]},"filter[applications]":[1],"filter[date_from]":"example","filter[date_to]":"example","filter[environment]":"example","filter[partners]":[1],"format":"example","only":"example","skad_installs":true,"to_currency":"example","tz":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://restapi.affattr.com/v1/report/overview?only=currencies' \ --header 'API-KEY: <API-KEY>' \ --header 'Content-Type: application/json' \ --data '{ "build_by_period": "example", "dimensions": [ "date" ], "filter": { "additionalProperty": [ "example" ] }, "filter[applications]": [ 1 ], "filter[date_from]": "example", "filter[date_to]": "example", "filter[environment]": "example", "filter[partners]": [ 1 ], "format": "example", "only": "example", "skad_installs": true, "to_currency": "example", "tz": "example" }'Impressions, clicks, installs, sessions, events, conversions, uninstalls, revenue, ad revenue and costs by date, app_id, partner_id, app_version, sdk_version. Formats: tree (default), plain, csv2, params. filter[environment]: default all; does not apply to clicks, impressions, trafficbacks and ad cost. Agency key: allowed (one application of the agency in filter[applications], its partners only). For it revenue is the payout to the agency; the client revenue, refunds and cost are hidden; ad_revenue and ad_cost are kept.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”With format=params: currencies returns {\
Request Body required
Section titled “Request Body required ”Request
object
_, install, all
object
Production, sandbox or all; the default depends on the report
Tree, plain, csv2, params
With format=params: currencies
SkadInstalls is the “SKAdNetwork installs” switch: SKAN installs move from organic to the partner of the network. Only in the reports that count installs.
Responses
Section titled “ Responses ”Report data
object
Example generated
{}Bad request
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}No credentials (answered with 403 until default-deny is enabled)
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Invalid credentials or no access
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Internal server error
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}