/* 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; /** * 广告自动刷新的间隔时间,只对 banner 型广告生效。单位为秒,参数值必须大于等于 30(该参数不传入时 banner 广告不会自动刷新) */ "ad-intervals"?: number; /** * 广告是否在屏幕中固定展示 */ fixed?: boolean; /** * 广告的类型,详见 type 的合法值 */ type?: "banner" | "video" | "large" | "lImg" | "rImg"; /** * 广告的缩放比例,100 为标准尺寸 */ scale?: number; /** * 广告加载成功的回调方法 */ bindLoad?: () => void; /** * 广告加载失败的回调方法,具体的错误信息可以参考广告错误码说明 */ bindError?: () => void; /** * 广告关闭的回调方法 */ bindClose?: () => void; }