prebid / prebid-mobile-android

Prebid Mobile SDK for Android applications
Apache License 2.0
58 stars 84 forks source link

PrebidMobile.setExternalUserIds is not adding external users #802

Open kwchan22 opened 1 month ago

kwchan22 commented 1 month ago

Describe the bug PrebidMobile.setExternalUserIds(...) does not set the userIds in the Prebid bid request user section. However if using TargetingParams.storeExternalUserId then I see the userId in the bid request.

To Reproduce Steps to reproduce the behavior:

  1. Git clone Prebid Android SDK Project
  2. Go to PrebidDemoKotlin -> CustomApplication.kt
  3. Add in onCreate() this code: PrebidMobile.setExternalUserIds(mutableListOf(ExternalUserId("PrebidMobile", "prebidMobile-123", null, null)))
  4. Run app with App inspection
  5. See under the network inspector -> "/auctions" endpoint, I do not see the user added.

Expected behavior All the users set with PrebidMobile.setExternalUserIds should be added to the Prebid bid request user section.

Screenshots With PrebidMobile.setExternalUserIds, bid request user is empty

Screenshot 2024-10-03 at 2 31 12 PM

With TargetingParams.storeExternalUserId, user has the externalUserId

Screenshot 2024-10-03 at 2 32 24 PM

Desktop (please complete the following information): MacBook Pro Apple M3 Pro

Smartphone (please complete the following information):

Additional context None