1

这是我的代码:

FBInstant.getInterstitialAdAsync('111_222')
    .then(function (interstitial){
        if(typeof interstitial !== 'undefined'){
            if (typeof interstitial.getPlacementID() === 'undefined'){
                this.setState({adId: 'can not get  placement ID'})
            }
            preloadedInterstitial = interstitial;
            return preloadedInterstitial.loadAsync()
        }else{
            return Promise.reject(new Error('interstitial is undefined'))
        }
    })
    .then(function(){
        this.setState({ad: 'adv loaded'})
    })
    .catch(function(error){
        this.setState({adId: error.code + error.message})
})

我在 Messenger 中看不到任何内容,而且我的应用程序仍处于测试版本。

哦,我明白了,我犯了一个常识性错误。

4

0 回答 0