View Conversion report
Copied
https://api.ocamba.com/v1/hood/reports/conversions
Copied
https://api.ocamba.com/v1/hood/reports/conversions
Obtain various conversion reports
Name
Descriptionsortstring
Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix "-" for descending).Examples:
GET /VERSION/hood/RESOURCE_NAME?sort=name → sorts per name, ascending
GET /VERSION/hood/RESOURCE_NAME?sort=-id → sorts per id descending
GET /VERSION/hood/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending
See tips for the list of sortable fields.
Example: sort=-field1,field2
pagestring
The page number indicates which set of items will be returned in the response. The format of request is "page=N,M" where 'N' (required) represents page number and 'M' (optional) is number of items per page.Examples:
N=1, M=20 → returns page 1 with 20 items
N=2, M=20 → returns page 2 with 20 items (items 21-40)
N=3 → returns page 3. The number of objects returned depends on the resource settings.
Example: page=1,10
200 - OK
Name
Descriptionassignedinteger
DimensionDescribes if conversion is assigned.
client_idinteger
DimensionThe id of the user that triggered the conversion event.
Example: 18828993939090293000
container_idinteger
DimensionUnique container identifier generated on Ocamba platform.
Example: 126598752
container_namestring
DimensionContainer name created on Ocamba platform.
Example: test.demo.com
conversion_idinteger
DimensionUnique conversion identifier generated by Ocamba.
Example: 1000120
conversion_namestring
DimensionThe conversion name.
Example: Example conversion
country_codestring
DimensionThe code of the geographical country.
Example: RS
country_namestring
DimensionThe name of the geographical country.
Example: Serbia
currency_codestring
DimensionThe currrency code of the conversion. Must be USD.
Example: USD
Possible values: USD
delivery_datedate
DimensionThe task execution date.
Example: 2021-12-27
delivery_timedate
DimensionThe time when message was delivered.
Example: 2024-06-14T09:34:52Z
device_typestring
DimensionThe type of the device.
Example: mobile
Possible values: desktop | mobile | unknown
eventinteger
Event used for attributing conversion, determining price and campaign/user score. Conversion is attributed only if event matches the conversion structure.Example: 12345
event_datedate
DimensionThe date on which the statistic was taken.
Example: 2024-06-14
event_timedate
DimensionThe date on which the statistic was taken.
Example: 2024-06-14T09:34:52Z
partner_idinteger
DimensionDeals partner id created on Ocamba platform.
Example: 1000002
partner_namestring
DimensionDeals partner name created on Ocamba platform.
Example: Jane Doe
pricenumber (decimal)
DimensionThe price of conversion.
Example: 12.5
referenceinteger
Unique ID provided by the advertiser, used to make sure conversion is counted only once.Example: 12345
scorestring
DimensionA metric indicating the effectiveness of campaigns in driving desired user actions. Higher scores reflect better conversion performance and are based on tracked events and user behavior.
Example: 15
session_idinteger
ID of a browser session generated by Ocamba.Example: 12345
spaminteger
DimensionInternal spam conversion identifier.
Example: 512
spam_reasonstring
DimensionReason why the conversion is spam.
Example: repeated
structurestring
Determines how payments will be calculated for this deal.Example: cpi
Possible values: unknown | cpc | cpm | cpa | cpi | cpl | cpe | cps | cpv | performance-based | subscription-based | flat-fee | hybrid
tag_idinteger
DimensionHood tag id created on Ocamba platform.
Example: 12752
tag_namestring
DimensionHood tag name created on Ocamba platform.
Example: test.demo.com
task_idinteger
DimensionUnique task identifier generated by Ocamba.
Example: 1002600
task_namestring
DimensionThe task name.
Example: Demo task
typestring
Determines if conversion is for advertiser(dsp) or publisher(ssp).Example: ssp
Possible values: ssp | dsp
tip
1 Sortable fields are: conversion_id, conversion_name, task_id, task_name, currency_code, price, delivery_date, event_date, event_time, spam, spam_reason, assigned, partner_id, partner_name, tag_id, tag_name, container_id, container_name, country_code, country_name, device_type, reference, score, session_id, type, event, structure, client_id.
2 Filtrable fields are: conversion_id, conversion_name, task_id, task_name, currency_code, price, delivery_date, event_date, event_time, spam, spam_reason, assigned, partner_id, partner_name, tag_id, tag_name, container_id, container_name, country_code, country_name, device_type, reference, score, session_id, type, event, structure, client_id.
3 To get data by the time in your local time zone, you should set tz query parameter to the specific time zone. See the list of valid time zones here -> https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List.
4 For easier search, Reports API gives you the possibility of using one of the following labels: today, yesterday, last-7-days, last-30-days, last-24-hours, this-month, last-month, current-hour, last-hour, last-48-hours, last-2-days, month-to-date, month-to-yesterday and quarter-to-date.
note
1 When filtering dates, use one of the following formats:
- Single format: YYYY-mm-dd;
Displaying stats for this specific day
- Range format: rf:YYYY-mm-dd,YYYY-mm-dd;
Requires usage of the range operators:
- r - range - The value must be in a specified open range, where both endpoints are excluded.
- rf - range full - The value must be in a specified closed range, where both endpoints are included.
- rl - range left - The value must be in a specified half-open range, where only left or start point is included.
- rr - range right - The value must be in a specified half-open range, where only right or end point is included.
Displaying stats in this specific range.
- Hour range format: rl: YYYY-mm-dd hh:00:00,YYYY-mm-dd hh:00:00
If you exclude this parameter, the default setup displays "today" stats.
- Single format: YYYY-mm-dd;
Displaying stats for this specific day
- Range format: rf:YYYY-mm-dd,YYYY-mm-dd;
Requires usage of the range operators:
- r - range - The value must be in a specified open range, where both endpoints are excluded.
- rf - range full - The value must be in a specified closed range, where both endpoints are included.
- rl - range left - The value must be in a specified half-open range, where only left or start point is included.
- rr - range right - The value must be in a specified half-open range, where only right or end point is included.
Displaying stats in this specific range.
- Hour range format: rl: YYYY-mm-dd hh:00:00,YYYY-mm-dd hh:00:00
If you exclude this parameter, the default setup displays "today" stats.