最后更新于4年前
这有帮助吗?
使用该接口前,请先进行
checkFlowIsOpen接口用于获取天幕后台配置的广告位是否正常开启,调用该接口时,只要传入对应广告位ID即可。
checkFlowIsOpen
当前流量主游戏没有配置任何可展示创意时,广告位默认为关闭状态,此时请通知运营在“卖量助手-投放管理”中上架广告主游戏及创意。
hbs.tmSDK.checkFlowIsOpen({ positionId: positionId }).then(({ isOpen }) => { console.log('该广告位是否开启:', isOpen); });
字段
字段类型
说明
positionId
string
广告位id
{ isOpen: true, type: 1, }
isOpen
boolean
广告位是否开启
type
广告位类型, 仅当isOpen为true时,才有值