Read saved Ads campaign groups
curl --request POST \
--url https://omnicommerce.ai/api/v1/ads/campaigns/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaignIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({campaignIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://omnicommerce.ai/api/v1/ads/campaigns/read', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/ads/campaigns/read"
payload = { "campaignIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
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,
"results": [
{
"id": "<string>",
"success": true,
"error": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"specification": {
"name": "<string>",
"objective": "product_sales",
"schedule": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"productIds": [
"<string>"
],
"deployments": [
{
"store": {
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
},
"adFormat": "<string>",
"currency": "<string>",
"dailyBudget": "<string>",
"dailyLimit": "<string>",
"totalLimit": "<string>",
"bidding": {
"strategy": "auto"
}
}
]
},
"plans": [
{
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"campaign_id": "<string>",
"ad_format": "<string>",
"bidding": {
"strategy": "auto"
},
"marketplace": "shopee",
"country": "<string>",
"store_id": "<string>",
"currency": "<string>",
"starts_on": "<string>",
"ends_on": "<string>",
"daily_limit_millis": "<string>",
"total_limit_millis": "<string>",
"status": "draft",
"approved_by": "<string>",
"stopped_by": "<string>",
"min_roas": "<string>",
"min_evaluation_spend_millis": "<string>",
"target_count": 123
}
],
"planIds": [
"<string>"
],
"statusCounts": {},
"totalStores": 123,
"nextOffset": 0
}
}
],
"campaignIds": [
"<string>"
]
}
}Ads
Read saved Ads campaign groups
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
/
campaigns
/
read
Read saved Ads campaign groups
curl --request POST \
--url https://omnicommerce.ai/api/v1/ads/campaigns/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaignIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({campaignIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://omnicommerce.ai/api/v1/ads/campaigns/read', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/ads/campaigns/read"
payload = { "campaignIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
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,
"results": [
{
"id": "<string>",
"success": true,
"error": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"specification": {
"name": "<string>",
"objective": "product_sales",
"schedule": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"productIds": [
"<string>"
],
"deployments": [
{
"store": {
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
},
"adFormat": "<string>",
"currency": "<string>",
"dailyBudget": "<string>",
"dailyLimit": "<string>",
"totalLimit": "<string>",
"bidding": {
"strategy": "auto"
}
}
]
},
"plans": [
{
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"campaign_id": "<string>",
"ad_format": "<string>",
"bidding": {
"strategy": "auto"
},
"marketplace": "shopee",
"country": "<string>",
"store_id": "<string>",
"currency": "<string>",
"starts_on": "<string>",
"ends_on": "<string>",
"daily_limit_millis": "<string>",
"total_limit_millis": "<string>",
"status": "draft",
"approved_by": "<string>",
"stopped_by": "<string>",
"min_roas": "<string>",
"min_evaluation_spend_millis": "<string>",
"target_count": 123
}
],
"planIds": [
"<string>"
],
"statusCounts": {},
"totalStores": 123,
"nextOffset": 0
}
}
],
"campaignIds": [
"<string>"
]
}
}Authorizations
Body
application/json
Response
Operation result.