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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Reward Ad and Interstitial Ad not showing but Banner Ad is?

Discussion in 'Unity Ads & User Acquisition' started by ICE18, Dec 12, 2021.

Thread Status:
Not open for further replies.
  1. ICE18

    ICE18

    Joined:
    Apr 9, 2021
    Posts:
    9
    So I had recently updated the unity ads package to 4.0 and I managed to get the banner Ad to load and show but for the others it wont load the ad or at least it wont do the callback method OnUnityAdsAdLoaded() nor the OnUnityAdsFailedToLoad()

    here's my implementation:
    code 1.jpg


    The debug log only shows this when trying to run an ad:
    debug log.jpg


    I'm literally out of ideas because I dont even get an error, unless the editor makes it so it doesnt fire the callback methods because of testmode? but the banner ad works fine.

    heres the banner implementation:
    upload_2021-12-11_22-24-32.png
     
  2. LIU_Hanyang96

    LIU_Hanyang96

    Unity Technologies

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

    About your question, have you checked your game id and ad unit ids from your Dashboard? Are you using the correct ad unit id? What's more, have you tested this project on an actual device instead of the Unity Editor? Some callbacks only work on real devices.
     
  3. ICE18

    ICE18

    Joined:
    Apr 9, 2021
    Posts:
    9

    yes all the id's are correct and ive tried it on a real device and it still doesnt show the ad it doesnt make any sense. I initialize and load the ad before calling the show method I dont know why its not working. the documentation doesnt help at all ive looked at it a hundred times ive tried implementing it many different ways nothing has worked.
     
  4. LIU_Hanyang96

    LIU_Hanyang96

    Unity Technologies

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

    I think you may use the wrong placement id or unit id. May you provide me with your game id? Then, I can help check it for you.
     
  5. AardAnt

    AardAnt

    Joined:
    Nov 16, 2020
    Posts:
    1
    I had this problem, too.

    It's because you have to explicitly pass 'this' as the callback listener in the Load function, in order for the OnUnityAdsAdLoaded() callback to be called.

    In your LoadAd() function, change:

    Advertisement.Load(_adUnitId);


    to:

    Advertisement.Load(_adUnitId, this);


    Also, make sure your class implements the IUnityAdsLoadListener interface, otherwise it will complain that it can't convert your class to an IUnityAdsLoadListener.
     
Thread Status:
Not open for further replies.