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

Question IronSource.Agent.setUserId() not working for s2s callback

Discussion in 'LevelPlay' started by jjdomain, Sep 6, 2023.

  1. jjdomain

    jjdomain

    Joined:
    Sep 11, 2015
    Posts:
    86
    Hello,

    I'm trying to implement s2s callback.
    The documentation said to IronSource.Agent.setUserId() before the init request.
    However, my users will have an userid AFTER they login, which is after initialization is called.
    Right now I'm using IronSource.Agent.setUserId(myuserid) right after users login within my app.
    However, s2s callback received on my server shows userid=0.

    How to make sure IronSource.Agent.setUserId() sends unique userid after login?

    Thanks in advance.
     
  2. jjdomain

    jjdomain

    Joined:
    Sep 11, 2015
    Posts:
    86
  3. jjdomain

    jjdomain

    Joined:
    Sep 11, 2015
    Posts:
    86
    I'm attempting to pass the device ID using custom parameters. When I tried it mediation stops working (no ads loaded). Any help is appreciated.
    Here's my code before initialization:

    Dictionary<string, string> rvParams = new Dictionary<string, string>();
    rvParams.Add("device", SystemInfo.deviceUniqueIdentifier);
    IronSource.Agent.clearRewardedVideoServerParams();
    IronSource.Agent.setRewardedVideoServerParams(rvParams);
     
  4. cnguyen_unitylevelplay

    cnguyen_unitylevelplay

    Unity Technologies

    Joined:
    Mar 23, 2023
    Posts:
    69