Skip to content

Activity events report

POST
/v1/report/activity_events
curl --request POST \
--url 'https://restapi.affattr.com/v1/report/activity_events?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" }'

Installs, sessions and events with active and loyal users; the tree format adds extra.top_blocks (totals of the period and current/average DAU and MAU). Formats: tree (default), plain, csv2, params. filter[environment]: default all. 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.

only
string
Allowed values: currencies

With format=params: currencies returns {\

Request

Media type application/json
object
build_by_period

_, install, all

string
dimensions
Array<string>
Allowed values: date install_date hours day week month client_id app_id app_version sdk_version partner_id event conversion_type country continent region city currency product_id fraud blocked_reason cap_id google_customer_id google_ad_group_id google_ad_group_name google_ad_type google_campaign_id google_campaign_name network skan_campaign_id skan_campaign_name conversion_value coarse_conversion_value fidelity_type redownload fb_account_id fb_ad_id fb_ad_objective_name fb_adgroup_id fb_adgroup_name fb_campaign_id fb_campaign_name fb_campaign_group_id fb_campaign_group_name click_ad_id click_ad_name click_ad_set click_ad_set_id click_ad_type click_campaign_id click_campaign_name click_site_id click_sub_site_id click_media_type click_partner_name click_sub1 click_sub2 click_sub3 click_sub4 click_sub5 shortlink_id singlelink_id os_name os_version device_manufacturer device_model device_type language session_start_from session_start_to days_since_last_session_from days_since_last_session_to sessions_count_from sessions_count_to days_since_install_from days_since_install_to with_organic
filter
object
key
additional properties
Array
filter[applications]
Array<integer>
filter[date_from]
string
filter[date_to]
string
filter[environment]

Production, sandbox or all; the default depends on the report

string
filter[partners]
Array<integer>
format

Tree, plain, csv2, params

string
only

With format=params: currencies

string
skad_installs

SkadInstalls is the “SKAdNetwork installs” switch: SKAN installs move from organic to the partner of the network. Only in the reports that count installs.

boolean
to_currency
string
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"
}