Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Advertisement.IsReady() returns false, but GetPlacementState returns "Ready"????

Discussion in 'Unity Ads & User Acquisition' started by StarArcher, Feb 5, 2021.

  1. StarArcher

    StarArcher

    Joined:
    May 23, 2020
    Posts:
    12
    I don't understand the relationship between IsReady and GetPlacementState.

    This works fine in the Unity Editor (that is, IsReady() returns true and shows me the test ad) but on Android I'm getting this result:
    • IsReady() returns false
    • immediately checking GetPlacementState()... returns "Ready".

    Code (CSharp):
    1. if (Advertisement.IsReady()) {
    2.     Advertisement.Show();
    3. } else {
    4.     // actually, this outputs to an onscreen field, but it's equivalent to Debug.Log
    5.     Debug.Log("ad fail ["+placementId+"]: "+Advertisement.GetPlacementState(placementId));
    6. }
    The result is
    ad fail [my_interstitial]: Ready

    Is there a more/better way to find out WHY IsReady() is returning false?
     
  2. StarArcher

    StarArcher

    Joined:
    May 23, 2020
    Posts:
    12