简要描述:

  • 获取广告信息

请求URL:

GET/plugin.advert-market.frontend.advert.getAdvertInfo

参数:

参数名 是否必须 类型 说明
advert_id int 广告id

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"advert": {
			"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": "图片",
			"districts": [{
				"id": 20,
				"advert_id": 1,
				"area_id": 110117,
				"created_at": null,
				"updated_at": null,
				"deleted_at": null,
				"address": {
					"id": 110117,
					"areaname": "平谷区",
					"parentid": 110100,
					"level": 3
				}
			}, {
				"id": 21,
				"advert_id": 1,
				"area_id": 110228,
				"created_at": null,
				"updated_at": null,
				"deleted_at": null,
				"address": {
					"id": 110228,
					"areaname": "密云县",
					"parentid": 110100,
					"level": 3
				}
			}, {
				"id": 22,
				"advert_id": 1,
				"area_id": 110229,
				"created_at": null,
				"updated_at": null,
				"deleted_at": null,
				"address": {
					"id": 110229,
					"areaname": "延庆县",
					"parentid": 110100,
					"level": 3
				}
			}],
			"store_category": [{
				"id": 9,
				"advert_id": 1,
				"category_id": 15,
				"created_at": null,
				"updated_at": null,
				"deleted_at": null,
				"has_one_store_category": {
					"id": 15,
					"uniacid": 10,
					"sort": 0,
					"name": "分类1",
					"thumb": "images\/10\/2018\/12\/aA1155eye14UZ138FN1ZV1v1z33V3W.jpg",
					"is_open": 1,
					"created_at": "2018-12-29 16:43:53",
					"updated_at": "2018-12-29 16:43:53",
					"deleted_at": null,
					"open_name": "开启"
				}
			}]
		}
	}
}

返回参数说明:

参数名 类型 说明
id int 广告id
advert_name str 广告名称
advert_type int 广告类型,1图片,2视频
advert_code arr 广告类型,1待机,2支付
advert_img str 素材
advert_budget float 广告预算
await_amount float 待机广告单价
payment_amount float 支付广告单价
status int 投放状态
store_category arr 投放门店分类
store_category->category_id int 投放门店分类id
store_category>has_one_store_category->name str 投放门店分类名称
districts arr 投放区域
districts->area_id int 投放区域id
districts->address->areaname str 投放区域名称