const customAd = wx.createCustomAd({
adUnitId: 'adUnit-xxxx',
style: {
left: 10,
top: 76,
fixed: true // fixed 只适用于小程序环境
}
})
以上代码块,返回的原生模板广告实例customAd没有style属性, 如果针对原生模板广告实例需要进行动态位置修改(style对齐方式)的话,请问需如何操作?
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小游戏 | Bug | customAd | 微信iOS客户端 | 7.0.·4 | 2.13 |
const customAd = wx.createCustomAd({
adUnitId: 'adUnit-xxxx',
style: {
left: 10,
top: 76,
fixed: true // fixed 只适用于小程序环境
}
})
以上代码块,返回的原生模板广告实例customAd没有style属性, 如果针对原生模板广告实例需要进行动态位置修改(style对齐方式)的话,请问需如何操作?
1 个回答
广告组件不支持位置移动,有多位置需求的话,可以建多个广告组件,在必要时隐藏/显示