Create and edit your audience groups with Audience API.
To create an audience group, use the POST method
https://dmpapi.admixer.net/AudienceAPI/AudienceGroup
In the GET request, use the following parameters:
| Parameter | Description | Comment |
|---|---|---|
| name | Audience group name | Maximum number of characters – 256 |
| advertiserId | ID of an advertiser for which you create an audience group | |
| idType | Type of user IDs in the audience group | |
| dataLifetime (необязательный) | Period of how long the data is stored in the group (number of days) | Value from 1 to 180 |
For example,
where
| MyAudienceGroup | audience group name |
| 1234 | advertiser ID |
| 1 | type of user IDs |
| 115 | data storage period (115 days) |
Types of User IDs
| Type | Value |
|---|---|
| Cookie | 0 |
| IDFA | 1 |
| PubID | 6 |
| AAID | 7 |
| ClientId | 8 |
| 9 | |
| Phone | 10 |
| EmailMD5 | 12 |
| EmailSHA256 | 13 |
| PhoneMD5 | 14 |
| PhoneSHA256 | 15 |
In response, you get JSON with a newly created audience group’s ID and a message about successful completion. For example
{
"data": 123456,
"message": "Audience group was created successfully"
}
If you want a list of all active audience groups, use the GET method
https://dmpapi.admixer.net/AudienceAPI/AudienceGroups
In response, you get
{
"id": 100123,
"name": "Group1",
"advertiserId": 10123,
"idType": 0,
"userIds": 245
}, {
"id": 100177,
"name": "Group2",
"advertiserId": 10124,
"idType": 0,
"userIds": 365
}
where
| id | audience group ID |
| name | audience group name |
| advertiserId | ID of the advertiser to which the group belongs |
| idType | type of IDs in the group |
| userIds | number of unique user IDs in the group |
To get a list of audience groups that belong to a particular advertiser, enter the advertiser’s ID in the request. For example
https://dmpapi.admixer.net/AudienceAPI/AudienceGroups?advertiserId=12345
where 12345 is an advertiser ID.
In response, you get
[ {
"id": 321,
"name": "Audience Group 1",
"advertiserId": 12345,
"idType": 0,
"userIds": 23412
},
{
"id": 322,
"name": "Audience Group 2",
"advertiserId": 12345,
"idType": 0,
"userIds": 52622
},
{
"id": 323,
"name": "Audience Group 3",
"advertiserId": 12345,
"idType": 0,
"userIds": 28066
} ]
Last modified:
4 February 2022


