-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation for publisher userID api (#3698)
* Update documentation for publisher userID api * Update dev-docs/modules/userId.md Fix backtick Co-authored-by: Scott Menzer <[email protected]> Co-authored-by: Scott Menzer <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
layout: api_prebidjs | ||
title: pbjs.getUserIdsAsync() | ||
description: | ||
--- | ||
|
||
{: .alert.alert-info :} | ||
To use this function, include the [UserId module](/dev-docs/modules/userId.html) in your Prebid.js build. | ||
|
||
`getUserIdsAsync()` returns a promise to the same value returned by [getUserIds()](/dev-docs/publisher-api-reference/getUserIds.html), but it's guaranteed to resolve only once the complete set of IDs is available: | ||
|
||
``` | ||
pbjs.getUserIdsAsync().then(function (userIds) { | ||
// all IDs are available here: | ||
pbjs.getUserIds() // same as the `userIds` argument | ||
pbjs.getUserIdsAsEids() | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters