Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unity Ads SDK 4.0.1 for Unity 2018.3.11

Discussion in 'Unity Ads & User Acquisition' started by Mounaim7, Jun 29, 2022.

  1. Mounaim7

    Mounaim7

    Joined:
    Apr 14, 2018
    Posts:
    7
    Hello.

    Couple days ago I got the Email that says I need to update Unity Ads SDK to 4.0.1 and it's very clear that I have to do that asap to avoid my game being removed from PlayStore, however my game was made in Unity 2018.3.11 and published in 2020, and whenever I update my game I'm always using 2018.3.11 for obvious reasons.

    When I went ahead to update the Ads SDK in Package Manager I realized that I can't go beyond 3.4.2 in 2018.3.11, so How can I update my game's Ads SDK to 4.0.1? I'm really anxious about the app removal thing or in case I want to update my game.

    Desktop Screenshot 2022.06.29 - 10.43.40.26.png
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @Mounaim7

    Yeah, currently, 2018.4 is the minimum supported version for recent releases of the Unity Ads package. There are a couple options for you here:
    1. Try upgrading to 2018.4. You should make sure your project is backed up, just in case, but because this was an LTS version, it would have minimal changes from 2018.3. (Note that LTS versions are supported for two years after release, so this version received its last patch in June 2021.)
    2. There shouldn't be much in the Ads package targeting specific versions of Unity, so it might be possible to take the package from an empty 2018.4 project and drop it into your 2018.3 project. I've quickly tested to see if this is possible and other than modifying some assembly definition references, it seemed to work in the editor. I did not test this extensively, so again, make sure your project is backed up before trying this.
     
    Mounaim7 likes this.
  3. Mounaim7

    Mounaim7

    Joined:
    Apr 14, 2018
    Posts:
    7

    Thanks for replying to me! as per your 1st advice I went ahead (after backing up my game files) and updated to 2018.4.36, so far only 1 error shows in the console, it's some kind of assembly references as shown in the picture below, can I fix this without having to remove/disable the reward button/script ?


    Edit: after quick googling, I found this in Unity docs, so basically I have to replace the old script with the new one ?

    https://docs.unity.com/ads/ImplementingRewardedAdsUnity.html

    Desktop Screenshot 2022.06.29 - 22.54.11.90.png
     
    Last edited: Jun 29, 2022
  4. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @Mounaim7

    Yeah, there was some API changes in SDK 4.0.0, so some functions were removed. The only other change was the need to call Load before calling Show. You can use the OnUnityAdsAdLoaded event to know that an ad is ready instead of checking IsReady.

    The docs page you linked to should have all the information you need.
     
  5. unitycodergp

    unitycodergp

    Joined:
    Feb 1, 2017
    Posts:
    47
    Hello,

    I'm on 2021.1.11f1 and 2021.3.7f1.

    In package manager, only 3.7.5 no 4.0.1 :(

    Any idea ?

    Thx
     
  6. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
  7. shahin2019

    shahin2019

    Joined:
    Mar 17, 2019
    Posts:
    19
    I use from unity 2019.1.9f1 , I have d some games ,my users could watch ads on android 4.4.3 or high in June2022 but now I know that my users cannot watch ads on android 4.4.4 or less but they can watch ads on android 5.1 or high so I can't receive income from users with android 4.4.4 or less what do I do ?

    If O change my unity version so I must change all script codes on my game and it take long time ,If I install unity SDK version 4.0.1 or 4.4.4 in unity 2019.1.9f1 so I receive error message ,

    1- why my users can't watch ads on android 4.4.4 now
    2- what do I do?
     
  8. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    You can update to Unity Ads SDK 4.4.1 from the package manager, which is available in Unity 2019.1.9f1

    I think you don't need to worry too much about devices lower than Android 5. Supported for Android 5 and above already covered 99.3% of the devices in the market up to date.


     
  9. shahin2019

    shahin2019

    Joined:
    Mar 17, 2019
    Posts:
    19
    Thanks,so how can I Download sdk4.4.1 because I can't see it on package manager,please send a direct link for download
    2- if I download SDK 4.4.1 so can my users watch ads if they have android 4.4.2 ?
     
  10. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    You can also install the latest version of the Unity Ads SDK under Project Settings. Please refer to the attached screenshot.
     

    Attached Files:

  11. shahin2019

    shahin2019

    Joined:
    Mar 17, 2019
    Posts:
    19
    Ve
    Ry thanks for answer but I don't see this.I attached project setting unity version 2019 so how can I update SDK? Can you send aind unity SDK 4.4.4 on Google drive or mega drive for me thanks
     

    Attached Files:

  12. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    140
    In Unity 2019.1, you should be able to see the Advertising Legacy package v4.4.1 in the package manager window.
     
  13. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    140
    Also, please check to turn off "Enable built-in Ads extension" in Services Window > Ads.