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/target-audience

Request method ​

PUT

Request example ​

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

{
    "offer_id": 66785,
    "include_ta_id": [4695],
    "exclude_ta_id": [4696]
}

Request Parameter ​

FieldsTypeExplanationsDefault ValueValueExamples
offer_idintUnique id for offer—123
include_ta_id Requiredarray<int>Include target audience id [The new audience needs to take effect before it can be used][][1]
exclude_ta_id Requiredarray<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": {}
}