Search Unity

Unity video Ad isReady()==true but failed when calling show() [Native Android]

Discussion in 'Unity Ads & User Acquisition' started by hexdump, Sep 7, 2017.

  1. hexdump

    hexdump

    Joined:
    Dec 29, 2008
    Posts:
    443
    Hi,

    When I receive an Ad from Unity Ads (onUnityAdsReady is called). and I try to show() the video. I always get the error handled called with string: "Unity Ads show failed: Placement "XXXXXXX" is not ready". The weird thing is that if I call UnityAds.isReady() it returns true O_O. Is this a bug?

    I can see this in the logs:

    09-07 01:20:08.099 I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads cache: Keeping 4 cached files (761.2568359375kB)
    09-07 01:20:08.190 D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
    09-07 01:20:08.442 I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Requesting configuration from https://adserver.unityads.unity3d.com/games/1535085/configuration?bundleId=XXXXXXXXXXXXXXXXXXXXXXXXXXXX&encrypted=false&rooted=false&platform=android&sdkVersion=2101&osVersion=5.1.1&deviceModel=Nexus 4&language=en_US&test=true&gamerId=50507b163822f20000000001&deviceMake=LGE&advertisingTrackingId=bd57b078-c5bf-4bef-9d24-91b5dd066d46&limitAdTracking=false
    09-07 01:20:09.418 W/art: Suspending all threads took: 5.005ms
    09-07 01:20:09.502 I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Received configuration with 1 placements for gamer 50507b163822f20000000001 (A/B group 1)
    09-07 01:20:09.835 I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Requesting ad plan from https://auction.unityads.unity3d.com/v4/games/1535085/requests?advertisingTrackingId=bd57b078-c5bf-4bef-9d24-91b5dd066d46&limitAdTracking=false&deviceMake=LGE&deviceModel=Nexus 4&platform=android&screenDensity=320&sdkVersion=2101&screenSize=268435538&stores=google&apiLevel=22&test=true&screenWidth=768&screenHeight=1184&connectionType=wifi&networkType=10&gamerId=50507b163822f20000000001
    09-07 01:20:11.573 I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement video status set to READY

    I'm using native android, not Unity.

    What is happening?
     
  2. mikaisomaa

    mikaisomaa

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    365
    Hi,

    Can you provide your code responsible for handling Unity Ads?

    You can also send an e-mail to our support at unityads-support@unity3d.com with further details - our engineers will investigate it from there.
     
  3. hexdump

    hexdump

    Joined:
    Dec 29, 2008
    Posts:
    443
    Well it seems I found the problem.

    I was calling show(activity, placement). I guess this will fire up another action to get a new ad because of the auto caching unityads uses. So, this is why I receive an ad ready but when trying to show I get that it is not ready.

    Confirm this please...

    Cheers.