Export Endpoint¶
Exports report data to a file of the xls
, csv
, tsv
or tsv2
format. Data
is restricted by query parameters passed in the POST request body.
Request Fields¶
<!-- POST the request body to this endpoint -->
https://uslicer.iponweb.com/API/v2/export
Field |
Description |
---|---|
|
(optional) An array of filters with the following details
|
|
An array of key field values from the |
|
Sets the start of the date range from which to gather data. Supported formats:
|
|
Sets the end of the date range from which to gather data. Supported formats:
|
|
(optional): Time zone UTC offset in hours, where N can be any integer in
the range of |
|
(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 |
|
(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. |
|
target file format: xls, csv, tsv or tsv2 |
|
(optional): an array with the following structure: |
Response Fields¶
Field |
Description |
---|---|
|
Returns the status of the request,
|
|
user-friendly description of the occurred error. This field is displayed for failed requests only. |
|
this section contains information about the entire dataset returned by the query.
|
|
this section contains query data results. It is an array of data rows, each containing the following fields.
|
|
the confidence range for data (percent), presented in this section, if returned dataset is compressed. Available for every data row in the resulting dataset. |
curl Example¶
curl --data '{"slicer_name":"<name: ask Account Manager>","project_name":"<name: ask Account Manager>","token":"<token>","split_by":["bid_context_wrapper.demand.campaign_id"],"start_date":"2019-10-15","end_date":"2019-10-28","export_format":"csv","filters":[{"name":"bid_context_wrapper.user.geo.country_region","value":["California"],"match":"equals"},{"name":"bid_context_wrapper.user.agent.browser.name","value":["Chrome"],"match":"equals"}]}' -H "Content-Type: application/json" -H "Accept: application/json" "https://uslicer.iponweb.com/API/v2/export"
Request Example¶
{
"slicer_name": "<name: ask Account Manager>",
"project_name": "<name: ask Account Manager>",
"token": "<token>",
"split_by": [
"bid_context_wrapper.demand.campaign_id"
],
"start_date": "2019-10-15",
"end_date": "2019-10-28",
"export_format": "csv",
"filters": [
{
"name": "bid_context_wrapper.user.geo.country_region",
"value": [
"California"
],
"match": "equals"
},
{
"name": "bid_context_wrapper.user.agent.browser.name",
"value": [
"Chrome"
],
"match": "equals"
}
]
}
Response Example¶
"Campaign ID","Impressions","Bids","Clicks","CTR","PVC","PCC","Win Bid CPM","Cost","eCPM","eCPC"
"10072",950,17125,0,0.000,0,0,0.72,0.57,0.60,0.00
"10065",1017,25280,1,0.098,0,0,0.40,0.29,0.29,0.29
"10056",31,0,0,0.000,0,0,7.47,0.10,3.21,0.00