Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Unity Ads resultCallback and isReady missing on 4.01

Discussion in 'Unity Ads & User Acquisition' started by Xagu, Aug 23, 2022.

  1. Xagu

    Xagu

    Joined:
    Oct 4, 2016
    Posts:
    18
    Hi!

    We are being asked by Google Play to upgrade UnityAds plugin to 4.0.1 at least. Once done, resultCallback and isReady seem to be missing. Has been resultCallback in ShowOptions replaced by any other callback?

    Thanks in advance
     
  2. PeachyPixels

    PeachyPixels

    Joined:
    Feb 17, 2018
    Posts:
    716
    Xagu likes this.
  3. Xagu

    Xagu

    Joined:
    Oct 4, 2016
    Posts:
    18
    Thanks for your reply.

    It seems that we will have to disable Unity Ads for the moment... Too many changes to make in a script already pretty messed up and also we could mess up the functionality of the other ad sdks...

    Thanks!
     
    PeachyPixels likes this.
  4. TobyKaos

    TobyKaos

    Joined:
    Mar 4, 2015
    Posts:
    214
    In a nutshell. With v4.x you must call LoadAd(adunit) before call ShowAd(adUnit). And you must implement listener to get OnLoaded OnShow callback ...
    Take a look at the doc, it is a day of work to migrate from 3.X
     
    Xagu likes this.
  5. Xagu

    Xagu

    Joined:
    Oct 4, 2016
    Posts:
    18
    Thanks TobyKaos.
    Unfortunatelly we have quite strict deadlines and we can not spend on that migration at the moment, mostly because we would have to do exhaustive testing again on all the advertisement system. Will check this again when we have a bit more time.
    Thank you very much for your reply!