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

Pulling fresh changes from prebid/Prebid.js #7

Merged
merged 198 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
ab9a8d2
Lemma:set mediaType key value (#6006)
lm-abhijit Feb 8, 2021
19b4885
added support for addtlConsent (#6005)
ix-certification Feb 8, 2021
1654d53
Add bid adapter for Missena (#6247)
dev-missena Feb 8, 2021
c27ff14
Gulp test file example added in readme (#6287)
pm-harshad-mane Feb 9, 2021
dde585b
Sharethrough: Add support for ID5, Shared ID, and Live Intent ID (#6261)
poojawins Feb 9, 2021
73cfeb5
SmartAdServer Bid Adapter: image sync and noAd (#6236)
lowendavid Feb 9, 2021
fae47aa
Add client Alias Adkernel (#6291)
iskmerof Feb 10, 2021
4a7b465
[ParrableIdSystem] Add GVLID and handle TC Consent data (#6283)
icflournoy Feb 10, 2021
8e2501e
4.26.0 release
mkendall07 Feb 10, 2021
ff0b015
4.27.0-pre
mkendall07 Feb 10, 2021
a037c54
Updated data mapping of winning bid and auction logs in pubxai analyt…
Feb 10, 2021
c9e8869
Grid Bid Adapter: Added video protocols to the ad request (#6299)
TheMediaGrid Feb 11, 2021
f672209
Rubicon Bid Adapter: updated transactionId to auctionId for OpenRTB (…
bretg Feb 11, 2021
2702e96
Fix for Issue 6117: Added Module Name in Build to Comments (#6297)
pm-harshad-mane Feb 12, 2021
a6c3986
map tripleliftBidAdapter.js tl_source to bid.meta.mediaType (#6303)
patmmccann Feb 12, 2021
62ca969
Tappx Bid Adapter: new bidder adapter added (#6233)
prebidtappx Feb 12, 2021
6cc1ec3
Add Native ad capability to AdYouLike adapter (#6198)
guiann Feb 12, 2021
2ea3f6f
Update targeting.js to fix TTL buffer arithmetic (#6300)
patmmccann Feb 12, 2021
6e51dcf
Permutive RTD submodule (#6290)
dreischer Feb 12, 2021
a55b1ad
Adtelligent Bid Adapter: Add Navelix as alias (#6306)
GeneGenie Feb 12, 2021
c94ee67
Pubmatic add warning for non-string adSlots (#6304)
jsut Feb 16, 2021
59ef811
Update ttl outstream (#6253)
stevealliance Feb 16, 2021
942afbe
[ParrableIdSystem] Accept lowercase timezone names in timezone filter…
icflournoy Feb 16, 2021
7bc2561
Added new size - Id 550 (980x480) (#6311)
thomas-netric Feb 16, 2021
929b27a
Revert "Rubicon Bid Adapter: updated transactionId to auctionId for O…
bretg Feb 16, 2021
46152b2
Rubicon: adding size 300x200 (#6315)
bretg Feb 16, 2021
838ede5
added prebid version support to ixdiag (#6292)
lksharma Feb 17, 2021
3fd2bb5
Extended ID permissions supported by bidder (#6276)
YerkovichM Feb 17, 2021
c3a26f4
new bid adapter: Logain (#6312)
WlsLogan Feb 17, 2021
dc83f3b
Change URL in Tapad Id Submodule (#6318)
pcejrowski Feb 17, 2021
bdb661f
IndexExchange Bid Adapter: Added support for netID, ID+ and FabrickId…
li-ran Feb 17, 2021
2964e37
Prebid 4.27.0 Release
jsnellbaker Feb 17, 2021
26a268a
increment pre version
jsnellbaker Feb 17, 2021
cfe4464
mediasquare fix userId (#6321)
matthieularere-msq Feb 18, 2021
0939147
Change the EU consent string parameter name to the company-wide stand…
slimkrazy Feb 18, 2021
302b788
adding support in pbsAdapter for getFloor (#6273)
robertrmartinez Feb 18, 2021
2d23cbc
AdHash Bidder Adapter: initial prebid.js integration (#6274)
wyand-sp Feb 18, 2021
9c38fbc
PBJS Video Cache Update (#6295)
mmoschovas Feb 19, 2021
c3b159d
Support bidder aliasing by not using bid.bidder to retrieve configs (…
cciocov Feb 19, 2021
1935513
Fabrick ID System : updates to _setReferrer and appending urls (#6322)
andersonbd1 Feb 19, 2021
13230f0
Configureable option to delay auction event + fix bug with googletag …
robertrmartinez Feb 23, 2021
f2e0b38
Adhese Bid Adapter: replace id5 with eid (#6339)
mefjush Feb 23, 2021
949ce73
FID-287: Update Reconciliation RTD delivery id format (#6343)
vfedoseev Feb 23, 2021
7040fcd
Inskin Bid Adapter: send screen size in the ad call (#6316)
cciocov Feb 23, 2021
dc0a9c7
Ozone Bid Adapter: added or updated support for multiple modules (#6324)
afsheenb Feb 24, 2021
29085b5
Triplelift Bid Adapter: add PubCommon ID support (#6352)
nllerandi3lift Feb 24, 2021
8f920c5
Prebid 4.28.0 Release
Feb 24, 2021
ee3fa3e
Increment pre version
Feb 24, 2021
89f73e0
GMOSSP Bid Adapter : add refererInfo from bidderRequest (#6319)
KazuakiM Feb 25, 2021
c18f788
Axonix Bid Adapter: add new bid adapter (#6341)
cesarfd Feb 25, 2021
c2865ba
Documentation: Prebid Server and Postbid integration example ( ad ser…
ysfbsf Feb 25, 2021
52f4813
Native: add custom data assets capability (#6220)
osazos Feb 25, 2021
63ffed0
iPROM adapter upload - adapter (#6334)
iprom-adserver Feb 25, 2021
827d982
Ucfunnel Bid Adapter: update currency parameter in ad response (#6357)
jackhsiehucf Feb 26, 2021
49fb438
TheMediaGrid Bid Adapter: fix trouble with alias using (#6363)
TheMediaGrid Mar 1, 2021
db14341
Rubicon Analytics Adapter: pass along advertiserDomains (#6356)
robertrmartinez Mar 1, 2021
3da5445
support setting coopSync in s2sConfig (#6330)
msm0504 Mar 2, 2021
47712cb
TrustX Bid Adapter: Fix alias error (#6373)
PWyrembak Mar 2, 2021
a58aa83
Adform Bid Adapter: add global targeting to the request query as para…
Pupis Mar 2, 2021
7b3bec5
Prebid 4.29.0 Release
smenzer Mar 2, 2021
8219c2f
Increment pre version
smenzer Mar 2, 2021
8268068
Gamoshi Bid Adapter: update adaptor aliases (#6355)
Mar 2, 2021
7807069
Marsmedia Bid Adapter: add support for viewability, floor price modul…
vladi-mmg Mar 2, 2021
771d2bb
fix bidderRequest matching for finding a renderer (#6359)
JulieLorin Mar 4, 2021
d9a2430
Seedtag Bid Adapter: add support for inArticle placement (#6369)
lauramorillo Mar 4, 2021
f466902
improve robustness on OnEvent fields (#6384)
guiann Mar 4, 2021
d45935d
oneVideo Bid Adapter: remove adapter adId because of conflict with pb…
adam-browning Mar 4, 2021
f250fe7
PBS Bid Adapter: add dchain (demand chain object) to prebid server ad…
patmmccann Mar 4, 2021
f51ce4e
Gulp Build: fix to populate modules list when gulp bundle is executed…
pm-harshad-mane Mar 5, 2021
dc15ae5
Smartx Bid Adapter: updated out-stream render to support smartPlay 5.…
Skylinar Mar 5, 2021
8c686a9
Fpd 2.0 Update (#6293)
mmoschovas Mar 5, 2021
15cf2f0
PBS Bid Adapter: fix s2s alias collision with built-in adapter aliasi…
Mar 8, 2021
83e8222
Clean side-effect when checking that local storage is enabled (#6323)
TurpIF Mar 8, 2021
3129a96
updates docs and demo for fpd changes (#6302)
karimMourra Mar 9, 2021
9b2d3c0
Changed net revenue to True (#6387)
pm-azhar-mulla Mar 9, 2021
a2282be
adagioBidAdapter: add Native support (#6368)
osazos Mar 9, 2021
7635af1
EIDS Support Update (#6394)
rtuschkany Mar 10, 2021
89d5d41
TheMediaGridNM Bid Adapter: fix trouble with alias (#6371)
TheMediaGrid Mar 10, 2021
20f3cd8
Grab sourceAgnostic IDs first, then fallback to regular IDs (#6400)
robertrmartinez Mar 10, 2021
b65ea73
Permutive - add AC support for TrustX (#6393)
dreischer Mar 10, 2021
cdfc9df
SmartRTB Bid Adapter: add alias and update valid opts (#6365)
evanmsmrtb Mar 10, 2021
f1c45cd
Prebid 4.30.0 Release
robertrmartinez Mar 10, 2021
41b8607
Increment pre version
robertrmartinez Mar 10, 2021
f88a55a
Sonobi Bid Adapter: send eids in bid request. (#6364)
JonGoSonobi Mar 11, 2021
8e764f6
Apacdex Bid Adapter: userId module support, show demo ads in debug mo…
thuyhq Mar 12, 2021
7282096
Novatiq ID System: add snowflake userId submodule (#6350)
Mar 12, 2021
4b0779a
Rise Bid Adapter: add session_id & is_wrapper params to adapter (#6407)
lasloche Mar 15, 2021
da78728
IronSource Bid Adapter: add session_id & is_wrapper params to adapter…
lasloche Mar 15, 2021
dc67fe8
AMX Bid Adapter: add or update general adapter support and code refac…
nickjacob Mar 15, 2021
670ab08
VOX Bid adapter, Hybrid Bid adapter: fix global var name to avoid con…
hybrid-ai Mar 16, 2021
20bea36
LiveIntent Id System: fix for parsing response twice (#6418)
Mar 16, 2021
b9cd1a4
PBJS Core: use mediaType renderer when backupOnly and no bid.renderer…
aleksatr Mar 16, 2021
70a41a5
GumGum Bid Adapter: pass bidfloor currency in bidrequest (#6391)
susyt Mar 16, 2021
46ecf2c
Documentation: fixed a typo and sentence structure (#6421)
ChrisHuie Mar 17, 2021
8beade6
Bid Glass Bid Adapter: pass options in bid request (#6424)
dliebner Mar 17, 2021
990d287
Spotx Bid Adapter: add publisher support for cache.ignoreBidderCacheK…
npeceniak Mar 17, 2021
a75f2f4
update prebid adapter. Add at, ccpa, gdpr and coppa support (#6405)
BizzClick Mar 17, 2021
b98707c
Qwarry Bid Adapter: add referer detection (#6412)
pro-nsk Mar 17, 2021
24114d1
Smartyads Bid Adapter: add coppa field from config (#6402)
SmartyAdsSSP Mar 17, 2021
e0bd8e2
PBS Bid Adapter: Fpd2.0 bug fix for first party data issue (#6428)
mmoschovas Mar 17, 2021
04e4974
Prebid 4.31.0 Release
Mar 17, 2021
76a7828
Increment pre version
Mar 17, 2021
c245959
a4g Bid Adapter: delete adid and use crid if it exists (#6409)
Junus Mar 18, 2021
595fc0a
Mediawallah ID System: add openlink userId submodule (#5921)
ericrenebrown Mar 18, 2021
a1380fe
Documentation: Adjust desired bitrate examples smartx adapter (#6438)
Skylinar Mar 18, 2021
3eb1216
Remove adId (autogenerated by Prebid) (#6441)
jbartek25 Mar 18, 2021
24c4fb8
RichAudience Bid Adapter: add render video in banner (#6392)
richaudience Mar 19, 2021
cd6f1a8
Integration Example: ID import library example (#6434)
SKOCHERI Mar 19, 2021
92c9f67
Mass Module: add module to support MASS protocol (#6332)
cciocov Mar 19, 2021
a13c619
Axonix bid adapter: set both connectiontype & effectivetype in the re…
Mar 19, 2021
81a9e2b
Sublime Bid Adapter: v0.7.1 & add extra information in tracking pixel…
JeremiePat Mar 19, 2021
8c218d9
Interactive Offers Bid Adapter: add new bid adapter (#6399)
IOTiagoFaria Mar 19, 2021
99098ec
AdYouLike Bid Adapter: replace shorthand "image" native config (#6401)
guiann Mar 19, 2021
e266393
AMX Bid Adapter: Video Bugfix (#6435)
nickjacob Mar 19, 2021
c762a8b
LiveWrapper Bid Adapter: use userIdAsEids to handle all user ids (#6445)
bjorn-lw Mar 19, 2021
089b264
Invibes: Read legitimate interests; pubCommonId & pubProvidedId integ…
invibes Mar 23, 2021
b58a037
Update dfpAdServerVideo.js
patmmccann Mar 23, 2021
641f593
revert accidental commit
patmmccann Mar 23, 2021
b0c20ee
AdTrue Bid Adapter: getUserSyncs logic update (#6338)
haibau Mar 24, 2021
d2a0360
IX Bid Adapter: add priceFloors support and an integration example (#…
punkiller Mar 24, 2021
f3fe966
PBS adapter: remove condition on gdpr consentstring which isnt requir…
patmmccann Mar 24, 2021
9faeb68
if the stored value was an object, then it could end up with a space …
smenzer Mar 24, 2021
fa5c978
Kargo Bid Adapter: add gdpr support (#6447)
BernhardValenti Mar 24, 2021
1dc7c05
Bid Glass Adapter: Merge externally set targeting params (#6426)
dliebner Mar 24, 2021
f03e95a
Optimon Analytics Adapter: add new analytics adapter (#6333)
pixelgroup-israel Mar 24, 2021
95c5625
4.32.0 release
mkendall07 Mar 24, 2021
48cd16a
4.33.0-pre
mkendall07 Mar 24, 2021
94faa28
UID 2.0 Userid submodule (#6443)
SKOCHERI Mar 25, 2021
78b3a8b
H12media Bid Adapter: added new optional params, fixes, and various i…
h12media Mar 25, 2021
76c86e8
AdYouLike Bid Adapter: add video capabilities (#6398)
guiann Mar 25, 2021
b96f380
remove deprecated creative rendering example
ChrisHuie Mar 25, 2021
42182d6
Update Recommendation to install with 'npm ci' (#5697)
GLStephen Mar 25, 2021
5162ad8
Openx Bid Adapter: add floor support for Video (#6460)
kenan-gillet Mar 25, 2021
273e48b
Update to rubicon analytics adapter to pass along pbsBidId if present…
mmoschovas Mar 25, 2021
f3e0d4c
differentiate the IDs provided by ID5 when the user is opted out vs t…
smenzer Mar 25, 2021
ee468f7
AdagioBidAdapter: add capability to pass ext-data from localStorage i…
osazos Mar 26, 2021
9334c9b
Seedtag Bid Adapter: add connection type to bid request (#6457)
ybootin Mar 26, 2021
aa2463e
AdDefend Bid Adapter: new bid adapter (#6450)
addefend Mar 26, 2021
11b2dd2
GumGum Bid Adapter: adds meta field to bidresponse (#6478)
susyt Mar 27, 2021
7d76822
example integration file renamed to hello_world (#6475)
ChrisHuie Mar 29, 2021
d2e5956
Incorrect atypes on various eids (#6477)
patmmccann Mar 29, 2021
05869ed
added support for roundel alias (#6473)
lksharma Mar 29, 2021
971b515
Doceree Bid Adapter: new bid adapter (#6437)
sourbh-doceree Mar 29, 2021
dc16781
OpenX Bidder Adapter: Add user ID sub-modules (#6490)
kenan-gillet Mar 30, 2021
c5cd4e2
Smaato: FPD Revision (#6459)
el-chuck Mar 30, 2021
7935df6
Conversant adapter: add adomain, remove digitrust (#6495)
patmmccann Mar 31, 2021
f316b20
Rads Bid Adapter: add GDPR support & user sync support (#6455)
onlsol Mar 31, 2021
1e73b57
Proxistore Bid Adapter: add cookieless url endpoint & use floor modul…
vincentproxistore Mar 31, 2021
5cc4405
AdYoulike Bid Adapter: Add an "Insertion" tracking for Native mediaty…
guiann Mar 31, 2021
508f72e
Dspx Bid Adapter : add user sync support (#6456)
onlsol Mar 31, 2021
a430753
Multibid Module: add new module to handle multiple bids from single b…
mmoschovas Mar 31, 2021
6655277
Adding uid2 to submodules.json (#6508)
SKOCHERI Mar 31, 2021
f986df0
NextRoll ID System: add new ID module (#6396)
abijr Apr 1, 2021
23943da
Qwarry Bid Adapter: add GDPR and consent string handling (#6489)
artemiokost Apr 1, 2021
108a3a6
Zemanta Bid Adapter: add support for new params & consent strings to …
Apr 1, 2021
7f9f0a2
Automatad Bid Adapter: Add meta.advertiserDomains to bid response (#6…
kanchika-kapoor Apr 1, 2021
65c1079
Adhese Bid Adapter: add support for caching video content (#6501)
Apr 1, 2021
918149b
update apacdex unit test to disable debug mode (#6511)
jsnellbaker Apr 1, 2021
c78b49a
Telaria: not setting adid (#6507)
bretg Apr 1, 2021
b10fb27
Prebid 4.33.0 Release
jsnellbaker Apr 1, 2021
5ffe2c1
increment pre version
jsnellbaker Apr 1, 2021
84f70ff
rubicon: removing maxduration as a required bidder parameter (#6513)
bretg Apr 1, 2021
ebea754
Zemanta adapter: add advertiserDomains (#6517)
Apr 2, 2021
3c206da
Lemma Bid Adapter: accepting the floor to use the getFloor function (…
lm-abhijit Apr 2, 2021
91bcf42
Mediasquare Bid Adapter: fix getUserSyncs issue with empty bids + add…
matthieularere-msq Apr 2, 2021
1a4fec0
Update nextroll ID variable name to match published ID module (#6519)
abijr Apr 2, 2021
8b9f763
Merkle User ID Module: updates to user id submodule (#6503)
SKOCHERI Apr 3, 2021
a01dc2b
AdKernel Bid/Analytics Adapters: user privacy related changes (#6488)
ckbo3hrk Apr 5, 2021
7fce893
SynacorMedia: remove adId from the bid response (#6520)
rajcspsg Apr 5, 2021
e33442d
Rubicon: making doc data types consistent (#6526)
bretg Apr 5, 2021
3f5cff2
Synacormedia Bid Adapter: add meta.advertiserDomains (#6527)
rajcspsg Apr 5, 2021
dee10c3
Adloox Analytics Adapter: add new analytics adapter (#6308)
jimdigriz Apr 5, 2021
315f286
Seedtag adapter: Fixing bug preventing to receive the right params on…
lauramorillo Apr 6, 2021
e63cd6d
adot bid adapter: add publisher path from bidder config to endpoint u…
Giudici-a Apr 6, 2021
5e94a65
Admixer ID System: add userId submodule (#6238)
Galphimbl Apr 6, 2021
71fdd01
PBJS Core: call custom render func after loadscript if provided (#6422)
jeremiegirault Apr 6, 2021
b352c7d
Pubxai Analytics Adapter: bug fixes and code revamp (#6474)
pnhegde Apr 6, 2021
81fc1ce
PBJS Core: canBidderRegisterSync ignoring iframe sync disabled by def…
patmmccann Apr 7, 2021
987c082
Added automatic tzo and targetId to adserver request. (#6534)
mikael-lundin Apr 7, 2021
0ab0964
Tappx Bid Adapter: minor updates and universal id added (#6504)
prebidtappx Apr 7, 2021
56bb4ae
Impactify Bid Adapter: add new bid adapter (#6518)
thomasdseao Apr 7, 2021
ef14e4f
Prebid 4.34.0 Release
Apr 7, 2021
f0e3891
Increment pre version
Apr 7, 2021
ce63213
Prebid server adapter: add config for openx hosting (#6530)
deivydas Apr 8, 2021
3cf4702
Yieldmo adapter: add meta data to bids (#6550)
ym-atsymuk Apr 8, 2021
3eae68b
Smartx Bid Adapter: Add meta.advertiserDomains support (#6547)
Skylinar Apr 8, 2021
6af2f1e
Onevideo / Adap.tv Adapter: updated example configuration (#6546)
adam-browning Apr 8, 2021
f48f978
Mass Deal Rendering Module: support multiple custom configs for dealI…
cciocov Apr 9, 2021
c3f5f85
ZetaSsp Bid Adapter: add new bid adapter (#6432)
asurovenko-zeta Apr 9, 2021
60b9d57
Adnuntius Bid Adapter: Fix for bid too low. (#6557)
mikael-lundin Apr 9, 2021
2cc905e
ReadPeak Bid Adapter: fix api issues, add gdpr consent, & getfloor mo…
readpeaktuomo Apr 9, 2021
c34d853
BetweenBidAdatper: added sharedid support (#6531)
ignat-one Apr 9, 2021
1183ae1
adWMG Bid Adapter: update endpoints for cookie sync (#6544)
nyakove Apr 9, 2021
cda0a48
Yieldmo Bid Adapter: add support for the floors module (#6541)
ym-dlabuzov Apr 9, 2021
1003755
Sortable Bid Adapter: add eids support (#6565)
karentnarvaez Apr 10, 2021
421066f
Outbrain Bid Adapter: replacing Zemanta (#6558)
Apr 10, 2021
1107655
Sirdata Real-time Data Module: add new RTD module (#6515)
nouchy Apr 10, 2021
c19e855
Logicad Bid Adapter: add support for userid modules (#6529)
logicad Apr 12, 2021
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
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ prebid.requestBids({

$ git clone https://github.com/prebid/Prebid.js.git
$ cd Prebid.js
$ npm install
$ npm ci

*Note:* You need to have `NodeJS` 12.16.1 or greater installed.

*Note:* In the 1.24.0 release of Prebid.js we have transitioned to using gulp 4.0 from using gulp 3.9.1. To comply with gulp's recommended setup for 4.0, you'll need to have `gulp-cli` installed globally prior to running the general `npm install`. This shouldn't impact any other projects you may work on that use an earlier version of gulp in its setup.
*Note:* In the 1.24.0 release of Prebid.js we have transitioned to using gulp 4.0 from using gulp 3.9.1. To comply with gulp's recommended setup for 4.0, you'll need to have `gulp-cli` installed globally prior to running the general `npm ci`. This shouldn't impact any other projects you may work on that use an earlier version of gulp in its setup.

If you have a previous version of `gulp` installed globally, you'll need to remove it before installing `gulp-cli`. You can check if this is installed by running `gulp -v` and seeing the version that's listed in the `CLI` field of the output. If you have the `gulp` package installed globally, it's likely the same version that you'll see in the `Local` field. If you already have `gulp-cli` installed, it should be a lower major version (it's at version `2.0.1` at the time of the transition).

Expand Down Expand Up @@ -202,6 +202,11 @@ To run the unit tests:
gulp test
```

To run the unit tests for a perticular file (example for pubmaticBidAdapter_spec.js):
```bash
gulp test --file "test/spec/modules/pubmaticBidAdapter_spec.js"
```

To generate and view the code coverage reports:

```bash
Expand Down Expand Up @@ -260,7 +265,7 @@ directory you will have sourcemaps available in your browser's developer tools.

To run the example file, go to:

+ `http://localhost:9999/integrationExamples/gpt/pbjs_example_gpt.html`
+ `http://localhost:9999/integrationExamples/gpt/hello_world.html`

As you make code changes, the bundles will be rebuilt and the page reloaded automatically.

Expand Down
13 changes: 10 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const execa = require('execa');

var prebid = require('./package.json');
var dateString = 'Updated : ' + (new Date()).toISOString().substring(0, 10);
var banner = '/* <%= prebid.name %> v<%= prebid.version %>\n' + dateString + ' */\n';
var banner = '/* <%= prebid.name %> v<%= prebid.version %>\n' + dateString + '\nModules: <%= modules %> */\n';
var port = 9999;
const FAKE_SERVER_HOST = argv.host ? argv.host : 'localhost';
const FAKE_SERVER_PORT = 4444;
Expand Down Expand Up @@ -157,15 +157,20 @@ function makeWebpackPkg() {

const analyticsSources = helpers.getAnalyticsSources();
const moduleSources = helpers.getModulePaths(externalModules);
const modulesString = getModulesListToAddInBanner(externalModules);

return gulp.src([].concat(moduleSources, analyticsSources, 'src/prebid.js'))
.pipe(helpers.nameModules(externalModules))
.pipe(webpackStream(cloned, webpack))
.pipe(uglify())
.pipe(gulpif(file => file.basename === 'prebid-core.js', header(banner, { prebid: prebid })))
.pipe(gulpif(file => file.basename === 'prebid-core.js', header(banner, { prebid: prebid, modules: modulesString })))
.pipe(gulp.dest('build/dist'));
}

function getModulesListToAddInBanner(modules){
return (modules.length > 0) ? modules.join(', ') : 'All available modules in current version.';
}

function gulpBundle(dev) {
return bundle(dev).pipe(gulp.dest('build/' + (dev ? 'dev' : 'dist')));
}
Expand Down Expand Up @@ -215,6 +220,8 @@ function bundle(dev, moduleArr) {
return gulp.src(
entries
)
// Need to uodate the "Modules: ..." section in comment with the current modules list
.pipe(replace(/(Modules: )(.*?)(\*\/)/, ('$1' + getModulesListToAddInBanner(helpers.getArgModules()) + ' $3')))
.pipe(gulpif(dev, sourcemaps.init({ loadMaps: true })))
.pipe(concat(outputFileName))
.pipe(gulpif(!argv.manualEnable, footer('\n<%= global %>.processQueue();', {
Expand Down Expand Up @@ -279,7 +286,7 @@ function test(done) {
} else {
var karmaConf = karmaConfMaker(false, argv.browserstack, argv.watch, argv.file);

var browserOverride = helpers.parseBrowserArgs(argv).map(helpers.toCapitalCase);
var browserOverride = helpers.parseBrowserArgs(argv);
if (browserOverride.length > 0) {
karmaConf.browsers = browserOverride;
}
Expand Down
112 changes: 112 additions & 0 deletions integrationExamples/gpt/adUnitFloors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<!--
This page calls a single bidder for a single ad slot.
It is a specialized example for adding floors to bids using the priceFloors Module
It also makes a good test page for new adapter PR submissions. Simply set your server's Bid Params object in the
bids array inside the adUnits, and it will use your adapter to load an ad.
NOTE that many ad servers won't send back an ad if the URL is localhost... so you might need to
set an alias in your /etc/hosts file so that you can load this page from a different domain.
-->

<html>

<head>
<script async src="../../build/dist/prebid.js"></script>
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
var FAILSAFE_TIMEOUT = 3300;
var PREBID_TIMEOUT = 1000;
var adUnits = [{
code: 'div-gpt-ad-51545-0',
sizes: [[300, 250], [600, 500]],
mediaTypes: {
banner: {
sizes: [[300, 250], [600, 500]]
}
},
// Replace this object to test a new Adapter!
bids: [{
bidder: 'ix',
params: {
siteId: '300',
size: [300, 250]
}
}]
}];
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
</script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function () {
googletag.pubads().disableInitialLoad();
});

pbjs.que.push(function () {
pbjs.addAdUnits(adUnits);
pbjs.setConfig({
floors: {
enforcement: {
floorDeals: false, //default to false
bidAdjustment: true
},
data: { // default if endpoint doesn't return in time
currency: 'USD',
skipRate: 5,
modelVersion: 'BlackBerryZap',
schema: {
fields: ['gptSlot', 'mediaType', 'size']
},
values: {
'*|banner|600x500': 6.5,
'*|banner|300x250': 3.25,
'*|video': 3.5
}
}
}
});
pbjs.requestBids({
bidsBackHandler: sendAdserverRequest,
timeout: PREBID_TIMEOUT
});
});

function sendAdserverRequest() {
if (pbjs.adserverRequestSent) return;
pbjs.adserverRequestSent = true;
googletag.cmd.push(function () {
pbjs.que.push(function () {
pbjs.setTargetingForGPTAsync();
googletag.pubads().refresh();
});
});
}

setTimeout(function () {
sendAdserverRequest();
}, FAILSAFE_TIMEOUT);

</script>

<script>
googletag.cmd.push(function () {
googletag.defineSlot('/19968336/header-bid-tag-0', [[300, 250], [300, 600]], 'div-gpt-ad-51545-0').addService(googletag.pubads());

googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>

<body>
<h2>Prebid.js Test</h2>
<h5>Div-1</h5>
<div id='div-gpt-ad-51545-0'>
<script type='text/javascript'>
googletag.cmd.push(function () { googletag.display('div-gpt-ad-51545-0'); });
</script>
</div>
</body>

</html>

Loading