forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Submodule system using hooks (prebid#3924)
* prebid-core only contains src and a few node_modules * add back removed neverBundle to webpack build * add module and submodule hooks * allow vargs for submodules for flexibility * fix jsdoc type syntax * updated id5 userid submodule for submodule bundle size duplication fix * add id5 userid submodule to .submodules * fix opt out logic * spelling fix to comment * update to automatically include 'pubcommon' and 'unifiedid' (uncomment to optional submodule for prebid3.0) * additional update to automatically include 'pubcommon' and 'unifiedid' * additional update to automatically include 'pubcommon' and 'unifiedid' * merged differences from master * adpod changes to support submodules * fix --modules argument with .json to work correctly with submodules * fix to remove included and duplicated submodules
- Loading branch information
Showing
14 changed files
with
116 additions
and
78 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,9 @@ | ||
{ | ||
"userId": [ | ||
"digiTrustIdSystem", | ||
"id5IdSystem" | ||
], | ||
"adpod": [ | ||
"freeWheelAdserverVideo" | ||
] | ||
} |
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
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
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
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 |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
Example showing `cookie` storage for user id data for both submodules | ||
``` | ||
pbjs.setConfig({ | ||
usersync: { | ||
userSync: { | ||
userIds: [{ | ||
name: "unifiedId", | ||
params: { | ||
partner: "prebid", | ||
url: "http://match.adsrvr.org/track/rid?ttd_pid=prebid&fmt=json" | ||
url: "//match.adsrvr.org/track/rid?ttd_pid=prebid&fmt=json" | ||
}, | ||
storage: { | ||
type: "cookie", | ||
|
@@ -28,26 +28,6 @@ pbjs.setConfig({ | |
}); | ||
``` | ||
|
||
Example showing `cookie` storage for user id data for id5 submodule | ||
``` | ||
pbjs.setConfig({ | ||
usersync: { | ||
userIds: [{ | ||
name: "id5Id", | ||
params: { | ||
partner: 173 // @TODO: Set your real ID5 partner ID here for production, please ask for one [email protected] | ||
}, | ||
storage: { | ||
type: "cookie", | ||
name: "id5id", | ||
expires: 90 | ||
} | ||
}], | ||
syncDelay: 5000 | ||
} | ||
}); | ||
``` | ||
|
||
Example showing `localStorage` for user id data for both submodules | ||
``` | ||
pbjs.setConfig({ | ||
|
Oops, something went wrong.