Reporting API
This API gives publishers the power to access 24-hour detailed insights into their accounts in a way that's easy to use and understand. Here's how it helps:
- Retrieve performance reports: Access performance reports that include key metrics such as revenue, impressions, clicks, and click-through rate (CTR) for a specified date.
- Customize data segmentation: Choose between daily or hourly segmentation options to analyze activity based on specific time intervals.
- Apply filters: Use optional parameters to filter data based on properties passed in the payload when an AdsPostX experience was served. This enables publishers to focus on specific segments of their activity data.
- Make a Fetch Reporting API call to AdsPostX to retrieve statistics related to your account.
- Parse the response and display statistics in the desired fashion.
HTTP Method: GET Base URL: https://api.adspostx.com/native/activity.json
Parameter | Description | Type | Example |
---|---|---|---|
Content-Type required | Should be application/json | string | application/json |
Parameter | Description | Type | Example |
---|---|---|---|
api_key required | Your API Key. Obtain your API Key Required Permission: Reports | String | 4bbdefc2-b130-424d-8170-54bdcb98e64e |
from Optional | Specify the date (YYYY-MM-DD format) for which you want to retrieve reports.
Default: Yesterday's Date (beginning of the day) | String | 2024-03-20 |
aggregated_by Optional | Choose between 'day' or 'hour' to segment activity on a daily or hourly basis. Default: 'day'. | String | hour |
<string> Optional | Filters data based on specific properties passed in the payload during an AdsPostX experience. For example, filtering by "companyId" with a value of "123" and "state" with a value of "approved" retrieves activities for sessions with companyId equal to "123" and state equal to "approved". | String | state=approved |
The from parameter in the query parameters is based on the publisher's timezone. It's important to ensure that these dates align with your local timezone settings to ensure accurate reporting data.
When the "from" parameter is not specified, the API automatically retrieves data starting from the beginning of yesterday (in the publisher's timezone) until the current time today (also in the publisher's timezone). This timeframe is limited to 24 hours
Upon making an API call, the following attributes are returned.
data object of activity data
Contains the activity array and response status
📢 If you're running into any issues while going through the integration process, feel free to contact us at [email protected].