# ad-custom

# 兼容性 ?

Web 微信小程序 支付宝小程序 Android iOS HarmonyOS
x 4.41 x x x x

# 属性

名称 类型 兼容性 描述
unit-id string
(string)
广告单元id,可在小程序管理后台的流量主模块新建
ad-intervals number
(number)
广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 模板 广告不会自动刷新)
@load eventhandle
(eventhandle)
广告加载成功的回调
@error eventhandle
(eventhandle)
广告加载失败的回调,event.detail = {errCode: 1002}

# 参见