设置用户 ID set-user-ids

用户 ID 是应用程序为用户定义的唯一自定义访客标识符。

在 ADBMobile SDK 上设置并获取唯一的用户 ID,如下所示:

  • 已设置:

    • Roku:

      code language-none
      ADBMobile().setUserIdentifer("app-generated-unique-id")
      
    • Chromecast:

      code language-none
      ADBMobile().config.setUserIdentifer("app-generated-unique-id");
      
  • 获取:

    • Roku:

      code language-none
      vid = ADBMobile().userIdentifer()
      
    • Chromecast:

      code language-none
      vid = ADBMobile().config.getUserIdentifer();
      
recommendation-more-help
c8eee520-cef5-4f8c-a38a-d4952cfae4eb