Update Target For Audience For Offers
PS: You need to use Token. For more details, please checkToken
Through this interface, you could set the target for the audience for this offer.
Request address
https://ss-api.mintegral.com/api/open/v1/offer/audience
Request method
PUT
Request example
json
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]
}
Request Parameter
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] |
Response
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. |
Response Example
json
{
"msg": "success",
"code": 200,
"data": {}
}