POST https://api.targetads.io/v1/reports/path_to_conversion?project_id={project_id} {
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionType",
"InteractionMediaCampaignName",
"TargetEventName"
],
"InteractionFilter": {
"DateFrom": "2024-01-01",
"DateTo": "2024-01-31"
},
"TargetFilter": {
"DateFrom": "2024-01-01",
"DateTo": "2024-01-31",
"EventType": ["Purchase"]
},
"Offset": 0,
"Limit": 10000
}
curl -X POST "https://api.targetads.io/v1/reports/path_to_conversion?project_id=11111" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionType",
"InteractionMediaCampaignName",
"TargetEventName",
"TargetEcomAmount",
"MLI30"
],
"InteractionFilter": {
"DateFrom": "2026-06-01",
"DateTo": "2026-06-30"
},
"TargetFilter": {
"DateFrom": "2026-06-01",
"DateTo": "2026-06-30",
"EventType": ["Purchase"]
},
"Limit": 10000
}' curl -X POST "https://api.targetads.io/v1/reports/path_to_conversion?project_id=11111" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionType",
"InteractionMediaCampaignName",
"InteractionUtmSource",
"InteractionUtmMedium",
"TargetEventName",
"FL30",
"MLI30"
],
"InteractionFilter": {
"DateFrom": "2026-06-01",
"DateTo": "2026-06-30",
"UtmSource": ["google", "facebook"]
},
"TargetFilter": {
"DateFrom": "2026-06-01",
"DateTo": "2026-06-30",
"EventType": ["Purchase"]
}
}' curl -X POST "https://api.targetads.io/v1/reports/path_to_conversion?project_id=11111" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResponseType": "JSON",
"Fields": [
"InteractionTime",
"InteractionType",
"InteractionMediaCampaignName",
"InteractionMediaPlacementName",
"TargetEventName",
"MLI30"
],
"InteractionFilter": {
"DateFrom": "2026-06-01",
"DateTo": "2026-06-30",
"PlacementId": [12345, 12346],
"CreativeId": [98765]
},
"TargetFilter": {
"DateFrom": "2026-06-01",
"DateTo": "2026-06-30",
"EventType": ["Purchase"]
}
}' {
"Columns": [
"InteractionTime",
"InteractionType",
"InteractionMediaCampaignName",
"TargetEventName",
"TargetEcomAmount",
"MLI30"
],
"Rows": [
[
"2026-06-15 14:23:45",
"Impression",
"Summer Campaign 2026",
"Purchase",
"12990.00",
"1.0"
]
],
"CountRows": 1
} def get_all_paths(project_id, date_from, date_to):
offset = 0
limit = 100000
all_paths = []
while True:
response = get_path_to_conversion(
project_id=project_id,
date_from=date_from,
date_to=date_to,
offset=offset,
limit=limit
)
all_paths.extend(response['data'])
if len(response['data']) < limit:
break
offset += limit
return all_paths {
"ErrorCode": 400,
"ErrorMessage": "validate error",
"ErrorsField": [
{
"FiledName": "Interaction or Target DateTo and DateFrom is required",
"Value": ""
}
]
} Лимиты и ограничения
API имеет технические ограничения, которые следует
учитывать при построении интеграции:
Таймаут: 600 секунд