Skip to content

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

FieldsTypeExplanationsDefault ValueValueExamples
offer_idintUnique id for offer123
audience Optinalarray<int>Include target audience id [The new audience needs to take effect before it can be used][][1]
audience_exclude Optinalarray<int>Exclude target audience id [The new audience needs to take effect before it can be used][][2,3]

Response

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

Response Example

json
{
  "msg": "success",
  "code": 200,
  "data": {}
}