You need to use your Mintegral token to manage your offers. For more details, please check Token.
Here's how you set targets for the audience in an offer using Mintegral's API.
https://ss-api.mintegral.com/api/open/v1/offer/audience
PUT
PUT /api/open/v1/offer/audience
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
{
"offer_id": 66785,
"audience": [4695],
"audience_exclude": [4696]
}
Fields | Type | Explanations | Default Value | ValueExamples |
---|---|---|---|---|
offer_id | int | Unique id for offer | — | 123 |
audience Optinal |
array<int> | Include target audience id [The new audience needs to take effect before it can be used] | [] | [1] |
audience_exclude Optinal |
array<int> | Exclude target audience id [The new audience needs to take effect before it can be used] | [] | [2,3] |
Fields | Type | Explanations |
---|---|---|
code | int | 200 code, is success. Others, are fail. |
msg | string | If success, return to “success”. If fail, return to detailed wrong info. |
data | json | If fail, return to detailed wrong info. |
{
"msg": "success",
"code": 200,
"data": {}
}