[英]How to test RewardVideo in Facebook Instant Game?
這是我的代碼。
var ad;
FBInstant.getRewardedVideoAsync('1234_1234')
.then(function(rewardedVideo) {
if(typeof rewardedVideo !== 'undefined'){
if(typeof rewardedVideo.getPlacementID() === 'undefined'){
console.log('can not get placement ID')
}
ad = rewardedVideo;
return rewardedVideo.loadAsync()
} else {
return Promise.reject(new Error('rewardedVideo is undefined'))
}
})
.then(function(){ //adv loaded
console.log('adv loaded')
})
.catch(function(error){
console.log(error.code, error.message);
});
我總是收到{code:“ ADS_NO_FILL”,消息:'No fill'}。 該文件說:“ ADS_NO_FILL字符串,我們無法向當前用戶投放廣告。如果用戶選擇退出其設備上的針對用戶興趣的廣告,或者我們沒有針對該用戶展示的廣告資源,則可能會發生這種情況”。
但是我的應用仍在開發中。
如果您經常收到此錯誤,則很有可能是您的受眾網絡設置中存在某種錯誤的配置。
檢查以確保:
這些天,我和您有同樣的問題,但是找到了解決方案!
您的應用程序處於“開發中”這一事實並不意味着您看不到實時廣告。 您在Facebook Instant Game中使用了正確的代碼,我想您已經使用獲利管理器獲得了真正的INTERSTITIAL_PLACEMENT_ID
尤其是針對您的游戲。
into besides the error. 收到ADS_NO_FILL
錯誤后,除該錯誤外,Monetization Manager中的狀態將從更改為 。 要查看實時廣告,您需要指定您的付款信息(您的個人和銀行數據,尤其是收入帳戶的IBAN編號)。 然后,將投放實時廣告(無論您的游戲是否未經Facebook批准)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.