Read live Ads performance
curl --request POST \
--url https://omnicommerce.ai/api/v1/ads/performance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stores": [
{
"country": "<string>",
"storeId": "<string>",
"campaignIds": [
"<string>"
]
}
],
"from": "2023-12-25",
"to": "2023-12-25"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stores: [{country: '<string>', storeId: '<string>', campaignIds: ['<string>']}],
from: '2023-12-25',
to: '2023-12-25'
})
};
fetch('https://omnicommerce.ai/api/v1/ads/performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/ads/performance"
payload = {
"stores": [
{
"country": "<string>",
"storeId": "<string>",
"campaignIds": ["<string>"]
}
],
"from": "2023-12-25",
"to": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"success": true,
"succeededCount": 0,
"failedCount": 0,
"stores": [
{
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
}
],
"results": [
{
"store": {
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
},
"success": true,
"data": [
{
"campaignId": "<string>",
"from": "<string>",
"to": "<string>",
"currency": "<string>",
"basis": "shopee_direct",
"spend": 123,
"impressions": 123,
"clicks": 123,
"attributedSales": 123,
"attributedOrders": 123
}
],
"error": "<string>"
}
]
}
}Ads
Read live Ads performance
Requires ads:read. Every target is organization/store scoped.
Partial failures are explicit in data.success and ordered results.
Shopee and Lazada support only the formats returned by accounts. Other marketplaces report a concrete limitation. External campaign IDs differ from saved campaign group UUIDs.
POST
/
api
/
v1
/
ads
/
performance
Read live Ads performance
curl --request POST \
--url https://omnicommerce.ai/api/v1/ads/performance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stores": [
{
"country": "<string>",
"storeId": "<string>",
"campaignIds": [
"<string>"
]
}
],
"from": "2023-12-25",
"to": "2023-12-25"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stores: [{country: '<string>', storeId: '<string>', campaignIds: ['<string>']}],
from: '2023-12-25',
to: '2023-12-25'
})
};
fetch('https://omnicommerce.ai/api/v1/ads/performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/ads/performance"
payload = {
"stores": [
{
"country": "<string>",
"storeId": "<string>",
"campaignIds": ["<string>"]
}
],
"from": "2023-12-25",
"to": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"success": true,
"succeededCount": 0,
"failedCount": 0,
"stores": [
{
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
}
],
"results": [
{
"store": {
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
},
"success": true,
"data": [
{
"campaignId": "<string>",
"from": "<string>",
"to": "<string>",
"currency": "<string>",
"basis": "shopee_direct",
"spend": 123,
"impressions": 123,
"clicks": 123,
"attributedSales": 123,
"attributedOrders": 123
}
],
"error": "<string>"
}
]
}
}Authorizations
Body
application/json
Response
Operation result.