/* 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,可在小程序管理后台的流量主模块新建 */ "unit-id": string; /** * 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新) */ "ad-intervals"?: number; /** * 广告类型,默认为展示banner,可通过设置该属性为video展示视频广告, grid为格子广告 */ "ad-type"?: string; "ad-theme"?: string; /** * 广告加载成功的回调 */ bindLoad?: () => void; /** * 广告加载失败的回调,event.detail = {errCode: 1002} */ bindError?: () => void; /** * 广告关闭的回调 */ bindClose?: () => void; }