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

Bug Unity Ads WebApp creation failed

Discussion in 'Unity Ads & User Acquisition' started by OldKing_Wang, Jan 24, 2022.

  1. OldKing_Wang

    OldKing_Wang

    Joined:
    Jan 25, 2015
    Posts:
    43
    Hi

    some of our player tell us they can't watch AD

    so i add remote log to tack what's happen.

    Code (CSharp):
    1.  
    2. public class UnityADProvider : IADProvider, IUnityAdsListener
    3. {
    4.     ...
    5.     public void Initialize()
    6.     {
    7.            
    8.          Advertisement.Initialize(gameId, false);
    9.          Advertisement.AddListener(this);
    10.     }
    11.  
    12.     public void OnUnityAdsReady(string placementId) { }
    13.     public void OnUnityAdsDidError(string message) { RemoteLogManger.Error("[UnityAD]: " + message); }
    14.     public void OnUnityAdsDidStart(string placementId) { }
    15.     ...
    16.  }
    17.  
    what i can get from the remote log is :

    [UnityAD]: Unity Ads WebApp creation failed
    Platform:Android
    DeviceModel:vivo V1936AL

    so what does this error mean , and what can i do for this log.

    ===

    it's not happen all the time. but both appear in Android & IOS device.

    My UnityAD version is : 3.7.5


    thansk
     
  2. Jason_YLin

    Jason_YLin

    Unity Technologies

    Joined:
    Sep 30, 2021
    Posts:
    15
    Hi there, the error message "Unity Ads WebApp creation failed" is a general error message for SDK initialization failed, which could caused by several reasons, and could also caused by the network or timeout issues on the client side. We would need the full logs to identify the root cause of the error.
    Would you mind opening a support ticket with a full SDK logs?

    To open a ticket, please click on the question mark (?) icon at the top of the dashboard and scroll to the File a Ticket section.
    Thanks.
     
  3. LIU_Hanyang96

    LIU_Hanyang96

    Unity Technologies

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

    I am sorry for your experience. May I know which region or areas you get these reports from? Did these players use VPN, or did they have any network issues?

    Also, please check about your Proguard configurations. We recommend you have this "-keep class com.unity3d.ads.** {}".
     
  4. OldKing_Wang

    OldKing_Wang

    Joined:
    Jan 25, 2015
    Posts:
    43
    Hi

    my app only launch in China . and 99% the player is in China mainland.

    i can't reproduce those error in any of my device(2 Android ,1 Iphone ,1 ipad). all my device can receive AD all the time.

    all the error log i got is from my ower server (with remote log)
     

    Attached Files:

  5. LIU_Hanyang96

    LIU_Hanyang96

    Unity Technologies

    Joined:
    Jul 12, 2021
    Posts:
    110
    Hi,

    From these logs, there is not enough information to find out the reason. It may be caused by a network issue from the client side. To resolve this issue, it is better to get full device logs.