Admin APIAds
Get ads performance
Daily spend, impressions, clicks and purchases from the Meta ad account
next to the orders our own first-touch attribution assigns to Meta.
A Meta failure is reported in meta.error, not as an error response.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidQuery Parameters
days?integer
Days back, 1 to 90. Defaults to 30.
Format
int64Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/ads/performance"{
"all_orders": {
"orders": 0,
"revenue_cents": 0
},
"attributed": {
"orders": 0,
"revenue_cents": 0,
"series": [
{
"day": "2019-08-24",
"orders": 0,
"revenue_cents": 0
}
]
},
"days": 0,
"meta": {
"configured": true,
"error": "string",
"series": [
{
"clicks": 0,
"day": "string",
"impressions": 0,
"meta_purchase_value": 0.1,
"meta_purchases": 0.1,
"spend": 0.1
}
],
"spend": 0.1
},
"roas": 0
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}