/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export interface Ad { /** * 广告单元 id,可在QQ 小程序管理后台的流量主模块新建 */ "unit-id": string; /** * 广告类型 */ type?: "banner" | "card" | "feeds" | "block"; /** * type 为 feeds 时广告左边距(px),必须大于 0 */ "ad-left"?: number; /** * type 为 feeds 时广告上边距(px),必须大于 0 */ "ad-top"?: number; /** * type 为 feeds 时广告宽度(px),默认 100%,最大值为屏幕宽度,最小值为 265 */ "ad-width"?: number; /** * type 为 feeds 时广告高度(px),最小 85,最大 160 */ "ad-height"?: number; /** * type 为 block 时请求积木广告数量(展示以实际拉取广告数量为准) */ "block-size"?: number; /** * type 为 block 时请求积木广告排列方向 */ "block-orientation"?: "vertical" | "landscape"; /** * 开发者工具下,type 为 banner 时,指定 banner 广告展示三图文还是单图 */ "test-banner-type"?: "one" | "three"; /** * type 为 feeds 时广告实际宽高回调,event.detail = {width:296,height:150} */ bindSize?: () => void; /** * 广告加载成功的回调 */ bindLoad?: () => void; /** * 广告加载失败的回调,event.detail = {errCode: 1002} */ bindError?: () => void; }