Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Unity Ads S2S integration - gamerId question

Discussion in 'Unity Ads & User Acquisition' started by SamTyurenkov, May 27, 2021.

  1. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    95
  2. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    Hey @SamTyurenkov, looks like the {gamer_id} token is missing from our documentation. You can use this to have our anonymized gamer id sent with your tracking URLs. Sorry for the confusion! I'll contact the documentation team to get it added.
     
  3. QuadrantGames

    QuadrantGames

    Joined:
    Jan 10, 2016
    Posts:
    20
    The documentation still does not include how to retrieve the gamerId when the ifa is 000000000. If we want to implement custom install postback, where do we retrieve the gamerId that Unity ads fills in on the tracking links?
     
  4. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    95
    Your postback url in settings will be something like that
    https://yourtracking.url?ifa={ifa}&game_id={game_id}&source_app_id={source_app_id}&cpi={cpi}&gamer_id={gamer_id}
     
  5. QuadrantGames

    QuadrantGames

    Joined:
    Jan 10, 2016
    Posts:
    20
    for impression and click, which is initiated from unity ads. When the user installs the game, I need to manually attribute the user from a previous impression/click, so I would need to get gamer_id manually from the app so I could compare it to the gamer_id I previously received. I am beginning to think it isn't intended to be able to directly attribute a user if they have this LAT enabled, but the gaps in the documentation don't really spell this out very well.
     
  6. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    95
    Good point, probably they send the one from Advertisement package:
    https://docs.unity.com/ads/en-us/manual/UnityAPI#gamerSid

    I think I didnt fully configure that one as well, and you need Advertisement package to access it, seems its not available in Unity core.
     
  7. QuadrantGames

    QuadrantGames

    Joined:
    Jan 10, 2016
    Posts:
    20
    It looks like the source game can provide set a gamerSid in the ShowOptions, but that doesn't help on the install end, I wouldn't know what was used by the app showing the ads. Doesn't seem to be a way to retrieve any default id for a user either.