Skip to content

Create Audience

PS: You need to use Token. For more details, please check Token

For creating audience.

Note:Publish Api is called internally in the create audience api, so the new audience cannot be published in 12 hours.

Request address

https://ss-api.mintegral.com/api/open/v1/audience

Request method

POST

Request example

json
POST /api/open/v1/audience HTTP/1.1
Host: ss-api.mintegral.com
Content-Type: application/json

{
    "ta_name": "test20240110test1",
    "area_type": 1,
    "platform": 2,
    "data_path": [
        {
            "device_type": 2,
            "data_path": "s3://mob-emr-test/audience/tmp_upload/2024/01/10/hwqyrswtztijvawi/1ceada6012b007afb4b0a29984660ad0/test.txt"
        },
        {
            "device_type": 3,
            "data_path": "s3://mob-emr-test/audience/tmp_upload/2024/01/10/hwqyrswtztijvawi/1ceada6012b007afb4b0a29984660ad0/test.txt"
        }
    ]
}

Request Parameter

PS: If default value is "—", indicating that the current field has no default value.

FieldsTypeExplanationsDefault ValueValue Examples
ta_namestringAudience name--test_audience
area_typeintData Cluster
1:Outside Mainland of China, 2:Mainland of China
--1
platformintAudience delivery platform
1:Android,2:iOS,3:mix
--1
data_patharray<json>Audience Data List--
device_typeintDevice type
1:IMEI ,2:IDFA, 3:GAID, 4:OAID, 6:IMEI_MD5, 7:IDFA_MD5, 8:GAID_MD5, 9:OAID_MD5, 10:IDFV, 11:IDFV_MD5
--6
data_pathstringFile Data Path,create from: Upload Audience File--s3://mob-emr-test/audience/tmp_upload/2024/01/10/hwqyrswtztijvawi/1ceada6012b007afb4b0a29984660ad0/test.txt

Response

FieldsTypeExplanations
codeint200 code, is success. Others, are fail.
msgstringIf success, return to “success”. If fail, return to detailed wrong info.
datajsonIf success, return to “success”. If fail, return to detailed wrong info.
ta_idintAudience ID.

Response Example

json
{
 "code": 200,
 "message": "success",
 "data": {
 "ta_id": 1148
 }
}