POST /v1/reports/raw_reports?project_id={project_id} {
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionDeviceID",
"InteractionType",
"InteractionMediaCampaignName",
"InteractionDomain"
],
"InteractionFilter": {
"DateFrom": "2024-01-01",
"DateTo": "2024-01-31",
"InteractionType": ["Impression", "Click"],
"MediaCampaignId": [12345, 12346]
},
"Offset": 0,
"Limit": 10000
} {
"ProjectId": 11111,
"ResponseType": "JSON",
"Fields": ["InteractionDeviceID", "InteractionTime", "InteractionType"],
"Stable": 1,
"InteractionFilter": {
"DateFrom": "2025-01-01",
"DateTo": "2025-01-31",
"InteractionType": ["Impression"]
}
}
curl -X POST "https://api.targetads.io/v1/reports/raw_reports?project_id=11111" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionDeviceID",
"InteractionType",
"InteractionMediaCampaignName",
"InteractionDomain"
],
"InteractionFilter": {
"DateFrom": "2024-01-01",
"DateTo": "2024-01-31",
"InteractionType": ["Impression", "Click"]
},
"Limit": 10000
}' curl -X POST "https://api.targetads.io/v1/reports/raw_reports?project_id=11111" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionDeviceID",
"InteractionType",
"InteractionMediaCampaignName",
"InteractionCountry",
"InteractionCity",
"InteractionDeviceType",
"InteractionBrowserName"
],
"InteractionFilter": {
"DateFrom": "2024-01-01",
"DateTo": "2024-01-31",
"InteractionType": ["Impression"],
"MediaCampaignId": [12345, 12346],
"DeviceType": ["mobile", "desktop"]
},
"Limit": 50000
}' curl -X POST "https://api.targetads.io/v1/reports/raw_reports?project_id=11111" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionDeviceID",
"InteractionEcomId",
"InteractionEcomAmount",
"InteractionEcomItemsName",
"InteractionEcomItemsPrice"
],
"InteractionFilter": {
"DateFrom": "2024-01-01",
"DateTo": "2024-01-31",
"InteractionType": ["Purchase"]
}
}' {
"data": [
{
"InteractionTime": "2024-01-15 14:23:45",
"InteractionDeviceID": "abc123def456",
"InteractionType": "Impression",
"InteractionMediaCampaignName": "Campaign Name",
"InteractionDomain": "example.com"
}
],
"count": 1
} {
"ErrorCode": 400,
"ErrorMessage": "validate error",
"Errors": [
{
"Error": true,
"FailedField": "DateFrom",
"Tag": "required",
"Value": null
}
]
} Лимиты и ограничения
API имеет технические ограничения, которые следует
учитывать при построении интеграции:
Таймаут: 300 секунд