Reporting API for Publishers
Reporting API for Publishers
The IncrementX Reporting API for publishers allows you to pull data regarding your IncrementX Publisher Platform activity. This reporting API provides a real time detailed report with statistics such as impressions, cpm and revenue for your publisher account.
Following steps describes the reporting API for publishers:
1. Authentication:
Method: POST
Request
URL:https://api.incrementx.com/reportip/authforpublisher?userName=amelia_cardoz@incrementx.com&password=xyz$123
The publisher logs in and if the login is successful, then the token Id is generated.
Response:
{ “message”: “Success”, “tokenId”: “09830211205720370”, “statusCode”: 200 } |
Following table lists the response parameters:
Response Parameters
Parameters | Description |
message |
Represents the message status. |
tokenId |
Represents the unique generated token Id. |
statusCode |
Represents the status code. |
The publisher logs in and if the login is not successful, then the error message is displayed.
Response:
{ “message”: “Please verify username and password”, “statusCode”: 406 } |
Following table describes the response parameters:
Response Parameters
Parameters | Description |
message |
Represents the message status. |
statusCode |
Represents the status code. |
2. Publisher Report API
Method: GET
Response
URL:https://api.incrementx.com/reportip/publisherstats?fromDate=2016-10-15&toDate=2016-10-18¶m=2
Headers:
tokenId=09830211205720370
Change Parameters to get report for Date wise, Site wise and Ad Unit wise accordingly. Following table lists the parameters used:
Parameters | Description |
fromDate |
Represents the from date. |
toDate |
Represents the to date. |
param=0 |
0 represents the Date. |
param=1 | 1 represents the Site. |
param=2 |
2 represents the Ad Unit. |