Query Endpoint¶
Returns report data restricted by query parameters passed in POST arguments.
<!-- POST the request body to this endpoint -->
https://uslicer.iponweb.com/API/v2/query
Request Fields¶
Field |
Description |
---|---|
limit |
(optional) The maximum number of returned rows. Possible values: any
integer in the range from -1 to 10,000. |
offset |
(optional) Skips the specified number of rows from the result. Together with
|
include_cumulative |
(optional) Defines whether to display the total values for the topN data rows, where N = limit + offset. Possible values: 0 - don’t display Total values for top N data rows, 1 - display Total values for top N data rows. The default value is 0. |
filters |
(optional) An array of filters, each filter is built using the following format:
|
split_by |
An array of key values from those set in tthe |
start_date |
Sets the start of the date range from which to gather data. Supported formats:
|
end_date |
Sets the end of the date range from which to gather data. Supported formats:
|
timezone |
(optional): Time zone UTC offset in hours, where N can be any integer in
the range of |
include_mappings |
(optional): defines whether key field value mappings are returned by the API
request. The default value is 1 (mappings are returned), if only 1 key field is
used in the |
include_total |
(optional): defines whether to display Total values in the exported file. Possible values: (0 - don’t display Total values in the exported file, 1 - display Total values in the exported file). The default value is 0. |
data_fields |
(optional) An array of data fields to be returned, e.g.
To receive the details of all data fields available to you, use the Info Endpoint. |
data_filters |
(optional) An array of objects, with each object defining a filters to
apply to the data returned for the
|
Response Fields¶
Field |
Description |
---|---|
status |
Returns the status of the request,
|
reason |
A user-friendly description of the error which occured. This field is displayed for failed requests only. |
total |
this section contains information about the entire dataset returned by the query.
|
rows |
this section contains query data results. It is an array of data rows, each containing the following fields.
|
confidence_range |
The confidence range for data (percent), presented in this section, if returned dataset is compressed. Available for every data row in the resulting dataset. |
Request Example¶
{
"slicer_name": "<name: ask Account Manager>",
"project_name": "<name: ask Account Manager>",
"token": "<token>",
"data_fields": [
"bids",
"nobids",
"imps",
"clicks",
"bid_amount",
"win_bid_amount"
],
"end_date": "2020-10-20",
"filters": [
{
"case_insensitive": true,
"match": "equals",
"name": "bid_context_wrapper.user.agent.browser.version",
"search_mappings": true,
"value": [
"chrome_78"
]
},
{
"case_insensitive": true,
"match": "equals",
"name": "bid_context_wrapper.supply.content_type",
"search_mappings": true,
"value": [
"video"
]
}
],
"include_mappings": 1,
"limit": 100,
"need_others": 1,
"order_by": {
"direction": "DESC",
"name": "bids"
},
"split_by": [
"bid_context_wrapper.supply.publisher_id",
"bid_context_wrapper.user.geo.country"
],
"start_date": "2020-10-07"
}
Response Example¶
{
"rows":[
{
"confidence_range":"0.000000",
"data":[
{
"name":"imps",
"percent":"100.00000",
"value":486
},
{
"name":"clicks",
"percent":"0.00000",
"value":0
},
{
"name":"payout.actual_pub",
"percent":"100.00000",
"value":0.05
},
{
"name":"vast_start",
"percent":"0.00000",
"value":0
},
{
"name":"bids",
"percent":"100.00000",
"value":1221
}
],
"mapping":"Ford",
"name":"3"
}
],
"status":"success",
"total":{
"confidence_range":"0.000000",
"data":[
{
"name":"imps",
"value":486
},
{
"name":"clicks",
"value":0
},
{
"name":"payout.actual_pub",
"value":0.05
},
{
"name":"vast_start",
"value":0
},
{
"name":"bids",
"value":1221
}
],
"dates":[
"2019-10-21",
"2019-10-22",
"2019-10-23",
"2019-10-24",
"2019-10-25",
"2019-10-26",
"2019-10-27",
"2019-10-28"
],
"records_found":1
}
}