Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

UnityAds doesn' t work anymore

Discussion in 'Unity Ads' started by FabrizioSpadaro, Sep 25, 2014.

  1. FabrizioSpadaro

    FabrizioSpadaro

    Joined:
    Jul 10, 2012
    Posts:
    245
    Hi have a problem...

    I have used UnityAds in some of my game and all worked fine, since i start using the new UnityAds plugin on the assets store(the previus plugin doesn't still work)..
    -I use the code from the docu page :
    http://unityads.unity3d.com/help/Do...shers/Integration-Guide-for-Unity-Asset-Store
    -If i try it on the pc it works great
    -On my android tablet it doesn' t

    What the hell is wrong with this...
    :mad::mad::mad::mad::mad::mad::mad::mad::mad::mad::mad:
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,288
    We don't know what's wrong. What error messages do you get? What does "is doesn't" mean? Do you get no ads at all?
     
  3. FabrizioSpadaro

    FabrizioSpadaro

    Joined:
    Jul 10, 2012
    Posts:
    245
    Hi, i try to display the video ads using the test mode ( Advertisement.Initialize("myid",true); )
    On the pc it work i see the blue picture that say "here would be your ad unit"
    But on mobile it doesn't display this picture.
     
  4. FabrizioSpadaro

    FabrizioSpadaro

    Joined:
    Jul 10, 2012
    Posts:
    245
  5. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,288
    Please don't bump your thread. I asked you to provide more information and you did. That does not mean you get an instant response. If you need commercial levels of support, we provided that as a product you can purchase.

    So, do you get any error messages reported? What does Xcode tell you? What about dab logcat? I'd expect those will give some error message from the Ads plugin which can help resolve this problem. The example script at:

    https://unityads.unity3d.com/help/D...shers/Integration-Guide-for-Unity-Asset-Store

    is known to work on mobile devices. Does this work for you?
     
  6. FabrizioSpadaro

    FabrizioSpadaro

    Joined:
    Jul 10, 2012
    Posts:
    245
  7. HeikkiTunkelo

    HeikkiTunkelo

    Unity Technologies

    Joined:
    May 13, 2014
    Posts:
    104
    Hi Belva,

    Send a PM to me or to Nikkolai (unity-nikkolai) with your GameId and we'll check what is going on.

    Cheers,
    Heikki
     
    unity-nikkolai likes this.
  8. HeikkiTunkelo

    HeikkiTunkelo

    Unity Technologies

    Joined:
    May 13, 2014
    Posts:
    104
    For those encountering similar problems on Android:

    The Unity => Android native bridge for android uses an object named "UnityAds" in the implementation. If you have a GameObject in one of your scenes that is called "UnityAds", then the communication will fail (On android device).

    In the next release we will change the communication bridge to be called something that you will not accidentally use in your scenes.

    Heikki
     
  9. Salazar

    Salazar

    Joined:
    Sep 2, 2013
    Posts:
    236
    Hello , I think I have the same issue with belva1234.
    On Unity Editor no problem.
    On Android device; no rewarded test video ads showing. Should I try with no-test.

    Thank you Unity.
     
  10. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    25,594


     
  11. Salazar

    Salazar

    Joined:
    Sep 2, 2013
    Posts:
    236
    Sorry I didnt mention that I dont have such a object named "UnityAds"

    EDİT: And I know ;

    Unity Ads isSupported on device =true
    Unity Ads isInitialized on device =true
    Unity Ads isReady on device =true

    Because there is no other way to play button appears in game.

    Some how after clicking play button , unity editor shows a test ad but on android device it shows nothing and nothing happens.

    Code (CSharp):
    1. if(canplayvideo)
    2.         {
    3.         Advertisement.Show(@"rewardedVideoZone", new ShowOptions {
    4.                 pause = false,
    5.             // Handle the various result callback states.
    6.             resultCallback = result => {
    7.                 switch (result)
    8.                 {
    9.                 case ShowResult.Finished:
    10.                         PlayerPrefs.SetInt("VideoCommercialPlayed", 1);
    11.                         PlayerPrefs.SetInt("StartingScore", PlayerPrefs.GetInt("ScoreInt"));
    12.  
    13.                         Debug.Log("is VideoCommercialPlayed");
    14.                         Application.LoadLevel(2);
    15.                     break;
    16.                 case ShowResult.Skipped:
    17.                         PlayerPrefs.SetInt("StartingScore",0);
    18.                         Application.LoadLevel(2);
    19.                     break;
    20.                 case ShowResult.Failed:
    21.                         PlayerPrefs.SetInt("StartingScore",0);
    22.                         Application.LoadLevel(2);
    23.                     break;
    24.                 }
    25.             }
    26.         });
    27.     }
     
    Last edited: Oct 13, 2014
  12. Salazar

    Salazar

    Joined:
    Sep 2, 2013
    Posts:
    236
    I now solved the issue,

    I was using "Rewarded Video Placement (rewardedVideoZone) "
    now I change it to default one "Video Placement(defaultVideoAndPictureZone)." and make this one default.
     
  13. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    541
    After doing some additional research, it turns out this issue of not being able to show ads for the rewardedVideoZone was due to a server-side inconsistency. This bug arose with the recent renaming of the incentivisedVideoZone to rewardedVideoZone, affecting only new game profiles created within the last week or so. We've corrected the issue with existing game profiles and will be pushing a fix ASAP for any additional new game profiles.

    Thanks for reporting the issue!
     
    Salazar likes this.
  14. Erzonis

    Erzonis

    Joined:
    Dec 17, 2014
    Posts:
    1
    i have same problem adds doesn't work on android mobile device. and there is no UnityAds gameObject and no video placement. just basic code that

    if (Advertisement.isReady ()) {
    Advertisement.Show();
    }

    works on unity editor,but android mobile waiting
     
  15. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    541
  16. hybridAli

    hybridAli

    Joined:
    Jan 4, 2016
    Posts:
    8
    Hello, I am having issue with unity ads on some android devices (one of tested is Samsung Tab s2) which shows no ads at all. Ads are working perfect on other mostly android phones and for iOS too.
    There is no error from logs even. Please ask if you need more info on this.
     
  17. FritzH

    FritzH

    Developer Relations Unity Technologies

    Joined:
    Aug 18, 2015
    Posts:
    45
    What messages do you see from the Unity SDK in your logs?
     
  18. UDN_a275fd43-7e28-486e-b79f-1f84a9c2e6c1

    UDN_a275fd43-7e28-486e-b79f-1f84a9c2e6c1

    Joined:
    Dec 6, 2016
    Posts:
    1
    Hello, i have the same problem, no error messages. Ads just not showed. When I start in Unity, everything is OK but on Android devices ads not showing.