{
  "title": "ad",
  "type": "object",
  "properties": {
    "unit-id": {
      "type": "string",
      "description": "广告单元 id，可在QQ 小程序管理后台的流量主模块新建"
    },
    "type": {
      "type": "string",
      "description": "广告类型",
      "defaultValue": "banner",
      "enum": [
        "banner",
        "card",
        "feeds",
        "block"
      ]
    },
    "ad-left": {
      "type": "number",
      "description": "type 为 feeds 时广告左边距（px），必须大于 0"
    },
    "ad-top": {
      "type": "number",
      "description": "type 为 feeds 时广告上边距（px），必须大于 0"
    },
    "ad-width": {
      "type": "number",
      "description": "type 为 feeds 时广告宽度（px），默认 100%，最大值为屏幕宽度，最小值为 265"
    },
    "ad-height": {
      "type": "number",
      "description": "type 为 feeds 时广告高度（px），最小 85，最大 160"
    },
    "block-size": {
      "type": "number",
      "description": "type 为 block 时请求积木广告数量（展示以实际拉取广告数量为准）",
      "defaultValue": 1
    },
    "block-orientation": {
      "type": "string",
      "description": "type 为 block 时请求积木广告排列方向",
      "defaultValue": "landscape",
      "enum": [
        "vertical",
        "landscape"
      ]
    },
    "test-banner-type": {
      "type": "string",
      "description": "开发者工具下，type 为 banner 时，指定 banner 广告展示三图文还是单图",
      "defaultValue": "three",
      "enum": [
        "one",
        "three"
      ]
    },
    "bindSize": {
      "tsType": "() => void",
      "description": "type 为 feeds 时广告实际宽高回调，event.detail = {width:296,height:150}"
    },
    "bindLoad": {
      "tsType": "() => void",
      "description": "广告加载成功的回调"
    },
    "bindError": {
      "tsType": "() => void",
      "description": "广告加载失败的回调，event.detail = {errCode: 1002}"
    }
  },
  "additionalProperties": false,
  "required": [
    "unit-id"
  ]
}