添加一个广告位置

接口描述:

  • 添加一个广告位置。

请求 URL:

  • http|https://host/api/v1/ads_position/method/add.ads.position.item/

请求方式:

  • GET
  • POST

是否授权:

  • 需要授权

业务参数:

参数名 类型 是否必须 范围值 默认值 示例值 描述
code string max:16 pc_index 广告位置编码
platform integer between:-128,127 0 广告位置平台(自定义)
name string max:100 首页焦点轮播 广告位置名称
description string max:255 简单说明 广告位置描述
width integer egt:0 0 0 广告位置宽度
height integer egt:0 0 0 广告位置高度
content string min:0 image.jpg 广告位置默认内容(图片,代码等)
color string max:10 #ffffff #ffffff 广告位置背景色
type integer in:0,1 0 广告位置类型 0=图片 1=代码
display integer in:0,1,2,3 0 0 广告位置展示方式 0=多个 1=单个 2=随机多个 3=随机单个
status integer in:0,1 1 1 广告位置状态 0=禁用 1=启用

响应参数:

参数名 类型 是否返回 示例值 描述
status integer 200 状态码
message string success 消息信息
data object [] 返回对象
data 类型 是否返回 示例值 描述
code string pc_index 广告位置编码
platform integer 0 广告位置平台(自定义)
name string 首页焦点轮播 广告位置名称
description string 简单说明 广告位置描述
width integer 0 广告位置宽度
height integer 0 广告位置高度
content string image.jpg 广告位置默认内容(图片,代码等)
color string #ffffff 广告位置背景色
type integer 0 广告位置类型 0=图片 1=代码
display integer 0 广告位置展示方式 0=多个 1=单个 2=随机多个 3=随机单个
status integer 1 广告位置状态 0=禁用 1=启用
ads_position_id integer 3 广告位置编号

响应示例:

  1. {
  2. "status": 200,
  3. "message": "success",
  4. "data": {
  5. "code": "pc_index",
  6. "platform": 0,
  7. "name": "首页焦点轮播",
  8. "description": "简单说明",
  9. "width": 0,
  10. "height": 0,
  11. "content": "image.jpg",
  12. "color": "#ffffff",
  13. "type": 0,
  14. "display": 0,
  15. "status": 1,
  16. "ads_position_id": 3
  17. }
  18. }

备注: