Search Unity

GetPlacement null after app comes from pause.

Discussion in 'Unity Ads & User Acquisition' started by louiseleal, Jan 17, 2020.

  1. louiseleal

    louiseleal

    Joined:
    Aug 21, 2017
    Posts:
    3
    Hi I am having a problem with the Unity Monetization SDK, on Android Build.
    When I first open my game the ads works great.
    However, when I put the game on background and then open it again and call the function
    Code (CSharp):
    1. m_AdReady = Monetization.IsReady(m_PlacementId);
    m_AdReady comes as true, but when I call the function
    Code (CSharp):
    1. ShowAdPlacementContent ad = null;
    2. ad = Monetization.GetPlacementContent(m_PlacementId) as ShowAdPlacementContent;
    ad always equal to null.

    What I have to do to ad not comes as null , if the placement is ready ?
     
  2. sbankhead

    sbankhead

    Unity Technologies

    Joined:
    Jul 27, 2014
    Posts:
    97
    What unity version and what SDK version. Also how are you backgrounding the app? If you have a repo project or are willing to share your project with us along with some repro steps that would be best.