简要描述:

  • 绑定设备

请求URL:

GET/plugin.advert-market.api.advert.getPutAdverts

参数:

参数名 是否必须 类型 说明
store_id->id int 门店id
token str token

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"wait_adverts": [{
			"id": 1,
			"uniacid": 10,
			"am_id": 1,
			"advert_name": "广告1",
			"advert_type": 1,
			"advert_code": [1, 2],
			"advert_img": "http:\/\/yunzhong.cc:8888\/attachment\/image\/504f91c8fbc65841bf8a11369f6469a0.png",
			"advert_budget": "1000.00",
			"used_budget": null,
			"await_amount": "0.10",
			"payment_amount": "0.10",
			"status": 1,
			"created_at": "2019-12-16 23:38:50",
			"updated_at": "2019-12-16 23:38:50",
			"deleted_at": null,
			"status_name": "投放中",
			"type_name": "图片",
			"advert_img_url": "http:\/\/yunzhong.cc:8888\/attachment\/image\/504f91c8fbc65841bf8a11369f6469a0.png"
		}, {
			"id": 2,
			"uniacid": 10,
			"am_id": 2,
			"advert_name": "广告2",
			"advert_type": 1,
			"advert_code": [1],
			"advert_img": "http:\/\/yunzhong.cc:8888\/attachment\/image\/504f91c8fbc65841bf8a11369f6469a0.png",
			"advert_budget": "888.00",
			"used_budget": null,
			"await_amount": "0.20",
			"payment_amount": "0.20",
			"status": 1,
			"created_at": "2019-12-16 23:40:43",
			"updated_at": "2019-12-21 12:10:40",
			"deleted_at": null,
			"status_name": "投放中",
			"type_name": "图片",
			"advert_img_url": "http:\/\/yunzhong.cc:8888\/attachment\/image\/504f91c8fbc65841bf8a11369f6469a0.png"
		}],
		"pay_adverts": [{
			"id": 1,
			"uniacid": 10,
			"am_id": 1,
			"advert_name": "广告1",
			"advert_type": 1,
			"advert_code": [1, 2],
			"advert_img": "http:\/\/yunzhong.cc:8888\/attachment\/image\/504f91c8fbc65841bf8a11369f6469a0.png",
			"advert_budget": "1000.00",
			"used_budget": null,
			"await_amount": "0.10",
			"payment_amount": "0.10",
			"status": 1,
			"created_at": "2019-12-16 23:38:50",
			"updated_at": "2019-12-16 23:38:50",
			"deleted_at": null,
			"status_name": "投放中",
			"type_name": "图片",
			"advert_img_url": "http:\/\/yunzhong.cc:8888\/attachment\/image\/504f91c8fbc65841bf8a11369f6469a0.png"
		}]
	}
}

错误返回

{
	"result": 0,
	"msg": "参数错误",
	"data": []
}

返回参数说明:

参数名 类型 说明
wait_adverts arr 待机广告数组
pay_adverts arr 支付广告数组
id int 广告id
advert_name str 广告名称
advert_type int 1图片2视频
advert_img str 素材
advert_img_url str 素材绝对路径
await_amount float 待机广告单价
payment_amount float 支付广告单价
status int 状态 1开启0关闭
used_budget float 广告剩余预算