Query advertising metrics
curl --request GET \
--url https://app.bily.ai/api/customer/v1/ad-metrics/{resourceUrl} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.bily.ai/api/customer/v1/ad-metrics/{resourceUrl}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.bily.ai/api/customer/v1/ad-metrics/{resourceUrl}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"shop": "<string>",
"date": "2023-12-25",
"time": "<string>",
"channel": "<string>",
"ad_id": "<string>",
"p_spend": 123,
"conversions": 123,
"conv_value": 123,
"id": "<string>",
"model": "<string>",
"window": "<string>",
"adset_id": "<string>",
"campaign_id": "<string>",
"ad_name": "<string>",
"adset_name": "<string>",
"campaign_name": "<string>",
"ad_status": "<string>",
"adset_status": "<string>",
"campaign_status": "<string>",
"p_clicks": 123,
"p_impressions": 123,
"p_reach": 123,
"customers": 123,
"sessions": 123,
"pageviews": 123,
"p_currency": "<string>",
"fp_currency": "<string>",
"asset_found": true
}
]{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}Analytics
Query advertising metrics
Returns normalized advertising and attribution rows for the selected store and date range.
GET
/
ad-metrics
/
{resourceUrl}
Query advertising metrics
curl --request GET \
--url https://app.bily.ai/api/customer/v1/ad-metrics/{resourceUrl} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.bily.ai/api/customer/v1/ad-metrics/{resourceUrl}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.bily.ai/api/customer/v1/ad-metrics/{resourceUrl}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"shop": "<string>",
"date": "2023-12-25",
"time": "<string>",
"channel": "<string>",
"ad_id": "<string>",
"p_spend": 123,
"conversions": 123,
"conv_value": 123,
"id": "<string>",
"model": "<string>",
"window": "<string>",
"adset_id": "<string>",
"campaign_id": "<string>",
"ad_name": "<string>",
"adset_name": "<string>",
"campaign_name": "<string>",
"ad_status": "<string>",
"adset_status": "<string>",
"campaign_status": "<string>",
"p_clicks": 123,
"p_impressions": 123,
"p_reach": 123,
"customers": 123,
"sessions": 123,
"pageviews": 123,
"p_currency": "<string>",
"fp_currency": "<string>",
"asset_found": true
}
]{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Headers
Path Parameters
Query Parameters
Response
Request completed successfully.