Как показывать рекламу в фейсбуке Instant Game? - PullRequest
0 голосов
/ 11 мая 2018

Это мой код:

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})
})

Я не вижу ничего в мессенджере, и мое приложение все еще находится в тестовой версии.

о, я понял, я сделалошибка здравого смысла.

...