Noel

Members
  • Content Count

    173
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Noel


  1. @abdel What @b10b means is that you should do either

    FBInstant.player.getDataAsync(['coins'])
      .then(function(data) {
         console.log('data is loaded');
         var coins = data['coins'];
         this.coinsText.setText(coins);

    });

    or

    var coins = 0;
    FBInstant.player.getDataAsync(['coins'])

      .then(function(data) {
         console.log('data is loaded');
         var coins = data['coins'];
         // You could call a function here to update the coins and do other things

    });
    And later (or in the function mentioned above) call this.coinsText.setText(coins)


  2. Hi @ThuraOo,

    1. "NO FILL" basically means that there is not ads to be served to that user (you in your example) at the moment. It could also mean that you did not configure Audience Network properly. You might want to check this: https://stackoverflow.com/questions/49398135/how-to-test-rewardvideo-in-facebook-instant-game

    2. Here is an answer we gave on the developer community (https://www.facebook.com/groups/instantgamedevelopers/permalink/942518002611026/😞

    There can be up to 3 outstanding interstitial ad instances at any time. An ad instance is outstanding if:
    1. loadAsync() resolves but showAsync() has not been called. In this case, call showAsync(), and the ad instance will be freed up after showAsync(
    ) resolves. Once it frees up, a new ad instance can be created.
    2. loadAsync() rejects. This is usually due to no-fill. In this case, reuse the same ad instance and call loadAsync() again. loadAsync() can be called up to 3 times on the same instance. If all 3 times returned no-fill, it is unlikely we will have ads for that user with in the same session anyway.