Run a report
Run your first report using IQM's API in this step-by-step quickstart guide.
Get started running your first report with the following endpoints:
POSTGET
GET
POST
About IQM reports
IQM's APIs provide access to all dimensions and KPIs of your ad-serving reporting data in JSON format. With the Reports API you can create a customized report with your desired dimensions and metrics.
Reports can be either daily or aggregated. The daily report includes the date as a dimension and provides the data breakdown by date. Reports provide five top-level dimensions of filtering support, and you can filter on multiple values for each dimension.
You can run a report covering up to 365 days of data for any dimension combination. You must run multiple reports if you need more than that.
More resources
- Custom reports Help Center articles
- Report dimensions and metrics Help Center articles
- Reports API guidelines
Run a report using the IQM API
This quickstart guide covers how to run a basic IQM report.
The minimum requirements to perform this task are: logging in with authentication credentials, selecting dimensions and metrics, choosing a timezone, and executing a report. Once these steps are accomplished, more can be learned about IQM's API through the guidelines pages.
- Log in
- Optional if you have already logged in and have a token
- Request dimensions and metrics
- Optional if you know supported/desired dimensions/metrics
- Request timezones
- Optional if you already know supported/desired ID values
- Execute the report
- Execute the report with parameters from the previous steps
Authentication
Use the following header parameters for all requests after logging in:
| Headers | |
|---|---|
Authorization string required | Bearer followed by the access_token from the login response. See Sign up and authenticate. |
X-IAA-OW-ID integer required | Organization Workspace ID header. |
Step 1: Log in
POSTTo log in, send the Authorization: Basic header with your Base64-encoded Client ID and Client Secret, and send the request body as form data (application/x-www-form-urlencoded). The response contains an OAuth access token.
To find the Organization Workspace IDs that you have access to, use Get list of accessible Organizations.
For further information see OAuth token.
| Headers | |
|---|---|
Authorization string required | Basic followed by your Base64-encoded client_id:client_secret. See Sign up and authenticate. |
Content-Type string required | application/x-www-form-urlencoded. Send the request body as form data. |
| Request schema | |
|---|---|
grant_type string required | password for login. See OAuth Grant Types. |
username string required | User account email. |
password string required | User account password. |
- JSON
curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
--header 'accept: application/json, text/plain, */*' \
--header 'Authorization: Basic <base64 of client_id:client_secret>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=user@iqm.com' \
--data-urlencode 'password=<your password>'
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIn0...",
"refresh_token": "eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIn0...",
"scope": "read write",
"token_type": "bearer",
"expires_in": 86399
}
More responses
{
"success": false,
"errorObjects": [
{
"error": "Bad Credentials or invalid grant type"
}
]
}
{
"error": "Client details are not provided."
}
Step 2: Request dimensions and metrics
GETChoose the dimensions and metrics desired for the report. This API offers dimension and metrics information grouped by category.
Reports are in table format. The metrics comprise the columns, and the dimensions comprise the rows. Necessary information about campaigns is found in the columns.
For more information see this Help Center article collection or Get dimensions and metrics details.
Supported dimensions
- Insertion Order Specifics
- Insertion Order
- Insertion Order ID
- Insertion Order Start Date
- Insertion Order End Date
- Campaign Specifics
- Campaign
- Campaign Type
- Campaign ID
- Campaign Start Date
- Campaign End Date
- Campaign Status
- Campaign Budget Type
- Hour
- Day
- Creative Specifics
- Creative
- Creative ID
- 3rd Party ID
- Creative Type
- Creative Group
- Playback Method
- Player Size
- Placement Type
- Roll Position
- Skippability
- Click URL
- Creative Size
- Demographics
- Age Group
- Gender
- Ethnicity
- Language
- Income Range
- Technologies
- Device Type
- Manufacturer
- Carrier
- Connection Type
- OS
- Deliveries
- Channel
- Site
- Site ID
- App
- App ID
- Site & App
- Site & App ID
- Publisher (Beta)
- Exchange
- Deal
- Deal ID
- Deal Type
- Locations
- Country
- State
- City
- County
- Zip Code
- Congressional District
- State Senate
- State House
- DMA
- Audience Specifics
- Audience Name (Beta)
- Audience ID (Beta)
- Audience Type (Beta)
- Contextual-SubType (Beta)
- Segmented-Segment Name (Beta)
- Segmented-Partner (Beta)
- Segmented-Provider (Beta)
- Segmented-CPM (Beta)
- GF-SubType (Beta)
The list depends on the account type: Workspace accounts also get a Customers group (Customer, Customer ID).
Supported metrics
- Budget
- IO Budget
- Daily Budget
- Total Budget
- Max Bid Price
- Min Bid Price
- Base Bid Price
- Budget Completion(%)
- Bid Shading Savings($)
- Performance
- Impressions
- Clicks
- Reach
- Frequency
- CTR
- WinRate
- VCR
- Household Reach
- Household Frequency
- Spending
- Ad Serving Cost
- Total Advertiser Spent
- Data Cost
- Media Cost
- Pre-bid Cost
- VLD Insights Cost
- 3rd Party Cost
- Cost
- Media eCPM
- Total eCPM
- Media eCPC
- Total eCPC
- CPCV
- Video
- Video Start
- Video 25%
- Video 50%
- Video 75%
- Video 100%
- Hours Viewed
- Conversion
- Attributed Conversions
- Attributed View Through Conversions
- Attributed Click Through Conversions
- Cost Per Attributed Conversion
- Attributed Conversion Rate(%)
- Attributed Conversion Value
- ROAS(%)
- JSON
{
"success": true,
"data": {
"metrics": [
{
"Budget": [
{
"aggregationType": "sum",
"defaultEnabled": false,
"dependentDimensions": [
1,
2,
43,
44
],
"description": "Amount up to which you allow platform to spend on average each day",
"fieldDataType": "currencyUSD",
"id": 1,
"key": "dailyBudget",
"label": "Daily Budget",
"order": 1,
"tooltipDescription": null
},
{
"aggregationType": "sum",
"defaultEnabled": false,
"dependentDimensions": [
1,
2,
43,
44
],
"description": "Amount up to which you allow platform to spend",
"fieldDataType": "currencyUSD",
"id": 2,
"key": "totalBudget",
"label": "Total Budget",
"order": 2,
"tooltipDescription": null
}
]
},
{
"Performance": [
{
"aggregationType": "sum",
"defaultEnabled": true,
"dependentDimensions": null,
"description": "Number of times ad displayed on someone's screen",
"fieldDataType": "number",
"id": 5,
"key": "impressions",
"label": "Impressions",
"order": 1,
"tooltipDescription": null
}
]
}
],
"dimensions": [
{
"Campaign Specifics": [
{
"description": "Campaign Name",
"fieldDataType": "text",
"groupId": 1,
"id": 1,
"isCustomerDependent": true,
"isFilterSupported": true,
"isRowToColumn": false,
"key": "campaign",
"label": "Campaign",
"order": 1,
"tooltipDescription": null
},
{
"description": "Unique system-generated number assigned to each Campaign",
"fieldDataType": "text",
"groupId": 1,
"id": 2,
"isCustomerDependent": true,
"isFilterSupported": true,
"isRowToColumn": false,
"key": "campaignId",
"label": "Campaign ID",
"order": 4,
"tooltipDescription": null
}
]
},
{
"Locations": [
{
"description": "Country the ad ran in",
"fieldDataType": "country",
"groupId": 29,
"id": 34,
"isCustomerDependent": false,
"isFilterSupported": true,
"isRowToColumn": false,
"key": "country",
"label": "Country",
"order": 1,
"tooltipDescription": null
},
{
"description": "State the ad ran in",
"fieldDataType": "regionCode",
"groupId": 30,
"id": 35,
"isCustomerDependent": false,
"isFilterSupported": true,
"isRowToColumn": false,
"key": "state",
"label": "State",
"order": 2,
"tooltipDescription": null
}
]
},
{
"Audience Specifics": [
{
"description": "Type of audience where ad is served",
"fieldDataType": "text",
"groupId": 30,
"id": 65,
"isCustomerDependent": false,
"isFilterSupported": false,
"isRowToColumn": false,
"key": "audienceType",
"label": "Audience Type (Beta)",
"order": 3,
"tooltipDescription": "Audience Specifics reporting is supported for audiences created after 12/10/2025."
}
]
}
]
}
}
More responses
{
"success": false,
"errorObjects": [
{
"error": "Invalid token: Invalid token format: Invalid JWT serialization: Missing dot delimiter(s)"
}
]
}
Step 3: Select timezones
GETOnce metrics and dimensions are chosen, choose a timezone to target. Only one timezone can be included per report. Run multiple reports to see results for multiple timezones.
Use the Master API to generate a list of timezone IDs to refer to in API calls. Use these IDs to target timezones in your report.
For further information see Get timezones.
- JSON
{
"success": true,
"data": {
"data": [
{
"id": 423,
"name": "US/Central",
"label": "US/Central"
},
{
"id": 29,
"name": "US/Eastern",
"label": "US/Eastern"
},
{
"id": 21,
"name": "US/Mountain",
"label": "US/Mountain"
}
],
"totalRecords": 432,
"filteredRecords": 432
}
}
Step 4: Execute a report
POSTRun a report based on report data.
A start date and end date are required, and the range can be at most 365 days.
Include at least one dimension in dimensions and at least one metric in columns. Dimensions are not valid as columns.
For further information see Execute a report.
| Headers | |
|---|---|
Authorization string required | Bearer followed by the access_token from the login response. See Sign up and authenticate. |
X-IAA-OW-ID integer required | Organization Workspace ID header. |
| Request schema | |
|---|---|
startDate integer required | Unix epoch timestamp of start date, in milliseconds. |
endDate integer required | Unix epoch timestamp of end date, in milliseconds. |
dimensions string required | Dimensions for the report as a JSON-encoded array of objects, each with a filter (a dimension key from the dimensions and metrics details API) and an optional value array of IDs that limits rows to those dimension values, serialized as a string (see the request sample). |
customerIds array of integers | Customer IDs to include in the report. Workspace users only. Send an empty array ([]) to include all customers. |
columns array of strings required | Metrics for the report, from the dimensions and metrics details API. Dimensions go in dimensions, not here. |
timezoneId integer required | Timezone ID. |
requestType integer required | Time breakdown of the report rows: daily (1), aggregated with no time breakdown (2), weekly (3), or monthly (4). |
reportAggregated string required | String "0" or "1". |
timezoneName string required | Timezone name, e.g. US/Eastern. |
filters object | Optional extra filters: campaignIds, creativeTypeIds, and campaignStatuses arrays. |
pageNo integer | Page number of retrieved data. |
noOfEntries integer | Number of entries returned per page. |
sortBy string | Sorts by ascending (+) or descending (-), example: -impressions. |
- JSON
{
"customerIds":[
],
"startDate":1690550314033,
"endDate":1698326314033,
"dimensions":"[{\"filter\":\"ioName\"},{\"filter\":\"campaign\"}]",
"columns":[
"impressions",
"clicks",
"CTR",
"VCR",
"spent",
"dataCost",
"mediaSpent",
"eCPM"
],
"requestType":2,
"reportAggregated":"0",
"timezoneName":"US/Eastern",
"timezoneId":29,
"pageNo":1,
"noOfEntries":20,
"sortBy":"-impressions"
}
{
"success": true,
"data": {
"total": {
"CTR": 25.823331,
"baseBid": null,
"totalRecords": 5,
"VCR": 0.0,
"budgetTypeId": null,
"totalBudget": null,
"adServingCost": 0.0,
"dataCost": 777.0489999999999,
"budgetMappingDataCost": null,
"totalECPM": 98.7973698809764,
"ioId": null,
"ioBudgetTypeId": null,
"campaignTimezone": null,
"eCPM": 89.00000000000001,
"bidImpressions": 164607,
"preBidCost": 0.0,
"mediaSpent": 7058.768000000001,
"startCount": 0,
"ioBudget": null,
"campaignId": null,
"spent": 7835.817,
"impressions": 79312,
"completeCount": 0,
"minBid": null,
"budgetMappingSpent": null,
"dailyBudget": null,
"maxBid": null,
"clicks": 20481,
"thirdPartyCost": 0.0,
"campaign": null,
"ioName": null,
"budgetCompletion": null,
"status": null,
"reach": 5264,
"frequency": 15.066869
},
"totalRecords": 5,
"data": [
{
"CTR": 10.0835,
"baseBid": null,
"totalRecords": null,
"VCR": 0.0,
"budgetTypeId": 1,
"totalBudget": 10000.0,
"adServingCost": 0.0,
"dataCost": 324.59,
"budgetMappingDataCost": 324.59000000000015,
"totalECPM": 99.00000000000001,
"ioId": 25016,
"ioBudgetTypeId": 1,
"campaignTimezone": "US/Eastern",
"eCPM": 89.0,
"bidImpressions": 75098,
"preBidCost": 0.0,
"mediaSpent": 2888.851,
"startCount": 0,
"ioBudget": 55000.0,
"campaignId": 590526,
"spent": 3213.441,
"impressions": 32459,
"completeCount": 0,
"minBid": 0.0,
"budgetMappingSpent": 2888.851,
"dailyBudget": 434.78,
"maxBid": 89.0,
"clicks": 3273,
"thirdPartyCost": 0.0,
"campaign": "Test Campaign for SLS",
"ioName": "Test IO for Insights",
"budgetCompletion": 32.13441,
"status": "expired"
},
{
"CTR": 5.6976,
"baseBid": null,
"totalRecords": null,
"VCR": 0.0,
"budgetTypeId": 1,
"totalBudget": 10000.0,
"adServingCost": 0.0,
"dataCost": 309.78,
"budgetMappingDataCost": 309.77999999999975,
"totalECPM": 99.0,
"ioId": 25016,
"ioBudgetTypeId": 1,
"campaignTimezone": "US/Eastern",
"eCPM": 89.0,
"bidImpressions": 73253,
"preBidCost": 0.0,
"mediaSpent": 2757.042,
"startCount": 0,
"ioBudget": 55000.0,
"campaignId": 590512,
"spent": 3066.822,
"impressions": 30978,
"completeCount": 0,
"minBid": 0.0,
"budgetMappingSpent": 2757.042000000001,
"dailyBudget": 434.78,
"maxBid": 89.0,
"clicks": 1765,
"thirdPartyCost": 0.0,
"campaign": "Test Campaign for PLD",
"ioName": "Test IO for Insights",
"budgetCompletion": 30.66822000000001,
"status": "expired"
}
],
"filteredRecords": 5
}
}
FAQ
What are the most commonly used dimensions in reports?
The most frequently used dimensions and combinations of dimensions are:
- Insertion Order
- Insertion Order & Campaign
- Campaign & Creative
- Campaign & Inventory
- Campaign & Age
- Campaign & Zip Code
- Campaign & Age & Gender
- Campaign & Device
- Campaign & City
- Campaign & Gender
- Campaign & Channel