{"_id":"5b461e9ce1e0000003488923","project":"574ff4bd3fa1870e00889ba6","version":{"_id":"574ff4bd3fa1870e00889ba9","project":"574ff4bd3fa1870e00889ba6","__v":26,"createdAt":"2016-06-02T08:56:29.492Z","releaseDate":"2016-06-02T08:56:29.492Z","categories":["574ff4bd3fa1870e00889baa","577278ecdceb570e003a9001","577279865617b117009e643f","577279985617b117009e6440","577279bc8c48e00e00503504","5774fe18605b770e0037be8a","577ce3ad87acf617003c4187","577f8476a77c700e006a6c52","57b486ae0d2b640e00e9d3f5","57b722133d3e620e004ec74b","57bd95f00fe3a00e003e2cc5","57c8349359cd4b0e00b888ef","57c8349b5754fa1700b12242","57cedb0bad483e0e00890239","57cedbe807d7ea0e00e438cc","57d82967156ef72b007ffcd8","58ee353ad1ee2f0f0034a13d","596623221738df00298622a5","59a51730192dba000fc9ca38","59a8129f1e7b26000fa0fb1a","5a0322bf044b6f001c236e36","5a79897c5b6e430030746df6","5a79898c2b2d5f0012cbab63","5ab3b5e3d2d1e2006252a8f2","5b1a43bd678eab0003aa54a4","5b6d95e29d346300038baff3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"category":{"_id":"577f8476a77c700e006a6c52","project":"574ff4bd3fa1870e00889ba6","version":"574ff4bd3fa1870e00889ba9","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-08T10:46:14.043Z","from_sync":false,"order":15,"slug":"open-rtb-23-native-extention-version-11","title":"[DSP] Open RTB 2.3"},"user":"59aebb87fde5ab002740a01c","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-07-11T15:13:32.424Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","examples":{"codes":[]},"method":"get","auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"API Access\"\n}\n[/block]\n#1. API overview\nIt's a HTTP API, which tries to follow a RESTful design pattern. The results you get back will be in the JSON format.\n\n#2. API Rate Limit\nThe rate limit or reporting API is 5 requests per second.\n\n#3. Account Wide Reporting API\nYou can query for the data of your account in PubNative platform.\n\n##3-1. Endpoint\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl https://dashboard.pubnative.net/api/reports/dsp?account_auth_token={ACCOUNT_AUTH_TOKEN}&start_date={START_DATE}&end_date={END_DATE}\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n##3-2. Request Parameters\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Required?\",\n    \"h-2\": \"Description\",\n    \"h-3\": \"Example\",\n    \"0-0\": \"account_auth_token\",\n    \"1-0\": \"start_date\",\n    \"2-0\": \"end_date\",\n    \"0-1\": \"Required\",\n    \"1-1\": \"Required\",\n    \"2-1\": \"Required\",\n    \"0-2\": \"Reporting API access token (unique per account).\\n\\nAvailable in dashboard account menu (click Reporting API Key)\",\n    \"1-2\": \"Start date of the data\\n\\nformat is \\\"dd/mm/yyyy\\\" and needs to be url encoded\",\n    \"2-2\": \"End date of the data\\n\\nformat is \\\"dd/mm/yyyy\\\" and needs to be url encoded\",\n    \"2-3\": \"30%2F06%2F2018\",\n    \"1-3\": \"28%2F06%2F2018\",\n    \"0-3\": \"1001a00a1234ab1111ab12a1abc\\n12312311a10000a1a123412345678abc1234\"\n  },\n  \"cols\": 4,\n  \"rows\": 3\n}\n[/block]\n##3-3. Example Response\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"reports\\\": [\\n        {\\n            \\\"revenue\\\": 573.12,\\n            \\\"impressions\\\": 200100,\\n            \\\"date\\\": \\\"28/06/2018\\\"\\n        },\\n        {\\n            \\\"revenue\\\": 987.88,\\n            \\\"impressions\\\": 198000,\\n            \\\"date\\\": \\\"29/06/2018\\\"\\n        },\\n        {\\n            \\\"revenue\\\": 880.56,\\n            \\\"impressions\\\": 123000,\\n            \\\"date\\\": \\\"30/06/2018\\\"\\n        }\\n    ],\\n    \\\"count_before_filtering\\\": 3\\n}\",\n      \"language\": \"json\",\n      \"name\": \"JSON\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"reporting-api-for-dsp","type":"endpoint","title":"Reporting API for DSP"}

getReporting API for DSP


[block:api-header] { "type": "basic", "title": "API Access" } [/block] #1. API overview It's a HTTP API, which tries to follow a RESTful design pattern. The results you get back will be in the JSON format. #2. API Rate Limit The rate limit or reporting API is 5 requests per second. #3. Account Wide Reporting API You can query for the data of your account in PubNative platform. ##3-1. Endpoint [block:code] { "codes": [ { "code": "curl https://dashboard.pubnative.net/api/reports/dsp?account_auth_token={ACCOUNT_AUTH_TOKEN}&start_date={START_DATE}&end_date={END_DATE}", "language": "curl" } ] } [/block] ##3-2. Request Parameters [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Required?", "h-2": "Description", "h-3": "Example", "0-0": "account_auth_token", "1-0": "start_date", "2-0": "end_date", "0-1": "Required", "1-1": "Required", "2-1": "Required", "0-2": "Reporting API access token (unique per account).\n\nAvailable in dashboard account menu (click Reporting API Key)", "1-2": "Start date of the data\n\nformat is \"dd/mm/yyyy\" and needs to be url encoded", "2-2": "End date of the data\n\nformat is \"dd/mm/yyyy\" and needs to be url encoded", "2-3": "30%2F06%2F2018", "1-3": "28%2F06%2F2018", "0-3": "1001a00a1234ab1111ab12a1abc\n12312311a10000a1a123412345678abc1234" }, "cols": 4, "rows": 3 } [/block] ##3-3. Example Response [block:code] { "codes": [ { "code": "{\n \"reports\": [\n {\n \"revenue\": 573.12,\n \"impressions\": 200100,\n \"date\": \"28/06/2018\"\n },\n {\n \"revenue\": 987.88,\n \"impressions\": 198000,\n \"date\": \"29/06/2018\"\n },\n {\n \"revenue\": 880.56,\n \"impressions\": 123000,\n \"date\": \"30/06/2018\"\n }\n ],\n \"count_before_filtering\": 3\n}", "language": "json", "name": "JSON" } ] } [/block]