offers を管理するには、Mintegral token を使用する必要があります。詳細は Token を確認してください。
Mintegral API を使用して、offer の audience target を設定する方法は以下のとおりです。
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 | offer の一意の id | — | 123 |
audience Optinal |
array<int> | include target audience id[新しい audience は有効化後に使用できます] | [] | [1] |
audience_exclude Optinal |
array<int> | exclude target audience id[新しい audience は有効化後に使用できます] | [] | [2,3] |
| Fields | Type | Explanations |
|---|---|---|
| code | int | 200 code は成功を示します。それ以外は失敗です。 |
| msg | string | 成功時は “success” を返します。失敗時は詳細なエラー情報を返します。 |
| data | json | 失敗時は詳細なエラー情報を返します。 |
{
"msg": "success",
"code": 200,
"data": {}
}