简要描述:
- 广告主中心 头部
请求URL:
GET/plugin.advert-market.frontend.advertMember.center
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"statistics": {
"put_count": 0,
"puting_count": 0,
"budget_total": 0,
"used_total": 0,
"surplus_total": 0
},
"logs": {
"total": 2,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [{
"id": 1,
"uniacid": 10,
"advert_id": 1,
"store_id": 37,
"am_id": 1,
"sn": "SN666",
"advert_code": 1,
"view_count": 12,
"unit_code": 1,
"advert_unit": "0.10",
"advert_amount": "1.20",
"advert_budget": "998.80",
"ratio": "100.00",
"amount": "1.20",
"created_at": "2019-12-16 23:38:50",
"updated_at": "2019-12-16 23:38:50",
"deleted_at": null,
"code_name": "待机广告",
"unit_code_name": "min",
"advert": {
"id": 1,
"advert_name": "广告1",
"status_name": "下架",
"type_name": "图片",
"advert_img_url": ""
}
}, {
"id": 2,
"uniacid": 10,
"advert_id": 1,
"store_id": 37,
"am_id": 1,
"sn": "SN666",
"advert_code": 2,
"view_count": 10,
"unit_code": 2,
"advert_unit": "0.10",
"advert_amount": "1.00",
"advert_budget": "997.80",
"ratio": "100.00",
"amount": "1.00",
"created_at": "2019-12-16 23:38:50",
"updated_at": "2019-12-16 23:38:50",
"deleted_at": null,
"code_name": "支付广告",
"unit_code_name": "次",
"advert": {
"id": 1,
"advert_name": "广告1",
"status_name": "下架",
"type_name": "图片",
"advert_img_url": ""
}
}]
}
}
}
错误返回
{
"result": 0,
"msg": "身份错误",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
statistics->put_count | float | 累计投放数量 |
statistics->puting_count | float | 投放中的数量 |
statistics->budget_total | float | 广告费累计总额 |
statistics->used_total | float | 广告费累计使用金额 |
statistics->surplus_total | float | 广告费剩余金额 |
logs->data->id | int | 记录id |
logs->data->created_at | str | 时间 |
logs->data->code_name | str | 广告类型 |
logs->data->advert_amount | float | 广告收入 |
logs->data->advert->advert_name | str | 广告名称 |
logs->data->view_count | int | 展示数量 |
logs->data->unit_code_name | int | min 或者 次 |
logs->data->advert_unit | float | 广告单价 |