需要携带 Token,详情看Token
通过此接口可对广告单元做启用/暂停操作。
https://ss-api.mintegral.com/api/open/v1/offer/status
PUT
PUT /api/open/v1/offer/status
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
{"offer_id": 123, "status": "RUNNING"}
字段 | 类型 | 说明 | 默认值 | 例子 |
---|---|---|---|---|
offer_id | int | 广告单元 ID | — | 123 |
status | string | 状态。支持枚举值:"RUNNING" 、"STOPPED" |
— | "RUNNING" |
字段 | 类型 | 说明 |
---|---|---|
code | int | 200 表示成功 其他表示失败 |
msg | string | 成功,返回"success",失败返回相应的错误信息 |
data | json | 如果失败,返回具体的错误信息 |
{
"msg": "success",
"code": 200,
"data": {}
}