Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Do we really have to call Advertisement.Load ?

Discussion in 'Unity Ads & User Acquisition' started by Bodin, Aug 22, 2021.

  1. Bodin

    Bodin

    Joined:
    Apr 19, 2017
    Posts:
    37
    from the example in Unity document, Advertisement.Load was called after Initialize process is finish.

    but from this post, They said downloading process will start after Initialize process is finish, with out the need to call Advertisement.Load
    https://forum.unity.com/threads/how-does-unity-ads-works-with-memory.500027/

    and from my test in both Test Ads & Real Ads, Video Ads is working perfectly fine with out calling Advertisement.Load

    so do we really need to call this function?
     
  2. LIU_Hanyang96

    LIU_Hanyang96

    Unity Technologies

    Joined:
    Jul 12, 2021
    Posts:
    110
    Hi Bodin,

    When you set enablePerPlacementLoad as true, you need to load and show ads each time manually. If it is set as false, it will automatically load different types of ads, and you do not need to load manually. You can directly show the ads.
     
  3. Bodin

    Bodin

    Joined:
    Apr 19, 2017
    Posts:
    37
    Thank you very much. I got it now.
     
  4. helloroy

    helloroy

    Joined:
    Jun 23, 2016
    Posts:
    42
    Hello,

    Ads 4.1.0 have the same case, ads can show with out Advertisement.Load, but 4.1.0 Initialize function do not have enablePerPlacementLoad, do we still need to call Advertisement.Load?
     
  5. xGeorgeV

    xGeorgeV

    Joined:
    Aug 8, 2013
    Posts:
    63
    I think it necessary at the first time for load, then automatic. I think so.
    But I use Load().
     
  6. KaOzz

    KaOzz

    Joined:
    Oct 15, 2012
    Posts:
    82
    Its safe to put the Load call inside the callback OnUnityAdsShowStart(string placementId) ?
     
  7. Unity_Adamski

    Unity_Adamski

    Unity Technologies

    Joined:
    Jul 20, 2020
    Posts:
    110
    @KaOzz I'd recommend calling it in the OnUnityAdsShowComplete rather than the Show Start callback.
     
  8. nbaris

    nbaris

    Joined:
    Jan 13, 2015
    Posts:
    27
    In this case, also in OnUnityAdsShowFailure?
     
  9. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    90
    Yes, could be.