Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added installedModules #2892

Merged
merged 2 commits into from
Apr 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dev-docs/publisher-api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ This page has documentation for the public API methods of Prebid.js.
* [Troubleshooting your config](#setConfig-Troubleshooting-your-configuration)
* [.setBidderConfig(options)](#module_pbjs.setBidderConfig)
* [.getConfig([string])](#module_pbjs.getConfig)
* [.installedModules](#installedModules)

Functions added by optional modules

Expand Down Expand Up @@ -2935,3 +2936,19 @@ If you know the adId, then be specific, otherwise Prebid will retrieve the winni
| --- | --- | --- |
| adUnitCode | `string` | (Optional) The ad unit code |
| adId | `string` | (Optional) The id representing the ad we want to mark |

<a name="installedModules"></a>

### pbjs.installedModules

When a Prebid.js package is built, the list of modules compiled
into it are placed in the pbjs.installedModules array.

e.g. if this builds the package:
```
gulp build --modules=a,b,c
```

pbjs.installedModules would have the value ['a','b','c'].

If you happen to compile in all 400+ modules (not a good idea!), the value of pbjs.installedModules will be an empty array.