Audience API
The Audience API allows you to create different types of audiences for campaign targeting based on desired specifications.
See the Healthcare and Political verticals for specialized Audience API capabilities.
The following table describes each type of audience:
| Type | Description |
|---|---|
| Matched audience | Upload a CSV or XLSX file with audience details which is then matched with IQM's user database to create a custom audience segment. |
| Retargeted audience | Add a tracking tag to your website allowing you to track users who visit so they can be retargeted to receive ads in the future. |
| Geofarmed audience | Define an audience by a custom geographical area. |
| Campaign audience | Retarget an audience associated with a campaign. |
| Segmented audience | Group users by common characteristics to reach specific target audiences. |
| Pre-bid audience | Select multiple pre-bid segments and group them together into an audience. |
| Contextual audience | IQM adds users to an audience when they visit sites featuring specified keywords or URLs. |
| Lookalike audience | Analyzes an existing audience and generates a new one based on specified size and similarity percentage. |
| ABM audience | Account Based Marketing (ABM) audience for Healthcare campaigns. |
| ICT audience | An Integrated Care Team (ICT) audience is a type of Matched audience intended for healthcare-audience expansion. See the Healthcare vertical for more information. |
| Custom Voter audience | Audiences for Political campaigns based on voter segments which are defined by a combination of demographic, psychographic, and behavioral attributes. |
More resources
- Create a Contextual audience quickstart guide
- Upload a Matched audience tutorial
- Audience targeting and data management Help Center article
Authentication
Use the following header parameters for all requests:
| 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. |
Audience details
Audience details list
POSTGet a list of audiences with basic details by desired filters.
An audience id can be used to get more details in type-specific details endpoints. For example, a "Matched audience" id can be used in the Matched audience details endpoint to get more details.
The id can also be used to perform various actions in Audience management PUT/PATCH endpoints.
| Request schema | |
|---|---|
audienceIds array of integers | Audience IDs to filter by. |
audienceTypeIds array of integers | Audience type IDs to filter by. |
audienceSubtypeIds array of integers | Audience subtype IDs to filter by. |
owIds array of integers | Organization Workspace IDs to filter by. |
audienceStatusIds array of integers | Audience status IDs to filter by. |
includeGenericAudience boolean | Include generic audiences. |
audienceTypeIdsWithAllSubtypes array of integers | Audience type IDs to include all subtypes. |
pageNo integer | Page number of retrieved data. |
noOfEntries integer | Number of entries returned per page. |
sortBy string | Sorts results by specified field. |
searchFields array | Filter results by search fields. |
Response properties
audienceId integer | Audience ID. |
audienceName string | Audience name. |
audienceTypeId integer | Audience type ID. |
audienceStatusId integer | Audience status ID. |
cpm number | Cost per thousand impressions. |
createdAt integer | Creation timestamp (epoch milliseconds). |
reach integer | Audience reach. |
verticalId integer | Vertical ID. |
organizationName string | Organization name. |
runningCampaignCount integer | Number of running campaigns. |
pendingCampaignCount integer | Number of pending campaigns. |
pausedCampaignCount integer | Number of paused campaigns. |
expiredCampaignCount integer | Number of expired campaigns. |
startDate integer | Start date (epoch milliseconds). |
endDate integer | End date (epoch milliseconds). |
timezone integer | Timezone ID. |
regeneratedCount integer | Number of times regenerated. |
matchRate number | Match rate percentage. |
insightStatusId integer | Audience Insights report status, for Matched audiences only: 1 (Processing), 2 (Ready), or 3 (Failed). Omitted when no report has been created. |
fileTotalCount integer | Total number of files. |
s3FileName string | S3 file name. |
parentAudienceId integer | ICT audiences only: ID of the ICT audience group the audience belongs to. |
hierarchyType string | ICT audiences only: whether the audience is an input audience (input) or an extension audience (extension). |
approvalAccess boolean | Approval access permission. |
editAccess boolean | Edit access permission. |
- JSON
{
"audienceIds": [
1003879,
1003880
],
"audienceTypeIds": [
1,
2
],
"audienceSubtypeIds": [
3,
4
],
"owIds": [
12345,
67890
],
"audienceStatusIds": [
1,
2
],
"includeGenericAudience": true,
"audienceTypeIdsWithAllSubtypes": [
1,
2
],
"pageNo": 1,
"noOfEntries": 20,
"sortBy": "audienceName",
"searchFields": [
"test audience",
123456
]
}
{
"success": true,
"data": {
"totalRecords": 16,
"filteredRecords": 16,
"audienceList": [
{
"audienceId": 1142228,
"audienceName": "Copy of Matched Audience Example",
"audienceTypeId": 1,
"audienceStatusId": 6,
"createdAt": 1755812128000,
"reach": 0,
"verticalId": 1,
"organizationName": "Conor's Org",
"runningCampaignCount": 0,
"pendingCampaignCount": 0,
"pausedCampaignCount": 0,
"expiredCampaignCount": 0,
"matchRate": 0.0,
"fileTotalCount": 5,
"s3FileName": "1743014162776_matched_audience_example.csv",
"approvalAccess": false,
"editAccess": false
},
{
"audienceId": 1141935,
"audienceName": "Test",
"audienceTypeId": 2,
"audienceStatusId": 6,
"createdAt": 1755208780000,
"reach": 0,
"verticalId": 1,
"organizationName": "Conor's Org",
"runningCampaignCount": 0,
"pendingCampaignCount": 0,
"pausedCampaignCount": 0,
"expiredCampaignCount": 0,
"matchRate": 0.0,
"approvalAccess": false,
"editAccess": false
}
]
}
}
Basic audience details
POSTGet a basic list of audience details.
| Request schema | |
|---|---|
audienceIds array of integers | Audience IDs to filter by. |
audienceTypeIds array of integers | Audience type IDs to filter by. |
audienceSubtypeIds array of integers | Audience subtype IDs to filter by. |
owIds array of integers | Organization Workspace IDs to filter by. |
audienceStatusIds array of integers | Audience status IDs to filter by. |
includeGenericAudience boolean | Include generic audiences. |
pageNo integer | Page number of retrieved data. |
noOfEntries integer | Number of entries per page. |
sortBy string | Sorts results by specified field. |
searchFields array | Filter results by search fields. |
Response properties
audienceId integer | Audience ID. |
audienceName string | Audience name. |
audienceTypeId integer | Audience type ID. |
audienceSubtypeId integer | Audience subtype ID. |
isIqmIdTargeted boolean | Indicates if IQM ID targeted. |
audienceStatusId integer | Audience status ID. |
createdOn integer | Creation timestamp (epoch seconds). |
cpm number | Cost per thousand impressions. |
reach integer | Audience reach. |
{
"audienceIds": [
1003879,
1003880
],
"audienceTypeIds": [
1,
2
],
"audienceSubtypeIds": [
3,
4
],
"owIds": [
12345,
67890
],
"audienceStatusIds": [
1,
2
],
"includeGenericAudience": true,
"pageNo": 1,
"noOfEntries": 20,
"sortBy": "audienceName",
"searchFields": [
"test audience",
123456
]
}
{
"success": true,
"data": {
"totalRecords": 874,
"filteredRecords": 874,
"audienceBasicList": [
{
"audienceId": 1,
"audienceName": "Sample audience name 1",
"audienceTypeId": 1,
"audienceSubtypeId": 1,
"isIqmIdTargeted": true,
"audienceStatusId": 1,
"createdAt": 1653510068,
"cpm": 1.5,
"reach": 18850783
}
]
}
}
Audience count by status
POSTGet a count of audiences by status type.
| Request schema | |
|---|---|
searchField string | Filter results by search field. |
owIds string | Organization Workspace IDs. |
audienceTypeIds string | Audience type IDs. |
Response properties
audienceStatusId integer | Audience status ID. |
audienceCount integer | Audience count. |
- JSON
{
"success": true,
"data": [
{
"audienceStatusId": 1,
"audienceCount": 2
},
{
"audienceStatusId": 3,
"audienceCount": 10
},
{
"audienceStatusId": 6,
"audienceCount": 4
}
]
}
Audience count by type
GETGet an audience count by audience type.
Response properties
audienceTypeId integer | Audience type ID. |
audienceCount integer | Audience count. |
- JSON
{
"success": true,
"data": [
{
"audienceTypeId": 1,
"audienceCount": 10
},
{
"audienceTypeId": 2,
"audienceCount": 25
}
]
}
Audience count by data partner
POSTGet an audience count by data partner ID.
| Request schema | |
|---|---|
audienceTypeId integer | Audience type ID. |
Response properties
dataPartnerId integer | Data partner ID. |
audienceCount integer | Audience count. |
{
"audienceTypeIds": [
2,
4
]
}
{
"success": true,
"data": [
{
"dataPartnerId": 1,
"audienceCount": 10
},
{
"dataPartnerId": 2,
"audienceCount": 25
}
]
}
Audience management
Update audience name
PATCHUpdate the name of an existing audience.
| Path parameters | |
|---|---|
audienceId integer | Audience ID to update. |
| Request schema | |
|---|---|
audienceName string | New audience name. |
{
"audienceName": "Updated Audience Name"
}
{
"success": true,
"data": {
"message": "Changes saved successfully"
}
}
Regenerate audience
PATCHRegenerate a Geofarmed or Contextual audience whose data fetching or processing failed. Other audience types, such as Matched, Segmented, and ABM audiences, can't be regenerated.
An audience can be regenerated when all of the following are true:
- The audience type is Geofarmed (4) or Contextual (5).
- The audience status is Failed (6).
- The audience failed during data fetching or data processing.
- The audience hasn't reached the maximum number of regeneration attempts.
Only Advertiser users can regenerate an audience, and the audience must belong to their Organization.
| Path parameters | |
|---|---|
audienceId integer | Audience ID to regenerate. |
{
"success": true,
"data": {
"message": "Audience regenerated successfully."
}
}
More responses
{
"success": false,
"errorObjects": [
{
"error": "User is not allowed to access this API. Only Advertiser users can access this API."
}
]
}
{
"success": false,
"errorObjects": [
{
"error": "Only Geo-farmed and Contextual audiences support this operation."
}
]
}
{
"success": false,
"errorObjects": [
{
"error": "Invalid audience status. Audience status must be 'Failed'."
}
]
}
{
"success": false,
"errorObjects": [
{
"error": "Invalid audience failure reason ID of the given audience."
}
]
}
{
"success": false,
"errorObjects": [
{
"error": "You have reached the maximum limit for audience regeneration attempts."
}
]
}
Get audience Insights
GETGet a demographic and geographic profile of an audience, returned as a set of chart-ready widgets. Each row in a widget includes both the raw count and the percent of the audience in that segment. The response depends on the audience type:
- Matched audiences return their Audience Insights report. Create the Audience Insights report first, then wait until the audience's insightStatusId in the audience details list is 2 (Ready). Other values are 1 (Processing) and 3 (Failed). The report includes an audience summary and distributions such as gender, age, income, and ethnicity, each compared with the national average.
- Segmented and Account Based Marketing (ABM) audiences return Insights computed on request, with no report to create first. Widgets include distributions such as age, gender, state, and device type. The first request can return no data while the Insights are computed.
Other audience types don't have Insights. When no Insights are available, the response contains success with no data object.
| Path parameters | |
|---|---|
audienceId integer | Audience ID to get Insights for. |
Response properties: Matched audiences
reportType string | Report type, INSIGHTS_AUDIENCE_REPORT. |
fileName string | File name of the report. |
data object | Report content: audience_id, audience_name, audience_date, vertical_id, vertical, and widgets. Widgets use the same title, type, and data structure as Segmented audiences, with row keys such as Sr no., Audience Value (Absolute), Audience Value (%), National Avg (%), and Delta. The first widget is an audience summary table with Key and Audience Value rows. |
Response properties: Segmented and ABM audiences
audienceId string | Audience ID. | ||||||||||||||||||||||
audienceName string | Audience name. | ||||||||||||||||||||||
audienceDate string | Audience snapshot date (YYYY-MM-DD format) — not a report time period. | ||||||||||||||||||||||
verticalId string | Currently always dummy — not yet populated. | ||||||||||||||||||||||
vertical string | Currently always dummy — not yet populated. | ||||||||||||||||||||||
widgets array of objects | Chart-ready insight widgets. The set of widgets, and the field names inside each widget's data rows, vary by audience and vertical, the fields below are one example (an "age" widget), not a fixed schema. | ||||||||||||||||||||||
| |||||||||||||||||||||||
title string | Widget dimension (e.g. age, gender, state). | |||||||||||||
type string | Chart type (e.g. pie, geo). | |||||||||||||
data array of objects | One row per segment/bucket. Field names vary by widget, shown below for an "age" widget. | |||||||||||||
| ||||||||||||||
srNo integer | Row number. |
age string | Segment/bucket label. Named after the widget's dimension, a state widget uses a state key here instead. |
audienceValue(Absolute) string | Count of the audience in this segment. |
audienceValue(%) number | Percent of the audience in this segment. |
nationalAvg(%) number | National average for this segment, for comparison. Currently always -1 — not yet populated for any audience. |
delta number | Difference between the audience value and the national average. Currently always -1 — not yet populated for any audience. |
{
"success": true,
"data": {
"reportType": "INSIGHTS_AUDIENCE_REPORT",
"fileName": "default_insight.pdf",
"data": {
"audience_id": "1161677",
"audience_name": "L2+PII for VLD",
"audience_date": "2026-04-28",
"vertical_id": "1",
"vertical": "Political",
"widgets": [
{
"title": "Audience Summary",
"type": "table",
"data": [
{"Sr no.": 1, "Key": "Total Household", "Audience Value": "1,999"},
{"Sr no.": 2, "Key": "Total People", "Audience Value": "2,000"}
]
},
{
"title": "Gender",
"type": "pie",
"data": [
{"Sr no.": 1, "Gender": "Female", "Audience Value (Absolute)": "1,082", "Audience Value (%)": 54.1, "National Avg (%)": 52.14, "Delta": 1.96},
{"Sr no.": 2, "Gender": "Male", "Audience Value (Absolute)": "918", "Audience Value (%)": 45.9, "National Avg (%)": 46.93, "Delta": -1.03}
]
}
...
]
}
}
}
{
"success": true,
"data": {
"audienceId": "48703",
"audienceName": "Segmented1",
"audienceDate": "2026-04-10",
"verticalId": "dummy",
"vertical": "dummy",
"widgets": [
{
"title": "age",
"type": "pie",
"data": [
{"srNo": 1, "age": "18-20", "audienceValue(Absolute)": "213,109", "audienceValue(%)": 1.16, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 2, "age": "21-24", "audienceValue(Absolute)": "963,673", "audienceValue(%)": 5.24, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 3, "age": "25-34", "audienceValue(Absolute)": "1,977,732", "audienceValue(%)": 10.75, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 4, "age": "35-44", "audienceValue(Absolute)": "2,222,194", "audienceValue(%)": 12.08, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 5, "age": "45-54", "audienceValue(Absolute)": "3,008,447", "audienceValue(%)": 16.36, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 6, "age": "55-64", "audienceValue(Absolute)": "3,655,374", "audienceValue(%)": 19.88, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 7, "age": "65+", "audienceValue(Absolute)": "6,273,522", "audienceValue(%)": 34.11, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 8, "age": "Unknown", "audienceValue(Absolute)": "77,618", "audienceValue(%)": 0.42, "nationalAvg(%)": -1, "delta": -1}
]
},
{
"title": "state",
"type": "geo",
"data": [
{"srNo": 1, "state": "Alabama", "audienceValue(Absolute)": "166,606", "audienceValue(%)": 0.91, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 2, "state": "Alaska", "audienceValue(Absolute)": "15,383", "audienceValue(%)": 0.08, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 3, "state": "Arizona", "audienceValue(Absolute)": "220,809", "audienceValue(%)": 1.2, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 4, "state": "Arkansas", "audienceValue(Absolute)": "94,993", "audienceValue(%)": 0.52, "nationalAvg(%)": -1, "delta": -1},
{"srNo": 5, "state": "California", "audienceValue(Absolute)": "1,147,806", "audienceValue(%)": 6.24, "nationalAvg(%)": -1, "delta": -1}
...
]
}
]
}
}
More responses
{
"success": true
}
Create Audience Insights report
POSTGenerate an Audience Insights report for any given audience IDs.
This is the same mechanism as the Insights API's Create Audience Insights report endpoint.
The id returned here identifies the report. Track its status through the Insights API's Get a list of Insights reports, and once ready, retrieve it via Download Insights report.
An audience must meet the following eligibility criteria to generate Audience Insights report:
- Must be Matched audience type
- Audience status: "ready"
- Audience reach: 10,000+
- (Recommended) Audience creation date within the last year
| Request schema | |
|---|---|
audienceIds array of integers | Audience IDs. |
Response properties
invalidSourceIds array of integers | Audience IDs not eligible for Insights. | |||||||||||||||
insightsData object | Insights data details. | |||||||||||||||
| ||||||||||||||||
id integer | Insights ID. |
typeId integer | Insights type ID. |
statusId integer | Insights status ID. |
sourceName string | Source audience name. |
name string | Insights name. |
sourceId integer | Audience ID. |
createdAt integer | Unix epoch timestamp of Insights creation. |
- JSON
{
"success": true,
"data": {
"invalidSourceIds": [
1233
],
"insightsData": [
{
"id": 1003,
"typeId": 1,
"statusId": 1,
"sourceName": "Audience - 1",
"name": "Audience - 1_insights",
"sourceId": 12345,
"createdAt": 1689155409179
},
{
"id": 1100,
"typeId": 1,
"statusId": 1,
"sourceName": "audience 2",
"name": "audience 2_insights",
"sourceId": 54321,
"createdAt": 1689155409179
}
]
}
}
Attach data partner
POSTAttach a data partner to a Geofarmed audience or a Contextual audience.
| Request schema | |
|---|---|
audienceId integer | Audience ID. |
dataPartnerId integer | Data partner ID. |
{
"audienceId": 124,
"dataPartnerId": 7
}
{
"success": true,
"data": {
"message": "Data partner attached successfully."
}
}
Delete audience
DELETEDelete an audience. This endpoint first checks two validations before deleting an audience:
- User's access to audience IDs
- Whether audience IDs are attached to any campaigns.
If the user is not authorized to delete an audience, or the audience IDs are attached to a campaign, the request returns an error.
| Query parameters | |
|---|---|
audienceIds array of integers | Audience IDs. |
Response properties
successfulAudienceIds array of integers | Audience IDs successfully deleted. |
failedAudienceIds array of integers | Audience IDs not eligible for deletion. |
- JSON
{
"success": true,
"data": {
"successfulAudienceIds": [
123456,
123457
],
"failedAudienceIds": []
}
}
More responses
{
"statusCode": 400,
"responseObject": {
"errorMsg": "Request body either not provided or not valid.",
"errorCode": 400,
"description": "uri=/api/v2/audience/delete"
}
}
Matched audiences
Matched audience details
GETGet Matched audience details by ID.
| Path parameter | |
|---|---|
audienceId integer | Matched audience ID. |
| Query parameters | |
|---|---|
campaignTargetingRequired boolean optional | Flag to indicate if campaign targeting details are returned, default: false. |
userDetailsRequired boolean optional | Flag to indicate if user details are returned, default: false. |
Response properties
audienceId integer | Audience ID. | ||||||
audienceName string | Audience name. | ||||||
audienceTypeId integer | Audience type ID. Always 1 (Matched audience). | ||||||
audienceSubtypeId integer | Audience subtype ID. Returned only for Healthcare audiences. | ||||||
audienceStatusId integer | Audience status ID. | ||||||
cpm number | Data cost (CPM) charged if the audience is used in a campaign. | ||||||
owId integer | Organization Workspace ID. | ||||||
createdByUowId integer | Created by User Organization Workspace ID. | ||||||
createdAt integer | Unix epoch creation date (milliseconds). | ||||||
reach integer | Audience reach (matched unique users). 0 until the file is matched. | ||||||
householdReach integer | Household reach. Returned only for Political Matched audiences, once matched. | ||||||
columnMappings array of objects | Mappings between the file's columns and matching columns. | ||||||
| |||||||
columnId integer | Column ID. |
fileColumnName string | Column name in the uploaded file. |
dataFormatId integer | Data format ID of the column values. null for columns that don't take a data format. |
s3FileName string
s3Url string
fileRowCount integer
matchRate number
dataPartnerId integer
modifiedAt string
rejectionReason string
organizationName string
createdByUserName string
approvedOrRejectedByUserName string
approvedOrRejectedByUserEmail string
approvalAccess boolean
editAccess boolean
whitelistedCampaignIds array of integers
blacklistedCampaignIds array of integers
- JSON
{
"success": true,
"data": {
"audienceId": 1183827,
"audienceName": "HCP NPI Audience",
"audienceTypeId": 1,
"audienceSubtypeId": 3,
"audienceStatusId": 2,
"cpm": 0.0,
"owId": 204995,
"createdByUowId": 298904,
"createdAt": 1793036506707,
"reach": 0,
"columnMappings": [
{
"columnId": 18,
"fileColumnName": "NPI_ID",
"dataFormatId": null
}
],
"s3FileName": "1793036506720_hcp-npi-list.csv",
"s3Url": "s3://<bucket>/AUDIENCE/UPLOAD/HCP/Client=204995/Audience=1183827/1793036506720_hcp-npi-list.csv",
"fileRowCount": 5,
"dataPartnerId": 7,
"modifiedAt": "2026-10-26T17:41:50.066+00:00",
"organizationName": "Healthcare Workspace",
"createdByUserName": "Jane Smith",
"approvalAccess": false,
"editAccess": true
}
}
Create Matched audience
POSTCreate a Matched audience by uploading a file with user data. The metadata is sent as a JSON string in the audienceRequest form data field, and the file is uploaded as multipart/form-data in the file form data field.
For more information on Matched audiences and how they can serve your Healthcare, Political, or Specialty needs, refer to our Help Center articles.
| Request schema | |
|---|---|
audienceRequest form data required | Audience metadata details. |
file multipart/form-data required | File to be uploaded. |
audienceRequest properties
audienceName string required | Audience name. | |||||||
fileRowCount integer required | Number of rows in the file. | |||||||
fileColumnCount integer required | Number of columns in the file. | |||||||
audienceSubtypeId integer | Audience subtype ID. Healthcare audiences only. Omit it for Political audiences, which don't support subtypes. | |||||||
columnMappings array of objects required | Array of column mapping objects. | |||||||
| ||||||||
columnId integer | Column ID. |
fileColumnName string | File column name. |
dataFormatId integer | Data format ID. |
dataPartnerId integer
columnCombinationId integer required
consentGiven boolean
audienceRequest sample object for Political Matched audience
{
"audienceName": "matched-audience-example-fs",
"fileRowCount": 5,
"fileColumnCount": 1,
"columnMappings": [
{
"columnId": 1,
"fileColumnName": "l2-voter-id"
}
],
"dataPartnerId": 2,
"columnCombinationId": 1
}
audienceRequest sample object for Healthcare Matched audience
{
"audienceName": "Revamped Healthcare Matched Audience 02",
"dataPartnerId": 7,
"audienceSubtypeId": 3,
"columnMappings": [
{
"columnId": 18,
"fileColumnName": "NPI_ID"
}
],
"fileRowCount": 19,
"fileColumnCount": 1,
"columnCombinationId": 14
}
POST /api/v3/audience/matched HTTP/1.1
Host: api.iqm.com
Authorization: Bearer 0ed52da8-24ab-44b1-bc88-7ea03a090d24
X-IAA-OW-ID: <owId>
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="audienceRequest"
Content-Type: application/json
{"audienceName":"HCP NPI Audience","dataPartnerId":7,"audienceSubtypeId":3,"columnCombinationId":14,"fileRowCount":1200,"fileColumnCount":1,"columnMappings":[{"columnId":18,"fileColumnName":"NPI_ID"}]}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="hcp-npi-list.csv"
Content-Type: text/csv
[Binary CSV file data]
------WebKitFormBoundary7MA4YWxkTrZu0gW--
{
"success": true,
"data": {
"audienceId": 1183883,
"message": "HCP NPI Audience audience created successfully"
}
}
Update Matched audience
PATCHUpdate the data cost of a Matched audience. Only Matched audiences can be updated, and users without full access must have access to the audience's Organization.
To approve or reject a Matched audience, use Approve or reject Matched audience.
| Path parameter | |
|---|---|
audienceId integer | Matched audience ID. |
| Request schema | |
|---|---|
dataCost number | Data cost, returned as cpm in audience details. If omitted, the current data cost is kept. |
Response properties
message string | Success message. |
- JSON
{
"dataCost": 10
}
{
"success": true,
"data": {
"message": "Changes saved successfully"
}
}
More responses
{
"success": false,
"errorObjects": [
{
"error": "Only matched audiences can be edited."
}
]
}
Approve or reject Matched audience
POSTApprove or reject a Matched audience that has a Pending status. Only Matched audiences of the Patient subtype can be approved or rejected, and only full-access users in the organization that owns the Audiences application can perform this action.
| Path parameter | |
|---|---|
audienceId integer required | Matched audience ID. |
| Request schema | |
|---|---|
audienceStatusId integer required | Audience status ID: 3 to approve (Ready) or 4 to reject (Rejected). |
rejectionReason string | Reason for rejecting the audience. Required when audienceStatusId is 4, and must not be provided when approving. |
Response properties
message string | Success message. |
- JSON
{
"audienceStatusId": 3
}
{
"audienceStatusId": 4,
"rejectionReason": "Insufficient data quality."
}
{
"success": true,
"data": {
"message": "Changes saved successfully"
}
}
More responses
{
"success": false,
"errorObjects": [
{
"error": "Only application owner users with full access can update the audience status"
}
]
}
{
"success": false,
"errorObjects": [
{
"error": "Only audiences in PENDING status can be approved/rejected"
}
]
}
{
"success": false,
"errorObjects": [
{
"error": "Rejection reason must be provided when rejecting an audience",
"field": "rejectionReason"
}
]
}
Rematch audience
PUTRematch (refresh) an existing audience with the latest data. Supports Matched audiences and primary Integrated Care Team (ICT) audiences; extension ICT audiences aren't supported. The audience must be eligible for a rematch based on its status, when it was last rematched, and other criteria.
| Path parameter | |
|---|---|
audienceId integer required | Audience ID to rematch. |
Response properties
audienceId integer | Audience ID of the rematched audience. |
message string | Success message. |
- JSON
{
"success": true,
"data": {
"audienceId": 12345,
"message": "Test audience rematched successfully via Re-Match"
}
}
{
"success": false,
"errorObjects": [
{
"error": "No active audience found with the given Id.",
"field": "audienceId"
}
]
}
Data partners list for Matched audience
GETReturns a list of data partners relevant for audiences based on vertical and optional subtype.
- For Advertiser users, vertical is derived from the Organization Workspace ID of the logged-in user's Organization.
- For Workspace/super users, a vertical ID should be passed explicitly.
- Audience type ID is mandatory to fetch data partners.
- If a subtype ID is passed, it must be valid for the vertical.
- Data partners shown are based on active configurations.
| Query parameters | |
|---|---|
audienceTypeId integer required | Audience type ID. |
audienceSubtypeIds integer | Audience subtype IDs. |
verticalId integer | Vertical ID. |
active boolean | Filter for active data partners. |
Response properties
id integer | Data partner ID. |
name string | Data partner name. |
order integer | Display order. |
displayName string | Data partner display name. |
cpm number | Cost per mille (CPM). |
logoUrl string | URL to data partner logo. null if no logo is set. |
active boolean | Indicates if the data partner is active. |
- JSON
{
"success": true,
"data": [
{
"id": 7,
"name": "hl_npi_id",
"order": 6,
"displayName": "Healthlink ID",
"cpm": 10,
"logoUrl": "https://cdn.com/data_partner/hld.png",
"active": true
},
{
"id": 8,
"name": "data360_npi_id",
"order": 7,
"displayName": "Data360 ID",
"cpm": 15,
"logoUrl": "https://cdn.com/data_partner/D360.png",
"active": true
}
]
}
Data formats list for Matched audience
GETGet a static list of Matched audience hashed data formats.
Response properties
id integer | Data format ID. |
name string | Data format name. |
order integer | Display order. |
displayName string | Data format display name. |
- JSON
{
"success": true,
"data": [
{
"id": 1,
"name": "Raw",
"order": 1,
"displayName": "Raw"
},
{
"id": 2,
"name": "MD5",
"order": 2,
"displayName": "Hashed (MD5)"
},
{
"id": 3,
"name": "SHA1",
"order": 3,
"displayName": "Hashed (SHA1)"
},
{
"id": 4,
"name": "SHA256",
"order": 4,
"displayName": "Hashed (SHA256)"
},
{
"id": 5,
"name": "SHA512",
"order": 5,
"displayName": "Hashed (SHA512)"
},
{
"id": 6,
"name": "Other",
"order": 6,
"displayName": "Hashed (other)"
}
]
}
Matched column list
GETReturns a list of Matched audience columns along with its supported data format IDs based on vertical, and optional audience subtypes and data partner.
- For Advertiser users, vertical is inferred from the logged-in user's owId.
- For Workspace/super users, vertical ID should be passed explicitly.
- If both passed and inferred vertical IDs conflict, the request is rejected.
- Subtypes must belong to the specified vertical. When several subtypes are provided, columns applicable to any of them are returned.
- If there is no column combination found, it returns an empty list.
| Query parameter | |
|---|---|
verticalId integer optional | Vertical ID. |
audienceTypeId integer required | Audience type ID. |
audienceSubtypeIds array of integers optional | Audience subtype IDs, comma-separated. |
audienceSubtypeId integer optional | Single audience subtype ID, used only when audienceSubtypeIds isn't provided. |
dataPartnerId integer optional | Data partner ID, to filter columns by data partner-specific configuration. |
Response properties
id integer | Column ID. |
name string | Column name. |
order integer | Display order. |
displayName string | Column display name. |
dataFormatIds array | Array of supported data format IDs for this column. |
{
"success": true,
"data": [
{
"id": 1,
"name": "Voters_ID",
"order": 1,
"displayName": "Voter ID"
},
{
"id": 2,
"name": "Email",
"order": 3,
"displayName": "Email",
"dataFormatIds": [
1,
2,
3,
4,
5,
6
]
},
{
"id": 3,
"name": "Phone",
"order": 4,
"displayName": "Phone",
"dataFormatIds": [
1,
2,
3,
4,
5,
6
]
}
]
}
Matched column combinations
GETReturns a list of Matched audience column combinations based on vertical and optional audience subtypes.
- For Advertiser users, vertical is inferred from the logged-in user's owId.
- For Workspace/super users, vertical ID should be passed explicitly.
- If both passed and inferred vertical IDs conflict, the request is rejected.
- Subtypes must belong to the specified vertical. When several subtypes are provided, combinations applicable to any of them are returned.
| Query parameter | |
|---|---|
verticalId integer optional | Vertical ID. |
audienceTypeId integer required | Audience type ID. |
audienceSubtypeIds array of integers optional | Audience subtype IDs, comma-separated. |
audienceSubtypeId integer optional | Single audience subtype ID, used only when audienceSubtypeIds isn't provided. |
Response properties
id integer | Combination ID. |
columnIds array of integers | Column IDs in this combination. |
order integer | Display order. |
{
"success": true,
"data": [
{
"id": 1,
"columnIds": [
1
],
"order": 1
},
{
"id": 5,
"columnIds": [
5,
6,
7,
8
],
"order": 5
},
{
"id": 7,
"columnIds": [
9,
7,
8
],
"order": 7
}
]
}
Download Matched audience file
GETGet a presigned S3 URL to download a Matched audience file.
| Path parameters | |
|---|---|
audienceId integer | Matched audience ID to download file for. |
Response properties
matchedAudienceFileUrl string | Presigned S3 URL to download Matched audience file. |
{
"success": true,
"data": {
"matchedAudienceFileUrl": "https://cdn.com/CAM-FILES/Client%3D204389/Audience%3D1143824/1762502664252_3524Download___Impression__NPI_Nurse_iqvia_Filtere6956185605.csv?response-content-disposition=attachment%3Bfilename%3D%2217664252_3524Download___Impression__NPI_Nurse_iqvia_Filtered9185605.csv%22&response-content-type=application%2Foctet-stream&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIABRMU%2F20251205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251205T121547Z&X-Amz-Expires=120&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJAWPe%2FrI%3D&X-Amz-Signature=19fb8f0208181cd011414bad4e3e"
}
}
Segmented audiences
Segmented audience details
GETGet Segmented audience details by ID.
| Path parameter | |
|---|---|
audienceId string | Audience ID. |
Response properties
audienceId integer | Audience ID. | |||||||||||||||||||||||||||||||
audienceName string | Audience name. | |||||||||||||||||||||||||||||||
audienceStatusId integer | Audience status ID. | |||||||||||||||||||||||||||||||
createdAt integer | Creation timestamp (epoch seconds). | |||||||||||||||||||||||||||||||
uniques integer | Count of unique audiences reached. | |||||||||||||||||||||||||||||||
cpm number | Cost per mille. | |||||||||||||||||||||||||||||||
editAccess boolean | Indicates if user has edit access for the requested resource. | |||||||||||||||||||||||||||||||
segmentPartnerName string | Segment partner name. | |||||||||||||||||||||||||||||||
segmentPartnerId integer | Segment Partner ID. | |||||||||||||||||||||||||||||||
segmentPartnerLogo string | Segment partner logo URL. | |||||||||||||||||||||||||||||||
equation string | Equation string describing the or-and relationship between Segment groups. | |||||||||||||||||||||||||||||||
segmentsList array of objects | Array of Segmented audiences. | |||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
segmentId integer | Segmented audience ID. | ||||||
taxonomyId string | Taxonomy category ID. | ||||||
taxonomyValue string | Value associated with taxonomy category. | ||||||
description string | Description. | ||||||
pathKey string | A hierarchical key representing the taxonomy's path or structure. | ||||||
cpm number | Cost per mille. | ||||||
modifiedAt string | Date last modified. | ||||||
totalReach integer | Total number of reach in terms of devices. | ||||||
reachMetadata object | Reach metadata object, breakdown by device type. | ||||||
| |||||||
iosDevicesReach integer | iOS devices reach. |
androidDevicesReach integer | Android devices reach. |
cookiesReach integer | Cookies reach. |
dataAvailable boolean
leafNode boolean
- JSON
{
"success": true,
"data": {
"audienceId": 1076846,
"audienceName": "Test kishan 19,04:50",
"audienceStatusId": 3,
"createdAt": 1718796428,
"uniques": 0,
"cpm": 1.5,
"editAccess": true,
"segmentPartnerName": "LiveRamp",
"segmentPartnerId": 1,
"segmentPartnerLogo": "https://s3.amazonaws.com/advp0had0vuj7rad3niaw1eus2/data_partner/liveramp.png",
"equation": "((5586112|6450431)&(14005))",
"segmentsList": [
{
"segmentId": 14005,
"taxonomyId": "1000143856",
"taxonomyValue": "Western Samoa",
"description": null,
"pathKey": "LiveRamp > L2 Political > L2 Voter Data > Individual Demographics > Ethnicity > Ethnic Description > Western Samoa",
"cpm": 1.5,
"modifiedAt": "2021-06-08 08:45:50.979634",
"totalReach": 0,
"reachMetadata": null,
"dataAvailable": false,
"leafNode": true
},
{
"segmentId": 5586112,
"taxonomyId": "1007595031",
"taxonomyValue": "South Dakota-13",
"description": "30 day full data refresh: Individuals living in the South Dakota-13 state senate district. For political use only.",
"pathKey": "LiveRamp > 123Push > Optimized for CTV > Voters > State Senate District > South Dakota-13",
"cpm": 0.75,
"modifiedAt": "2021-06-08 08:45:50.979634",
"totalReach": 14800,
"reachMetadata": null,
"dataAvailable": false,
"leafNode": true
},
{
"segmentId": 6450431,
"taxonomyId": "1000037244",
"taxonomyValue": "Voted In the 2004 Primary Election",
"description": "This segment contains users who voted in the General Election of this election year",
"pathKey": "LiveRamp > Porch Group Media (fka V12) > V12 > NEW VOTER & INCOME > Voted In the 2004 Primary Election",
"cpm": 0.5,
"modifiedAt": "2024-05-07 09:52:51.191186",
"totalReach": 5100000,
"reachMetadata": {
"iosDevicesReach": 2200000,
"androidDevicesReach": 2900000,
"cookiesReach": 0
},
"dataAvailable": false,
"leafNode": true
}
]
}
}
Search Segmented audiences
POSTPOST
Retrieves the segments search list based on the provided request parameters. Allows filtering segments based on various criteria such as search fields, segment IDs, provider, price range, and more. Search results can be downloaded as a CSV file using the download endpoint.
| Request schema | |
|---|---|
pageNo integer | Page number for the required data, default: 1. |
noOfEntries integer | Maximum number of returned results per page, default: 100. |
sortBy string | Sorts results by specified field. For ascending use plus(+) sign and for descending use minus (-) sign. |
searchKeywordSet array of strings | Search keywords to be searched on the 'pathKey' and 'description' of the segments with encoded special characters (required if segmentIds not given). |
segmentIds array of integers | Segment IDs to filter returned data by (required if searchKeywordSet not given). |
verticalIds array of integers | Vertical IDs to filter returned data by. |
partnerIds array of integers | Partner IDs to filter returned data by. |
providerIds array of integers | Provider IDs to filter returned data by. |
priceRangeIds array of integers | Price range IDs to filter returned data by. |
reachRangeIds array of integers | Reach range IDs to filter returned data by. |
showOnlyReadySegments boolean | Flag to filter segments that are ready, default: false. |
showOnlyNonZeroSegments boolean | Flag to filter segments that have non-zero reach, default: false. |
Response properties
segmentId integer | Segment ID. | |||||||
taxonomyValue string | Taxonomy value. | |||||||
description string | Description. | |||||||
pathKey string | A hierarchichal key representing the taxonomy's path or structure. | |||||||
cpm integer | Cost per mille. | |||||||
referenceId string | Reference ID. | |||||||
lastUpdateDate string | Date when last updated. | |||||||
totalReach integer | Total reach. | |||||||
providerId integer | Provider ID. | |||||||
partnerId integer | Partner ID. | |||||||
reachMetadata object | Reach metadata object details. | |||||||
| ||||||||
iosDevicesReach integer | IOS devices reach. |
androidDevicesReach integer | Android devices reach. |
cookiesReach integer | Cookies reach. |
logoUrl string
- JSON
{
"searchKeywordSet": [
"sample 1",
"sample 2"
],
"sortBy": "-reach",
"verticalIds": [
1,
2,
3
],
"partnerIds": [
1,
2,
3
],
"providerIds": [
1,
2,
3
],
"priceRangeIds": [
1,
2,
3
],
"reachRangeIds": [
1,
2,
3
],
"segmentIds": [
1,
2,
3
],
"showOnlyReadySegments": true,
"showOnlyNonZeroSegments": true
}
{
"success": true,
"data": {
"filteredRecords": 45,
"segmentsList": [
{
"segmentId": 5830140,
"taxonomyValue": "Thriller/Horror",
"description": "This audience contains people that are likely to watch Thriller/Horror TV content & are CBD purchasers. Data leverages Comscore's deterministic, single-source cross-platform dataset derived from set-top box (STB) data from households exposed to the target viewing criteria & is cultivated from industry-leading endemic companies (Point of Sale systems, eCommerce platforms, Delivery services, and Loyalty/CRM platforms).",
"pathKey": "LiveRamp > Fyllo > Fyllo > Infused > Comscore > TV > Genre > Thriller/Horror",
"cpm": 1.5,
"referenceId": "a5b286f2-3b48-42b1-a0d3-1c349aa8800b",
"lastUpdatedDate": "2021-07-04T10:48:42.296+00:00",
"totalReach": 6000000,
"providerId": 140,
"partnerId": 1,
"dataAvailable":true,
"reachMetadata": {
"iosDevicesReach":120,
"androidDevicesReach":120,
"cookiesReach":120
},
"logoUrl": "https://s3.amazonaws.com/advp0had0vuj7rad3niaw1eus2/data_partner/liveramp.png"
},
{
"segmentId": 6164189,
"taxonomyValue": "Thriller Crime & Mystery Films",
"description": "ShareThis collects data from its network of 600 million publisher pages capturing site visitors' pageviews, clicks, shares, and searches. ShareThis processes these signals and uses associated keywords and topics to build out its audience. ShareThis CTV targeting allows you to leverage this online behavioral data for CTV campaigns, merging the performance of online interest data with the impact and engagement of TV.",
"pathKey": "LiveRamp > ShareThis > ShareThis > ShareThis for TV > Arts & Entertainment > Movies > Thriller Crime & Mystery Films",
"cpm": 2.0,
"referenceId": "e2b856fd-8777-42f1-b916-1f3042ed290d",
"lastUpdatedDate": "2021-12-03T11:19:19.763+00:00",
"totalReach": 8600000,
"providerId": 21,
"partnerId": 1,
"dataAvailable":true,
"reachMetadata": {
"inputRecordsReach":120,
"iosDevicesReach":120,
"androidDevicesReach":120,
"cookiesReach":120
},
"logoUrl": "https://s3.amazonaws.com/advp0had0vuj7rad3niaw1eus2/data_partner/liveramp.png"
}
]
}
}
Create Segmented audience
POSTCreates a Segmented audience based on the provided request parameters.
Using Segment IDs (Search Segmented audiences), you can build an audience with the equation field. Segment IDs in parentheses, separated by a vertical bar (|), are in an 'or' relationship, which combines the sets of Segments; groups of Segments in parentheses, separated by an ampersand (&), are in an 'and' relationship, which builds an audience based on the intersection of those groups.
You can see an example of this format in the Request sample code block on the right-hand side of the page, or you can read more in our Help Center article on Segments Groups and relationships.
| Request schema | |
|---|---|
equation string required | Equation string representing the segment ID groups in AND/OR relationship. |
audienceName string required | Name of the Segmented audience to be created (maximum 255 characters). |
Response properties
id integer | Audience ID. |
message string | Success message. |
- JSON
{
"equation": "((6388749|6388750)&(6388751|6402730|6392754|5776004))",
"audienceName": "football-temp"
}
{
"success": true,
"data": {
"audienceId": 1140623,
"message": "<Audience Name> audience created successfully"
}
}
Update Segmented audience
PUTUpdates an existing Segmented audience based on the provided request parameters. Allows modifying the details of an existing Segmented audience (name and segments).
| Path parameter | |
|---|---|
audienceId integer | Audience ID. |
| Request schema | |
|---|---|
equation string required | Equation string representing the segment ID groups in AND/OR relationship. |
audienceName string required | Name of the Segmented audience to be updated (maximum 255 characters). |
Response properties
audienceId integer | Audience ID. |
message string | Success message. |
- JSON
{
"equation": "((5613837|5638265)&(5613844))",
"name": "Segment audience - 1"
}
{
"success": true,
"data": {
"audienceId": 1140623,
"message": "<Audience Name> audience updated successfully"
}
}
Segment partner provider list
GETGet a list of partners and providers with basic audience information.
Response properties
partnerId integer | Partner ID. | |||||||||||
partnerName string | Partner name. | |||||||||||
partnerLogoUrl string | Partner logo URL. | |||||||||||
description string | Partner description. | |||||||||||
verticalIds array of integers | List of Vertical IDs. | |||||||||||
displayOrder integer | Display order. | |||||||||||
seatId integer | Seat ID. | |||||||||||
providers array of objects | Array of Provider details. | |||||||||||
| ||||||||||||
providerId integer | Provider ID. |
providerName string | Provider name. |
providerLogoUrl string | Provider logo URL. |
description string | Provider description. |
verticalIds array of integers | List of Vertical IDs. |
isCustomPartner boolean
isPartnerPublic boolean
- JSON
{
"success": true,
"data": [
{
"partnerId": 6,
"partnerName": "IQM Political",
"partnerLogoUrl": "https://www.sample-domain/data_partner/iqm-political-provider.svg",
"description": "IQM Political",
"verticalIds": [
1
],
"displayOrder": 2,
"providers": [
{
"providerId": 76,
"providerName": "AdMavin",
"providerLogoUrl": "https://www.sample-domain.com/iqm-political-provider.svg",
"description": "AdMavin",
"verticalIds": [
1
]
},
{
"providerId": 279,
"providerName": "Aristotle",
"providerLogoUrl": "https://www.sample-domain.com/iqm-political-provider.svg",
"description": "Aristotle",
"verticalIds": [
1
]
}
],
"isCustomPartner": false,
"isPartnerPublic": false
},
{
"partnerId": 13033,
"partnerName": "OL's Healthcare",
"partnerLogoUrl": "https://www.sample-domain.com/avatar/OH.png",
"description": "Seat ID: 203775",
"seatId": 203775,
"displayOrder": 0,
"isCustomPartner": true,
"isPartnerPublic": false
}
]
}
Segment list by provider/partner IDs
GETGet a list of Segments by given provider or parent ID. If parent ID is not provided, endpoint returns all direct segments of a given provider ID.
| Query parameters | |
|---|---|
partnerId integer required | Partner ID. |
providerId integer required | Provider ID. |
parentId integer | Parent ID, if not provided returned results will include all direct segments of provided ID. |
showOnlyNonZeroSegments boolean | Returns segments with reach greater than 0: true, default: false. |
showOnlyReadySegments boolean | Returns segments with "ready" status: true. |
Response properties
segmentId integer | Segment ID. | |||||||
taxonomyValue string | Taxonomy value. | |||||||
description string | Description. | |||||||
pathKey string | A hierarchichal key representing the taxonomy's path or structure. | |||||||
cpm number | Cost per mille. | |||||||
modifiedAt string | Date last modified. | |||||||
totalReach integer | Total number of reach in terms of devices. | |||||||
reachMetadata object | Reach metadata object, breakdown by device type. | |||||||
| ||||||||
iosDevicesReach integer | iOS devices reach. |
androidDevicesReach integer | Android devices reach. |
cookiesReach integer | Cookies reach. |
dataAvailable boolean
leaf boolean
- JSON
{
"success": true,
"data": [
{
"segmentId": 6192803,
"taxonomyValue": "Giving And Investment",
"description": "Sample description",
"pathKey": "LiveRamp > i360 > i360 > Demographics > Giving And Investment",
"cpm": 10,
"modifiedAt": "2021-06-08T03:15:50.979+00:00",
"totalReach": 360,
"dataAvailable": true,
"reachMetadata": {
"iosDevicesReach": 120,
"androidDevicesReach": 120,
"cookiesReach": 120
},
"leaf": false
},
{
"segmentId": 6192796,
"taxonomyValue": "Ages 18 To 29",
"description": "Individuals Ages 18 And 29.",
"pathKey": "LiveRamp > i360 > i360 > Demographics > Ages 18 To 29",
"cpm": 1,
"modifiedAt": "2021-06-08T03:15:50.979+00:00",
"totalReach": 360,
"reachMetadata": {
"iosDevicesReach": 120,
"androidDevicesReach": 120,
"cookiesReach": 120
},
"leaf": true
}
]
}
Retargeted audiences
Create Retargeted audience
POSTCreate a Retargeted audience.
| Request schema | |
|---|---|
audienceName string | Audience name. |
dateCollectionBy string | Date collection can be either month or date_range. |
dateCollectionPeriod integer | Data collection period. |
startDate integer | Start date in Unix epoch milliseconds, required if dateCollectionBy is set to date_range. |
endDate integer | End date in Unix epoch milliseconds, required if dateCollectionBy is set to date_range. |
Response properties
audienceId integer | Audience ID. |
tag_script string | Tag script. |
message string | Success message. |
- JSON
{
"audienceName": "Test audience by month",
"dataCollectionBy": "month",
"dataCollectionPeriod": 1
}
{
"success": true,
"data": {
"tag_script": "<script src='https://pxl.stage.iqm.com/c/4c90b124-bfbe-4af1-b780-d2a1d3cb93c1' async></script>",
"audienceId": 1140586,
"message": "Test audience by month audience created successfully"
}
}
Update Retargeted audience
PATCHUpdate a Retargeted audience.
| Path parameter | |
|---|---|
audienceId string | Retargeted audience ID. |
| Request schema | |
|---|---|
audienceName string | Audience name. |
dateCollectionBy string | Date collection can be either month or date_range. |
dateCollectionPeriod integer | Data collection period. |
startDate integer | Start date in Unix epoch milliseconds, required if dateCollectionBy is set to date_range. |
endDate integer | End date in Unix epoch milliseconds, required if dateCollectionBy is set to date_range. |
Response properties
tag_script string | Tag script. |
message string | Success message. |
- JSON
{
"audienceName": "Test audience by month",
"dataCollectionBy": "month",
"dataCollectionPeriod": 1
}
{
"success": true,
"data": {
"tag_script": "<script src='https://sample.url.com/c/02e378aa-275b-40aa-9a2c-a41ce2e02c88' async></script>",
"message": "Your changes have been saved successfully"
}
}
Retargeted audience email notification
POSTSend email with Retargeted audience pixel code to specified recipients.
| Path parameter | |
|---|---|
audienceId string | Retargeted audience ID. |
| Request schema | |
|---|---|
recipientEmails array of strings | Recipient emails. |
Response properties
message string | Success message. |
- JSON
{
"recipientEmails": [
"test.s@gmail.com"
]
}
{
"success": true,
"data": {
"message": "Pixel Code emailed successfully"
}
}
Geofarmed audiences
Geofarmed audience details
GETGet Geofarmed audience details by ID.
| Path parameter | |
|---|---|
audienceId string | Geofarmed audience ID. |
Response properties
audienceId integer | Audience ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
audienceName string | Audience name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
audienceStatusId integer | Audience status ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt integer | Creation timestamp (epoch seconds). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reach integer | Audience reach. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cpm number | Cost per thousand impressions. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
audienceSubtypeId integer | Audience subtype ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dataPartnerId integer | Data partner ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dataPartnerMetrics array of objects | Data partner metrics. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id integer | Data partner ID. |
reach integer | Reach for this data partner. |
frequency integer
frequencyTypeId integer
startDate integer
endDate integer
timezoneId integer
timeRange object
locations object
locations object properties
country integer | Country ID. | |||||||||||||||||||||||||||||||||||||||||||||
includedobject | Included locations object. | |||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||
zipCodesarray of strings | Zip codes. | ||||||||||||||||||||||||||||||||||||
customAreasarray of objects | Custom areas. | ||||||||||||||||||||||||||||||||||||
locationIds array of integers | Location IDs. | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
latitude integer | Latitude. | |||||
longitudeinteger | Longitude. | |||||
radiusinteger | Radius (miles). | |||||
addressstring | Addresses to add to custom area. | |||||
locationIdinteger | Location ID. | |||||
polypathobject | A set of coordinates defining the boundary of the custom area. | |||||
| ||||||
lat integer | Latitude. |
lnginteger | Longitude. |
isIncludedboolean
cidstring
sidstring
typestring
unitstring
cdIdinteger
sdIdinteger
hdIdinteger
excludedobject
excluded object properties
zipCodesarray of strings | Zip codes. | ||||||||||||||||||||||||||||||||||||
customAreasarray of objects | Custom areas. | ||||||||||||||||||||||||||||||||||||
locationIds array of integers | Location IDs. | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
latitude integer | Latitude. | |||||
longitudeinteger | Longitude. | |||||
radiusinteger | Radius (miles). | |||||
addressstring | Address. | |||||
locationIdinteger | Location ID. | |||||
polypathobject | A set of coordinates defining the boundary of the custom area. | |||||
| ||||||
lat integer | Latitude. |
lnginteger | Longitude. |
isIncludedboolean
cidstring
sidstring
typestring
unitstring
cdIdinteger
sdIdinteger
hdIdinteger
locationFileIdsarray of integers
bulkLocationDetails object
bulkLocationDetails object properties
fileName string | File name. | |||||||||||||||||||||||
fileType string | File type. | |||||||||||||||||||||||
validLocations array of objects | Valid locations. | |||||||||||||||||||||||
| ||||||||||||||||||||||||
latitude number | Latitude. |
longitude number | Longitude. |
radius number | Radius. |
address string | Address. |
locationId integer | Location ID. |
cid string | Country abbreviation, e.g. US. |
sid string | State abbreviation, e.g. NY. |
cdId integer | Congressional district ID. |
sdId integer | Senate district ID. |
hdId integer | House district ID. |
isIncluded boolean | Is included flag. |
invalidLocations null
locationRejectionReasons null
campaignId null
id integer
rowCount null
invalidLocationsCount null
duplicateLocationsCount null
- JSON
{
"success": true,
"data": {
"audienceId": 1141873,
"audienceName": "my geo check 3",
"audienceStatusId": 1,
"createdAt": 1754997589,
"reach": 14300,
"cpm": 10,
"audienceSubtypeId": 3,
"dataPartnerId": 7,
"dataPartnerMetrics": [
{
"id": 7,
"reach": 14300
},
{
"id": 10,
"reach": 14142
},
{
"id": 8,
"reach": 4989
}
],
"frequency": 1,
"frequencyTypeId": 1,
"startDate": 1752465600,
"endDate": 1752552000,
"timezoneId": 29,
"timeRange": null,
"locations": {
"included": {
"zipCodes": [
"03060"
],
"customAreas": [
{
"latitude": 36.03264396648448,
"longitude": -119.88024262579326,
"radius": 0.5,
"address": "24M9+3W Kettleman City, CA, USA",
"locationId": 0,
"cid": "US",
"sid": "CA",
"type": "circle",
"unit": "mile",
"cdId": 0,
"sdId": 0,
"hdId": 0,
"isIncluded": true
},
{
"latitude": 36.030047897646504,
"longitude": -119.85904244573955,
"radius": 0.5,
"address": "24JR+29 Kettleman City, CA, USA",
"locationId": 0,
"cid": "US",
"sid": "CA",
"type": "circle",
"unit": "mile",
"cdId": 0,
"sdId": 0,
"hdId": 0,
"isIncluded": true
},
{
"latitude": 36.03107268797965,
"longitude": -79.36266450079326,
"radius": 31.99,
"address": "Graham, NC 27253, USA",
"locationId": 0,
"polypath": [
{
"lat": 36.38721903107804,
"lng": -79.62633637579326
},
{
"lat": 35.53354668242086,
"lng": -79.97789887579326
},
{
"lat": 35.67646553441582,
"lng": -78.83532075079326
},
{
"lat": 36.52859869353844,
"lng": -78.74743012579326
}
],
"cid": "US",
"sid": "NC",
"type": "custom",
"unit": "mile",
"cdId": 0,
"sdId": 0,
"hdId": 0,
"isIncluded": true
},
{
"latitude": 34.4534306784404,
"longitude": -80.72496918829326,
"radius": 20.21,
"address": "Camden, SC 29020, USA",
"locationId": 0,
"polypath": [
{
"lat": 34.59837718611232,
"lng": -80.41735200079326
},
{
"lat": 34.59837718611232,
"lng": -81.03258637579326
},
{
"lat": 34.30848417076847,
"lng": -81.03258637579326
},
{
"lat": 34.30848417076847,
"lng": -80.41735200079326
}
],
"cid": "US",
"sid": "SC",
"type": "square",
"unit": "mile",
"cdId": 0,
"sdId": 0,
"hdId": 0,
"isIncluded": true
}
],
"locationIds": [
1252824,
1252825
]
},
"excluded": {
"zipCodes": [],
"customAreas": [],
"locationIds": []
},
"locationFileIds": [
17063
],
"country": 30100001
},
"bulkLocationDetails": {
"17063": {
"fileName": "bulk-location-example.csv",
"fileType": "location",
"validLocations": [
{
"latitude": 40.7128,
"longitude": -74.006,
"radius": 0.5,
"address": "230 Broadway, New York, NY 10007, USA",
"locationId": 1252824,
"cid": "US",
"sid": "NY",
"cdId": 0,
"sdId": 0,
"hdId": 0,
"isIncluded": true
},
{
"latitude": 36.7783,
"longitude": -119.4179,
"radius": 1,
"address": "2630 Croydon Drive, Sanger, CA 93657, USA",
"locationId": 1252825,
"cid": "US",
"sid": "CA",
"cdId": 0,
"sdId": 0,
"hdId": 0,
"isIncluded": true
}
],
"invalidLocations": null,
"locationRejectionReasons": null,
"campaignId": null,
"id": 17063,
"rowCount": null,
"invalidLocationsCount": null,
"duplicateLocationsCount": null
}
}
}
}
Create Geofarmed audience
POSTCreate a Geofarmed audience.
| Request schema | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
audienceName string | Audience name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
frequency integer | The frequency of visit to the geographical location (1-10), based on frequencyTypeId. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
frequencyTypeId integer | Frequency type ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timezoneId integer | Timezone ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
startDate integer | Unix epoch start date, in milliseconds. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
endDate integer | Unix epoch end date, in milliseconds. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timeRange object | Name-value pairs of day of the week (e.g. Monday: 1, Tuesday: 2, etc.) and an object containing a time range (see example below this table). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timeRangeWithTimezone object | Alternative time range configuration with timezone support. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
audienceSubtypeIds array of integers | Audience subtype IDs. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removedLocationsIds array of integers | Removed location IDs, as specified in the uploaded location file. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
locations object | Locations object. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
country integer | Country ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
includedobject | Included locations object. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
zipCodesarray of strings | Zip codes. | ||||||||||||||||||||||||||||||||||||||||||||
customAreasarray of objects | Custom areas. | ||||||||||||||||||||||||||||||||||||||||||||
locationIds array of integers | Location IDs. | ||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||
latitude integer | Latitude. | |||||
longitudeinteger | Longitude. | |||||
radiusinteger | Radius. | |||||
addressstring | Address. | |||||
stateShortNamestring | State short name. | |||||
countryShortNamestring | Country short name. | |||||
locationIdinteger | Location ID. | |||||
rejectionReasonstring | Rejection reason (if applicable). | |||||
polypathobject | A set of coordinates defining the boundary of the custom area. | |||||
| ||||||
lat integer | Latitude. |
lnginteger | Longitude. |
placemarkNamestring
cidstring
sidstring
typestring
unitstring
cdIdinteger
sdIdinteger
hdIdinteger
isIncludedboolean
excludedobject
excluded object properties
zipCodesarray of strings | Zip codes. | ||||||||||||||||||||||||||||||||||||||||||||
customAreasarray of objects | Custom areas. | ||||||||||||||||||||||||||||||||||||||||||||
locationIds array of integers | Location IDs. | ||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||
latitude integer | Latitude. | |||||
longitudeinteger | Longitude. | |||||
radiusinteger | Radius. | |||||
addressstring | Address. | |||||
stateShortNamestring | State short name. | |||||
countryShortNamestring | Country short name. | |||||
locationIdinteger | Location ID. | |||||
rejectionReasonstring | Rejection reason (if applicable). | |||||
polypathobject | A set of coordinates defining the boundary of the custom area. | |||||
| ||||||
lat integer | Latitude. |
lnginteger | Longitude. |
placemarkNamestring
cidstring
sidstring
typestring
unitstring
cdIdinteger
sdIdinteger
hdIdinteger
isIncludedboolean
locationFileIdsarray of integers
timeRange example
"timeRange": {
"0": [
[
"19:00:00",
"22:00:00"
]
],
"1": [
[
"09:00:00",
"12:00:00"
],
[
"15:00:00",
"18:00:00"
]
],
"2": [
[
"04:00:00",
"11:00:00"
]
],
"4": [
[
"06:00:00",
"12:00:00"
]
],
"6": [
[
"01:00:00",
"10:00:00"
]
]
},
Response properties
id integer | Audience ID. |
message string | Success message. |
- JSON
{
"audienceName": "Healthcare Professionals NYC",
"frequency": 5,
"frequencyTypeId": 2,
"startDate": 1697040000,
"endDate": 1699641600,
"timezoneId": 1,
"audienceSubtypeIds": [
3,
4
],
"timeRange": {
"0": [
[
"09:00:00",
"17:00:00"
]
],
"1": [
[
"10:00:00",
"18:00:00"
]
]
},
"locations": {
"country": 1,
"included": {
"zipCodes": [
"10001",
"10002",
"10003"
],
"customAreas": [
{
"type": "circle",
"latitude": 40.7128,
"longitude": -74.006,
"radius": 5,
"unit": "mile"
}
]
},
"locationFileIds": [
123
]
}
}
{
"success": true,
"data": {
"audienceIds": [
1142280
],
"message": "Test_aud audience created successfully"
}
}
Contextual audiences
Contextual audience details
GETGet Contextual audience details by ID.
| Path parameter | |
|---|---|
audienceId integer | Audience ID. |
Response properties
audienceId integer | Audience ID. | ||||
audienceName string | Audience name. | ||||
audienceSubtypeId integer | Audience subtype ID. Returned only for Healthcare audiences created with audienceSubtypes. | ||||
audienceStatusId integer | Audience status ID. | ||||
cpm number | Data cost (CPM) charged if the audience is used in a campaign. Not returned when no data cost applies. | ||||
reach integer | Audience reach (unique users). 0 until the audience has data. | ||||
createdAt integer | Unix epoch creation date (milliseconds). | ||||
keywords array of strings | Keywords. Not returned when the audience has no keywords. | ||||
urls array of strings | URLs. Not returned when the audience has no URLs. | ||||
dataCollectionMethodId integer | Data collection method: static (1) or dynamic (2). | ||||
startDate integer | Unix epoch start date, in milliseconds (static data collection only). | ||||
endDate integer | Unix epoch end date, in milliseconds (static data collection only). | ||||
dataCollectionDays integer | Number of days in the rolling data collection timeframe (dynamic data collection only). | ||||
frequency integer | Number of times a user must visit a relevant site to be added to the audience. | ||||
dataPartnerId integer | Data partner ID. Returned only when a data partner is set for the audience. | ||||
dataPartnerMetrics array of objects | Reach per data partner. Returned only when data partner metrics are available. | ||||
| |||||
id integer | Data partner ID. |
reach integer | Reach for this data partner. |
- JSON
{
"success": true,
"data": {
"audienceId": 1183825,
"audienceName": "California Politics URLs",
"audienceStatusId": 3,
"cpm": 1.5,
"createdAt": 1793036335190,
"reach": 0,
"urls": [
"https://www.iqm.com"
],
"dataCollectionMethodId": 2,
"dataCollectionDays": 20,
"frequency": 5
}
}
Create Contextual audience
POSTCreate a Contextual audience.
Data collection period: the timeframe during which a user visits the publisher(s) relevant to one or more keywords or URLs added to the Contextual audience.
The start date of a Contextual audience must be within the last 180 days.
Contextual audiences support a static or dynamic data collection period of up to 90 days.
| Request schema | |
|---|---|
audienceName string required | Audience name, up to 255 characters. |
keywords array of strings | Keywords to generate a Contextual audience. Send an empty array ([]) if you only use URLs. |
urls array of strings | The publisher sites visited by a user. Each URL must include a scheme (https://). Send an empty array ([]) if you only use keywords. |
frequency integer required | The number of times a user visits the publisher(s) relevant to one or more keywords or URLs added to the Contextual audience, from 1 to 10. |
timezoneId integer required | Timezone ID that sets the data collection start time. |
dataCollectionMethodId integer required | static (1): data collection over a fixed set of dates. dynamic (2): data collection over a rolling timeframe, with data refreshes every 24 hours. |
startDate integer | Unix epoch start date, in milliseconds. Required if the data collection method is static. |
endDate integer | Unix epoch end date, in milliseconds. Required if the data collection method is static. |
dataCollectionDays integer | Number of days in the rolling data collection timeframe, up to 60. Required if the data collection method is dynamic. |
audienceSubtypes array of integers | List of audience subtype IDs to further define the Contextual audience. Healthcare workspaces only. One audience is created per subtype. |
Response properties
audienceIds array of integers | IDs of the created audiences (one per subtype when audienceSubtypes is sent). |
message string | Success message. |
- JSON
{
"audienceName": "Test_aud",
"frequency": 5,
"startDate": 1797310800000,
"endDate": 1800507599000,
"keywords": [
"Test"
],
"urls": [
"http://iqm.com"
],
"timezoneId": 29,
"dataCollectionMethodId": 1,
"audienceSubtypes": [
3,
4
]
}
{
"success": true,
"data": {
"audienceIds": [
1183880,
1183881
],
"message": "Test_aud audience created successfully"
}
}
Validate URL for Contextual audience
POSTValidate given URLs to be targeted in a Contextual audience.
| Request schema | |
|---|---|
| URLs array of strings | URLs to validate |
Response properties
success boolean | Indicates report was successfully created: true. |
data array of strings | Validated URLs. |
- JSON
[
"https://sample-url-1.com",
"https://sample-url-2.com",
"https://sample-url-3.com"
]
{
"success": true,
"data": {
"https://sample-url-1.com": false,
"https://sample-url-2.me": true,
"https://sample-url-3.me": null,
"https://sample-url-4.com": true
}
}
Lookalike audiences
Get Lookalike audience details
GETGet Lookalike audience details.
| Path parameter | |
|---|---|
audienceId string | Lookalike audience ID. |
| Query parameter | |
|---|---|
isTargetingInfoRequired boolean | Includes targeting info in response (true) and targeted campaign details (type of targeting, attached campaign status), default: (false). |
Response properties
audienceId integer | Audience ID. | |||||||||||||||
audienceName string | Audience name. | |||||||||||||||
audienceStatusId integer | Audience status ID. | |||||||||||||||
createdAt integer | Creation timestamp (epoch seconds). | |||||||||||||||
organizationName string | Organization name. | |||||||||||||||
owId integer | Organization Workspace ID. | |||||||||||||||
createdByUowId integer | Created by User Organization Workspace ID. | |||||||||||||||
createdByUser string | Created by user name. | |||||||||||||||
createdByUserEmail string | Created by user email (may be null). | |||||||||||||||
reach integer | Audience reach. | |||||||||||||||
cpm number | Cost per thousand impressions. | |||||||||||||||
sourceAudienceIds array of integers | Source audience IDs. | |||||||||||||||
geoLocationDetails object | Geo location details. | |||||||||||||||
| ||||||||||||||||
countryIds array of integers | Country IDs. |
stateIds array of integers | State IDs. |
cityIds array of integers | City IDs. |
countyIds array of integers | County IDs. |
senateDistrictIds array of integers | Senate district IDs. |
houseDistrictIds array of integers | House district IDs. |
congressionalDistrictIds array of integers | Congressional district IDs. |
audienceSize integer
targetedCampaignList array of objects
targetedCampaignList object properties
campaignName string | Campaign name. |
campaignId integer | Campaign ID. |
targetingTypeId integer | Targeting type ID (1=Whitelist, 2=Blacklist). |
campaignStatus string | Campaign status. |
approvedRejectedByUserName string
rejectionReason string
isApprovalAccess boolean
{
"success": true,
"data": {
"audienceId": 1141499,
"audienceName": "Test lookalike Audience - 90K",
"audienceStatusId": 3,
"createdAt": 1753882035,
"organizationName": "Political Advertiser - Audience Bidder",
"owId": 204472,
"createdByUowId": 267663,
"createdByUser": "Political Advertiser - Audience Bidder",
"createdByUserEmail": null,
"reach": 2000,
"cpm": 1.5,
"sourceAudienceIds": [123456, 123457],
"geoLocationDetails": {
"countryIds": [30100001],
"stateIds": [30200001, 30200002, 30200003, 30200004],
"cityIds": [30400001, 30400002],
"countyIds": [30300001, 30300003],
"senateDistrictIds": [687, 688],
"houseDistrictIds": [5098, 5121],
"congressionalDistrictIds": [350, 78]
},
"audienceSize": 10,
"targetedCampaignList": [
{
"campaignName": "Audience - LookAlike Audience with IP Based",
"campaignId": 565213,
"targetingTypeId": 1,
"campaignStatus": "Running"
},
{
"campaignName": "Audience - LookAlike Audience with Device Based - Blacklisted",
"campaignId": 565262,
"targetingTypeId": 2,
"campaignStatus": "Paused"
}
],
"approvedRejectedByUserName": null,
"rejectionReason": null,
"isApprovalAccess": true
}
}
Create Lookalike audience
POSTCreate a Lookalike audience.
| Request schema | |
|---|---|
audienceName string | Audience name. |
sourceAudienceIds string | Source audience IDs. |
countryIdsstring | Country IDs. |
stateIdsstring | State IDs. |
cityIdsstring | City IDs. |
countyIdsstring | County IDs. |
senateDistrictIdsstring | Senate district IDs. |
houseDistrictIdsstring | House district IDs. |
congressionalDistrictIdsstring | Congressional district IDs. |
audienceSizeinteger | Audience size. |
Response properties
audienceId integer | Audience ID. |
message string | Success message. |
- JSON
{
"audienceName": "Test Lookalike Audience",
"sourceAudienceIds": "12345,67890",
"audienceSize": 5,
"countryIds": "1",
"stateIds": "10,20,30"
}
{
"success": true,
"data": {
"audienceId": 1140586,
"message": "Test Lookalike Audience audience created successfully"
}
}
Campaign audiences
Campaign audience details
GETGet Campaign audience details by ID.
| Path parameter | |
|---|---|
audienceId integer | Campaign audience ID. |
Response properties
audienceId integer | Audience ID. | |||||||
audienceName string | Audience name. | |||||||
audienceStatusId integer | Audience status ID. | |||||||
cpm number | Cost per thousand impressions. | |||||||
uniques integer | Count of unique audiences reached. | |||||||
createdAt integer | Unix epoch creation date (milliseconds). | |||||||
campaignDetails object | Campaign details. | |||||||
| ||||||||
impressions array of integers | Impressions array. |
clicksarray of integers | Clicks array. |
conversionsarray of integers | Conversions array. |
startDate integer
endDate integer
- JSON
{
"success": true,
"data": {
"audienceId": 119431,
"audienceName": "asdf",
"audienceStatusId": 1,
"cpm": 2.5,
"uniques": 56590,
"createdAt": 1740876000000,
"campaignDetails": {
"clicks": [],
"conversions": [],
"impressions": [
56590
]
},
"startDate": 1740816000000,
"endDate": 1753167600000
}
}
Create Campaign audience
POSTCreate a Campaign audience.
| Request schema | ||||||||
|---|---|---|---|---|---|---|---|---|
audienceName string | Audience name. | |||||||
startDate integer | Unix epoch start date, in milliseconds. | |||||||
endDate integer | Unix epoch end date, in milliseconds. | |||||||
campaignDetails object | Campaign details. | |||||||
| ||||||||
impressions array of integers | Impressions. |
clicksarray of integers | Clicks. |
conversionsarray of integers | Conversions. |
dataPartnerId integer
audienceSubtypeId integer
Response properties
audienceId integer | Audience ID. |
message string | Success message. |
- JSON
{
"audienceName": "Sample audience name",
"startDate": 1638316800000,
"endDate": 1640085173000,
"campaignDetails": {
"impressions": [
1,
2
],
"clicks": [
3
],
"conversions": [
4
]
},
"dataPartnerId": 2,
"audienceSubtypeId": 4
}
{
"success": true,
"data": {
"audienceId": 1140606,
"message": "Test campaign audience audience created successfully"
}
}
Get Campaign audience history
POSTGet the audience history details for specified campaigns.
| Request schema | |
|---|---|
campaignId array of integers | Campaign IDs. |
subTypeIds array of integers | Audience subtype IDs. |
historicalData boolean | Fetches historical data (true) or current data (false). |
typeIds array of integers | Audience type IDs. |
noOfEntries integer | Number of entries per page. |
pageNo integer | Page number of retrieved data. |
Response properties
totalRecords integer | Total records count. | |||||||||||
filteredRecords integer | Filtered records count. | |||||||||||
audienceDetails array of objects | Audience details array. | |||||||||||
| ||||||||||||
id integer | Audience ID. |
campaignIds array of integers | Campaign IDs. |
name string | Audience name. |
audienceSubTypeId integer | Audience subtype ID (may be null). |
typeId integer | Audience type ID. |
{
"campaignId": [
540050
],
"subTypeIds": [],
"historicalData": false,
"typeIds": [],
"noOfEntries": 2,
"pageNo": 1
}
{
"success": true,
"data": {
"totalRecords": 12,
"filteredRecords": 12,
"audienceDetails": [
{
"id": 1023234,
"campaignIds": [
540050
],
"name": "MA-1 voter id",
"audienceSubTypeId": null,
"typeId": 1
},
{
"id": 1054138,
"campaignIds": [
540050
],
"name": "MA With 90 K Records And 8 Columns NYSD 3 Digital Universe Csv",
"audienceSubTypeId": null,
"typeId": 1
}
]
}
}
Pre-bid audiences
Pre-bid audience details
GETGet Pre-bid audience details by ID.
| Path parameter | |
|---|---|
audienceId string | Pre-bid audience ID. |
Response properties
audienceId integer | Audience ID. | |||||||||||||||||||||
audienceName string | Audience name. | |||||||||||||||||||||
owId integer | Organization Workspace ID. | |||||||||||||||||||||
createdByUowId integer | Created by User Organization Workspace ID. | |||||||||||||||||||||
cpm integer | Cost per mille. | |||||||||||||||||||||
createdAt integer | Unix epoch creation date, in milliseconds. | |||||||||||||||||||||
prebidSegmentDetails array of objects | Pre-bid segment details. | |||||||||||||||||||||
| ||||||||||||||||||||||
prebidSegmentId integer | Pre-bid audience segment ID. |
prebidSegmentName string | Pre-bid audience segment name. |
prebidRootId integer | Pre-bid audience segment root ID. |
description string | Description. |
parentPathKey string | Key representing parent path or category that an audience segment belongs to. |
cpm integer | Cost per mille. |
creativeTypeIds array of integers | Creative type ID list. |
leaf boolean | Indicates that an audience segment is a leaf node in a hierarchical audience structure: true. |
providerId integer | Provider ID. |
providerLogoUrl string | Provider logo URL. |
- JSON
{
"success": true,
"data": {
"audienceId": 1139208,
"audienceName": "test",
"cpm": 0.325,
"owId": 201427,
"createdByUowId": 9480,
"createdAt": 1750866960,
"prebidSegmentDetails": [
{
"prebidSegmentId": 247,
"prebidSegmentName": "Impressions with Insufficient IAB Viewability Data",
"description": "Impressions where DV does not have sufficient viewability performance statistics for the URL or URL can not be targeted (e.g., blinded).",
"parentPathKey": "Viewability > Video",
"prebidRootId": 159,
"cpm": 0.2,
"creativeTypeIds": [
14,
15
],
"leaf": false,
"providerId": 2,
"providerLogoUrl": "https://d2v0lj9tfbnmhu.cloudfront.net/assets/dist/audience/prebid-providers/DV-logo.svg"
},
{
"prebidSegmentId": 248,
"prebidSegmentName": "80% or Higher Viewability Rate",
"description": "For video, this is a rate-based segment used to target the URLs that have historically achieved a 80% or higher viewability rate based on the IAB standard.",
"parentPathKey": "Viewability > Video",
"prebidRootId": 159,
"cpm": 0.2,
"creativeTypeIds": [
14,
15
],
"leaf": false,
"providerId": 2,
"providerLogoUrl": "https://d2v0lj9tfbnmhu.cloudfront.net/assets/dist/audience/prebid-providers/DV-logo.svg"
}
]
}
}
Search Pre-bid audience details
POSTSearch Pre-bid audiences by specified parameters.
| Request schema | |
|---|---|
searchField string | Filter results by search field. |
prebidSegmentIds array of integers | Pre-bid segment ID list. |
customerOwId integer | Customer Organization Workspace ID. |
showinActiveSegments boolean | Include inactive segments in results: true to include inactive segments; false to exclude inactive segments (default: false). |
Response properties
prebidSegmentData array of objects | Pre-bid segment data. | |||||||||||||||||||
| ||||||||||||||||||||
prebidSegmentId integer | Pre-bid audience segment ID. |
prebidSegmentName string | Pre-bid audience segment name. |
description string | Description. |
parentPathKey string | Parent path key. |
cpm integer | Cost per mille. |
isLeaf boolean | Indicates that an audience segment is a leaf node in a hierarchical audience structure: true. |
creativeTypeIds array of integers | Creative type ID list. |
prebidRootId integer | Pre-bid audience root ID. |
providerId integer | Provider ID. |
- JSON
{
"prebidSegmentIds": [
156,
157
],
"searchField": "risk",
"showInActiveSegments": true
}
{
"success": true,
"data": [
{
"prebidSegmentId": 158,
"prebidSegmentName": "Avoid High and Moderate risk Alcohol content pages",
"description": "Avoid High and Moderate risk Alcohol content pages",
"parentPathKey": "Brand Safety > Display",
"cpm": 0.05,
"isLeaf": true,
"creativeTypeIds": [
11,
14
],
"prebidRootId": 1,
"providerId": 1
},
{
"prebidSegmentId": 156,
"prebidSegmentName": "Avoid High and Moderate risk Adult content pages",
"description": "Avoid High and Moderate risk Adult content pages",
"parentPathKey": "Brand Safety > Display",
"cpm": 0.05,
"isLeaf": true,
"creativeTypeIds": [
11,
14
],
"prebidRootId": 1,
"providerId": 1
}
]
}
Create Pre-bid audience
POSTPre-bid audiences are groups of Fraud , Brand Safety, and Viewability pre-bid segments that you select. You can create these audiences and seamlessly integrate them into new or existing campaigns.
The IQM platform supports one creative type per campaign. Pre-bid segments include both display and video that can be selected. Choose only one format for each Pre-bid audience to avoid incurring extra charges.
| Request schema | |
|---|---|
audienceName string | Pre-bid audience name. |
prebidSegmentIds array of integers | Pre-bid audience segment ID list. |
prebidProviderId integer | Pre-bid audience provider ID. |
Response properties
id integer | Audience ID. |
message string | Success message. |
- JSON
{
"audienceName": "string",
"prebidSegmentIds": [
0
],
"prebidProviderId": 1
}
{
"success": true,
"data": {
"audienceId": 1026631,
"message": "Test Audience audience created successfully"
}
}
Update Pre-bid audience
PATCHUpdate a Pre-bid audience.
| Path parameter | |
|---|---|
audienceId string | Pre-bid audience ID. |
| Request schema | |
|---|---|
audienceName string | Pre-bid audience name. |
prebidSegmentIds array of integers | Pre-bid audience segment ID list. |
prebidProviderId integer | Pre-bid audience provider ID. |
Response properties
audienceId integer | Audience ID. |
message string | Success message. |
- JSON
{
"audienceName": "Test 2",
"prebidSegmentIds": [
163,
164
],
"prebidProviderId": 2
}
{
"success": true,
"data": {
"audienceId": 1140257,
"message": "Changes saved successfully"
}
}
Get pre-bid provider child segment details
GETGet the pre-bid provider child segment details.
| Query parameter | |
|---|---|
showinActiveSegments boolean | Include inactive segments in results: true to include inactive segments; false to exclude inactive segments (default: false). |
Response properties
providerId integer | Provider ID. | |||||||||||||||
providerName string | Provider name. | |||||||||||||||
description string | Provider description. | |||||||||||||||
providerLogoUrl string | Provider logo URL. | |||||||||||||||
childSegments array of objects | Child segments details. | |||||||||||||||
| ||||||||||||||||
prebidSegmentId integer | Pre-bid segment ID. |
prebidSegmentName string | Pre-bid segment name. |
description string | Pre-bid segment description. |
parentPathKey string | Parent path key. |
cpm number | Cost per mille. |
creativeTypeIdList array of integers | Creative type ID list. |
leaf boolean | Indicates that an audience segment is a leaf node in a hierarchical audience structure: true. |
{
"success": true,
"data": [
{
"providerId": 1,
"providerName": "Integral Ad Science",
"description": "Segments for Brand Safety, Viewability, Fraud & IVT",
"providerLogoUrl": "http://logoUrl.com",
"childSegments": [
{
"prebidSegmentId": 2,
"prebidSegmentName": "Fraud & IVT",
"description": "prebidSegmentDescription",
"parentPathKey": "prebid > IAS",
"cpm": 0,
"creativeTypeIdList": [
11,
14
],
"leaf": false
},
{
"prebidSegmentId": 1,
"prebidSegmentName": "Brand Safety",
"description": "prebidSegmentDescription",
"parentPathKey": "prebid > IAS",
"cpm": 0,
"creativeTypeIdList": [
11,
14
],
"leaf": false
}
]
}
]
}
Get pre-bid child segment details
GETGet the pre-bid child segment details based on the parent pre-bid segment ID.
| Query parameter | |
|---|---|
prebidParentSegmentId integer | Parent pre-bid segment ID. |
Response properties
prebidSegmentId integer | Pre-bid segment ID. |
prebidSegmentName string | Pre-bid segment name. |
description string | Description. |
parentPathKey string | Parent path key. |
cpm number | Cost per mille. |
creativeTypeIds array of integers | Creative type ID list. |
leaf boolean | Indicates that an audience segment is a leaf node in a hierarchical audience structure: true. |
{
"success": true,
"data": [
{
"prebidSegmentId": 4,
"prebidSegmentName": "Display",
"description": null,
"parentPathKey": "IAS > Brand Safety",
"cpm": 0,
"creativeTypeIds": [
11,
14
],
"leaf": false
},
{
"prebidSegmentId": 5,
"prebidSegmentName": "Video",
"description": null,
"parentPathKey": "IAS > Brand Safety",
"cpm": 0,
"creativeTypeIds": [
11,
14
],
"leaf": false
}
]
}
DoubleVerify Pre-bid audience segment details
GETGet the DoubleVerify IVT Pre-bid audience segments which are free and available to an Advertiser.
Response properties
prebidSegmentId integer | Pre-bid segment ID. |
providerId integer | Provider ID. |
defaultSelected boolean | Indicates if segment is selected by default. |
- JSON
{
"success": true,
"data": [
{
"prebidSegmentId": 234,
"providerId": 2,
"defaultSelected": true
},
{
"prebidSegmentId": 235,
"providerId": 2,
"defaultSelected": true
},
{
"prebidSegmentId": 236,
"providerId": 2,
"defaultSelected": true
}
]
}
More audience details
Reach range list for Segmented audiences
GETGet a static list of the available reach range used to filter Segmented audience data.
Response properties
id integer | Reach range ID. |
name string | Reach range name. |
displayName string | Reach range display name. |
order integer | order. |
- JSON
{
"success": true,
"data": [
{
"id": 1,
"name": "Unknown",
"order": 1,
"displayName": "Unknown"
},
{
"id": 2,
"name": "<10K",
"order": 2,
"displayName": "<10K"
},
{
"id": 3,
"name": "10K to 100K",
"order": 3,
"displayName": "10K to 100K"
},
{
"id": 4,
"name": "100K to 1M",
"order": 4,
"displayName": "100K to 1M"
},
{
"id": 5,
"name": "1M+",
"order": 5,
"displayName": "1M+"
}
]
}
Price range list for Segmented audiences
GETGet a static list of available CPM ranges used to filter Segmented audience data.
Response properties
id integer | Price range ID. |
name string | Price range name. |
displayName string | Price range display name. |
order integer | Order. |
- JSON
{
"success": true,
"data": [
{
"id": 1,
"name": "$0 to $1",
"order": 1,
"displayName": "$0 to $1"
},
{
"id": 2,
"name": "$1 to $2",
"order": 2,
"displayName": "$1 to $2"
},
{
"id": 3,
"name": "$2 to $5",
"order": 3,
"displayName": "$2 to $5"
},
{
"id": 4,
"name": "$5 to $10",
"order": 4,
"displayName": "$5 to $10"
},
{
"id": 5,
"name": "$10+",
"order": 5,
"displayName": "$10+"
}
]
}
Audience type list
GETGet a static list of audience types.
Response properties
id integer | Audience type ID. |
name string | Audience type name. |
displayName string | Audience type display name. |
displayOrder integer | Order. |
- JSON
{
"success": true,
"data": [
{
"id": 1,
"name": "Matched Audience",
"order": 1,
"displayName": "Matched Audience"
},
{
"id": 2,
"name": "Segmented Audience",
"order": 2,
"displayName": "Segmented Audience"
},
{
"id": 10,
"name": "Custom Voter Audience",
"order": 3,
"displayName": "Custom Voter Audience"
},
{
"id": 3,
"name": "Retargeted Audience",
"order": 4,
"displayName": "Retargeted Audience"
},
{
"id": 4,
"name": "Geofarmed Audience",
"order": 5,
"displayName": "Geofarmed Audience"
},
{
"id": 5,
"name": "Contextual Audience",
"order": 6,
"displayName": "Contextual Audience"
},
{
"id": 6,
"name": "Lookalike Audience",
"order": 7,
"displayName": "Lookalike Audience"
},
{
"id": 7,
"name": "Campaign Audience",
"order": 8,
"displayName": "Campaign Audience"
},
{
"id": 8,
"name": "Pre-bid Audience",
"order": 9,
"displayName": "Pre-bid Audience"
}
]
}
Audience subtype list
GETGet a static list of audience subtypes.
| Query parameter | |
|---|---|
audienceTypeIds integer | Audience type IDs. |
verticalId integer | Vertical ID. |
Response properties
id integer | Audience subtype ID. |
name string | Audience subtype name. |
order integer | Order. |
displayName string | Audience subtype display name. |
{
"success": true,
"data": {
"audienceSubtypes": [
{
"id": 3,
"name": "hcp",
"order": 3,
"displayName": "HCP"
},
{
"id": 4,
"name": "npi_nurse",
"order": 4,
"displayName": "NP/PA"
},
{
"id": 5,
"name": "non_npi_nurse",
"order": 5,
"displayName": "RN"
},
{
"id": 6,
"name": "patient",
"order": 6,
"displayName": "Patient"
}
],
"totalRecords": 4,
"filteredRecords": 4
}
}
Audience status list
GETGet a static list of audience statuses. If audienceTypeIds isn't provided, audience statuses for all audience types are fetched.
| Query parameters | |
|---|---|
audienceTypeIds array of integers | Audience type IDs to fetch applicable audience statuses for. |
verticalIds array of integers | Vertical IDs to filter audience statuses by (default: all verticals). |
deletedStatusRequired boolean | Whether to include the Deleted status in the response (default: false). |
Response properties
id integer | Audience status ID. |
name string | Status name. |
order integer | Order. |
displayName string | Audience status display name. |
- JSON
{
"success": true,
"data": [
{
"id": 6,
"name": "failed",
"order": 1,
"displayName": "Failed"
},
{
"id": 2,
"name": "pending",
"order": 2,
"displayName": "Pending"
},
{
"id": 1,
"name": "processing",
"order": 3,
"displayName": "Processing"
},
{
"id": 7,
"name": "fetching data",
"order": 4,
"displayName": "Fetching Data"
},
{
"id": 8,
"name": "data fetched",
"order": 5,
"displayName": "Data Fetched"
},
{
"id": 4,
"name": "rejected",
"order": 6,
"displayName": "Rejected"
},
{
"id": 3,
"name": "ready",
"order": 7,
"displayName": "Ready"
}
]
}
Audience failure reason list
GETGet a static list of the reasons an audience can fail, with the category of each reason.
Response properties
id integer | Failure reason ID. |
reason string | Description of the failure reason. |
category string | Failure reason category, for example VALIDATION_FAILURE or PROCESSING_ERROR. |
- JSON
{
"success": true,
"data": [
{
"id": 1,
"reason": "Invalid file format",
"category": "VALIDATION_FAILURE"
},
{
"id": 2,
"reason": "Insufficient data",
"category": "PROCESSING_ERROR"
}
]
}
Frequency type list
GETGet a static list of Geofarmed audience frequency types.
Response properties
id integer | Frequency ID. |
name string | Frequency name. |
displayName string | Frequency display name. |
order integer | Order. |
- JSON
{
"success": true,
"data": [
{
"id": 1,
"name": "total",
"displayName": "Total",
"order": 1
},
{
"id": 2,
"name": "weekly",
"displayName": "Weekly",
"order": 2
},
{
"id": 3,
"name": "monthly",
"displayName": "Monthly",
"order": 3
}
]
}