Skip to content

Apple Ads report

POST
/v1/report/apple_search_ads/ad_group
curl --request POST \
--url 'https://restapi.affattr.com/v1/report/apple_search_ads/ad_group?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[partners]": [ 1 ], "format": "example", "limit": 1, "offset": 1, "only": "example", "page": 1, "to_currency": "example", "tz": "example" }'

Apple Ads cost, taps, impressions and installs by campaign, ad group, keyword and country (by time_slot). Formats: tree, plain, csv; params returns the values of the filters. filter[environment] does not apply. Client API key only.

only
string
Allowed values: currencies

With format=params: currencies returns {\

Request

Media type application/json
object
build_by_period

_, install, all

string
dimensions

See DimensionsList

Array<string>
Allowed values: date app_id campaign_id campaign_status keyword_id ad_group_id ad_channel_type ad_id country
filter
object
key
additional properties
Array
filter[applications]
Array<integer>
filter[date_from]
string
filter[date_to]
string
filter[partners]
Array<integer>
format

"", csv, tree, plain, params

string
limit
integer
offset
integer
only

Only with format=params narrows the answer: “currencies” returns the currency list alone.

string
page
integer
to_currency

ToCurrency is the currency of the money metrics; empty keeps the historical USD.

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