To add users to a segment, you use the method
https://dmpapi.admixer.net/AudienceAPI/UploadUsersToSegment
In the POST request, use the following parameters:
Parameter | Description |
---|---|
id | Segment ID |
data | A .csv file for upload |
For example,
https://dmpapi.admixer.net/AudienceAPI/UploadUsersToSegment?id=1234&userIds=[‘6f70132d58ec4321845367dd94898544’,‘3a45fe3d2f56d429e84ef78dd84ae780’]
where
1234 | segment ID |
[‘6f70132d58ec4321845367dd94898544’, ‘3a45fe3d2f56d429e84ef78dd84ae780’] |
an array of user IDs |
In response, you get JSON with an ID of the segment in which you added users and a message about successful completion.
You can add users through a URL that goes to a file with a list of users. Only .csv files are supported. For example,
where
id is a segment ID,
url is a URL link to the file.
In response, you get JSON with an ID of the segment in which you added users and a message about successful completion.
To upload a file with a list of users from your computer, select the file upload option in your POST interface and then select a .csv file from your local directory.
Adding users to a segment.
To add users to a segment, use the method.
https://dmpapi.admixer.net/AudienceAPI/UploadUsersToSegment
Specify the following parameters in the POST request:
Parameter | Description |
---|---|
id | Segment ID |
data | A .csv file for download |
Example of uploading via Postman interface:
Important!
It is necessary to use the file for downloading that corresponds to the example provided in the attached file (as well as for uploading through the interface).
When uploading data in bulk, the table with user data must exactly match the format provided in the example file, otherwise the data will not be uploaded correctly. The order of columns must be preserved, but some of them may be absent. Empty values are also allowed in the rows of the corresponding columns. In case of incorrect input of data, the row will be skipped (not read and not written). When uploading the table, case sensitivity is not taken into account.
The uploaded data must follow these formats:
Only .csv tables are accepted
AdmixerId | IDFA | AAID | ClientId | Phone | PubId | EmailMD5 | PhoneMD5 | EmailSHA256 | PhoneSHA256 |
Download the sample of a filled-out row of the table with the examples of hashed data strings here.