To create a segment in a segment group, use the POST method

https://dmpapi.admixer.net/AudienceAPI/Segment

In the GET request, use the following parameters:

Parameter Description Comment
name Segment name unique within a segment group Maximum number of characters – 256
groupId ID of a segment group in which you create the segment
idType Type of user IDs in the segment

For example,

https://dmpapi.admixer.net/AudienceAPI/Segment?name=NewSegment&groupId=1234&idType=6

where

NewSegment name of a new segment
1234 ID of a segment group in which you create the segment
6 type of user IDs in the segment (PubID here)

Types of User IDs

Type Value
Cookie 0
IDFA 1
PubID 6
AAID 7
ClientId 8
Email 9
Phone 10
EmailMD5 12
EmailSHA256 13
PhoneMD5 14
PhoneSHA256 15
MultiID 11

In response, you get JSON with a newly created segment’s ID and a message about successful completion.

Expand an example of a JSON response with a newly created segment’s ID
{
    "data": 3546,
    "message": "Segment was created successfully"
}

If you want a list of all current segments, use the POST method

https://dmpapi.admixer.net/AudienceAPI/Segments

Expand an example of the JSON response with all current segments
{
"groupId": 1234,
"groupName": "MySegmentGroup",
"groupCpmPrice": 5.00,
"id": 5678,
"name": "NewSegment",
"idType": 6,
"userIds": 5
}

where

groupId segment group ID
groupName segment group name
groupCpmPrice its CPM in provider currency
id segment ID
name segment name
idType type of ID in the segment
userIds number of unique user IDs in the segment

To get a list of segments from one or several segment groups, enter the group or groups IDs as an array in the GET request. For example,

https://dmpapi.admixer.net/AudienceAPI/Segments?groupIds=[‘1234’] (from one segment group)

https://dmpapi.admixer.net/AudienceAPI/Segments?groupIds=[‘1234’, ‘1235’] (from several segment groups)

Expand an example of a JSON response with the list of segments from one or several segment groups
[ {
            "groupId": 1234,
            "groupName": "Look-alike",
            "groupCpmPrice": 0.0,
            "id": 311,
            "name": "Segment 1",
            "idType": 0,
            "userIds": 56
    },
    {
            "groupId": 1235,
            "groupName": "Created segments",
            "groupCpmPrice": 0.02000000,
            "id": 297,
            "name": "Segment 2",
            "idType": 0,
            "userIds": 321
    },
    {
            "groupId": 1235,
            "groupName": "Created segments",
            "groupCpmPrice": 0.02000000,
            "id": 303,
            "name": "Segment 3",
            "idType": 0,
            "userIds": 122
    } ]
Updated on April 28, 2023