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

Update remote repo #32

Merged
merged 177 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
a94f7f0
Kargo Bid Adapter: Support for sending ortb2.user.data (#10659)
jsadwith Oct 30, 2023
ae03319
sspBC Bid Adapter: update video detection for VAST4 (#10660)
wojciech-bialy-wpm Oct 30, 2023
2d90b7a
fledgeForGpt: use `imp.ext.ae` instead of `defaultForSlots`; add `pre…
dgirardi Oct 30, 2023
5790fd6
send all bidRequests fields to orbidder and change tests to be more (…
arneschulz1984 Oct 30, 2023
29772f9
Insticator Bid Adapter : get config fix for device (#10667)
ausgomez Oct 31, 2023
9630925
Agma Analytics Adapter: Init (#10642)
steffenmllr Nov 1, 2023
981459b
ADAPTER UPDATES (#10602)
AskRupert-DM Nov 1, 2023
7c25daa
FreeWheel SSP Adapter: add gvlid in spec (#10654)
xwang202 Nov 1, 2023
335697b
openxBidAdapter: add prebid version (#10678)
bwschmidt Nov 2, 2023
3f2cc28
Add size 720x1280 to rubicon adapter (#10676)
harrykingriches Nov 2, 2023
a54c17c
AdMatic Bid Adapter: added native type (#10647)
fatihkaya84 Nov 2, 2023
ef8bec9
Reset Digital Bid Adapter: refactoring usersync method (#10673)
jhon-reset Nov 2, 2023
30ac7f5
Criteo Bid Adapter: Fledge Support (#10665)
vitaliy-pavlenko Nov 2, 2023
534230a
Prebid 8.22.0 release
prebidjs-release Nov 3, 2023
e1384af
Increment version to 8.23.0-pre
prebidjs-release Nov 3, 2023
d74533b
relevantBidAdapter: support s2s (#10610)
hugolm84 Nov 3, 2023
b4598fa
PublinkIdSystem: Pass cached id through for better tracking (#10638)
johnwier Nov 3, 2023
a069331
support for cookie deprecation label (#10695)
jlquaccia Nov 4, 2023
c544100
BLIINK Bid Adapter: hotfix gvlid parameter (#10697)
samous Nov 6, 2023
99d7e71
Tappx Bid Adapter : fixed referrer for iframes using external sites e…
prebidtappx Nov 6, 2023
bb9be09
Mediago Bid Adapter: add imp params for analysis (#10691)
BaronJHYu Nov 6, 2023
87141d4
GoldfishAds Rtd Provider : Initial Module Release (#10623)
keithdoggett Nov 7, 2023
15b523f
ZetaGlobalSsp Analytics Adapter : make event object with only needed …
asurovenko-zeta Nov 7, 2023
5b82e3b
GumGum Bid Adapter: add support for video.plcmt (#10674)
MartinGumGum Nov 7, 2023
680f924
Rubicon Bid Adapter: PAAPI/Fledge support (#10671)
spotxslagle Nov 8, 2023
9595899
feat: pangle support video (#10682)
pangle-fe Nov 8, 2023
ea5bc2c
Rubicon Bid Adapter : send Fastlane cdep flag (#10703)
spotxslagle Nov 8, 2023
9bfd688
Outbrain Bid Adapter - add gpp consent to bid request and User sync c…
markkuhar Nov 9, 2023
51ca28c
Appnexus Bid Adapter - Adding 'adzymic' as a new alias for Appnexus (…
kampungkat Nov 9, 2023
a3c64d4
Consumable Bid Adapter: fix us privacy format and make gpp applicable…
jpiros Nov 9, 2023
b389581
IX Bid Adapter: implement support for exchangeId and externalId [PB-2…
oronno Nov 9, 2023
0154028
Prebid 8.23.0 release
prebidjs-release Nov 9, 2023
7ecec48
Increment version to 8.24.0-pre
prebidjs-release Nov 9, 2023
6667f33
Pubmatic: Contribute vendor details for Prebid server adapter (#10706)
pm-priyanka-deshmane Nov 9, 2023
f2e46d4
priceFloors: Prevent warning when floor price value is 0 (#10701)
PascalSalesch Nov 9, 2023
e3b99f8
Update live-connect-js dependency (#10692)
3link Nov 9, 2023
015f12b
Yieldmo Bid Adapter: Adding tmax to banner bid requests (#10689)
desidiver Nov 9, 2023
fe5fbb7
Discovery Bid Adapter: add bidId, keywords, and pbadslot (#10694)
ecoeco163 Nov 10, 2023
2aadc09
AdagioBidAdapter: fix floor price module support (#10711)
osazos Nov 10, 2023
95a6107
Currency module: better error handling (#10679)
dgirardi Nov 13, 2023
7dbfba4
discovery add refer stack (#10712)
lhxx121 Nov 13, 2023
f50e42c
adstir Bid Adapter: initial release (#10680)
ryohamadaumt Nov 13, 2023
bdd4a40
Criteo bid adapter: add a few missing video fields (#10720)
dzhang-criteo Nov 13, 2023
76e967a
TPMN Bid Adapter: Change End-Point & Support Video (#10611)
tpmn-admin Nov 13, 2023
01654d0
Improve Digital PG flag (#10718)
jbartek25 Nov 13, 2023
af4936a
33Across Analytics Adapter: initial release (#10635)
macinjosh32 Nov 13, 2023
c8870c1
Rubicon Bid Adapter: Pass SUA data if available (#10721)
robertrmartinez Nov 13, 2023
683b5e6
Adttelligent Bid Adapter : add Indicue alias (#10719)
GeneGenie Nov 14, 2023
9c6cd73
Media Filter RTD Provider : initial modul release (#10418)
mcajlakovic Nov 14, 2023
9ce9b50
Onetag Bid Adapter: address auctionId/transactionId leak (#10726)
onetag-dev Nov 14, 2023
83390b9
Use gppApplicableSections and gppString In LiveIntent's Prebid User I…
wi101 Nov 14, 2023
35c6b60
Revert "NoBid Bid Adapter : add support for first party user id (#105…
patmmccann Nov 14, 2023
2691a50
Adagio Analytics Adapter: handle bid cache usecases (#10699)
rotta-f Nov 14, 2023
c027061
Missena Bid Adapter: floor implementation (#10534)
pdamoc Nov 15, 2023
67975d7
FreeWheel SSP Adapter: public vastXml in bidResponse for all media ty…
xwang202 Nov 15, 2023
be9338a
Log unhandled errors and rejections (#10723)
dgirardi Nov 15, 2023
24ff9a6
Doceree AdManager Bid Adapter: initial release (#10684)
Doceree-techStack Nov 15, 2023
31747cf
Operaads Bid Adapter: provide a way to build bid requests for applica…
duduchristian Nov 15, 2023
97d3daa
Ogury Bid Adapter: support userId and userIdAsEids (#10669)
AurelienMozoo Nov 15, 2023
c424d58
Prebid 8.24.0 release
prebidjs-release Nov 16, 2023
055a483
Increment version to 8.25.0-pre
prebidjs-release Nov 16, 2023
879b9be
AsterioBid Analytics Adapter : initial release (#10652)
danoykin Nov 16, 2023
cb9a616
Discovery Bid Adapter : remove duplicate eids (#10743)
ecoeco163 Nov 17, 2023
b7744ec
Adxcg Bid Adapter: use ortbConverter (#10525)
adxcgcom Nov 17, 2023
deff7e0
Core: unify rendering paths; codify (and test) cross-domain render ex…
dgirardi Nov 20, 2023
c9d34ed
feat: Add gvlid to iprom bid adapter (#10750)
iprom-adserver Nov 21, 2023
c8d83f0
ShinezRTB Bid Adapter : initial release (#10405)
saar120 Nov 22, 2023
59532d6
Prebid 8.25.0 release
prebidjs-release Nov 26, 2023
aa73d61
Increment version to 8.26.0-pre
prebidjs-release Nov 26, 2023
1205d53
Criteo bid adapter: Bump fastbid version (#10696)
leonardlabat Nov 26, 2023
656680b
identityLinkIdSystem: include gpp in 3p envelope retrieval (#10745)
mamatic Nov 27, 2023
b1e601a
Taboola Bid Adapter: cast tmax type (#10766)
barRubi Nov 27, 2023
f215abd
adxcg Bid Adapter : fix convertTypes util import (#10763)
lyricwulf Nov 27, 2023
5945465
Boldwin Bid Adapter : update sync url (#10757)
Wls-demo Nov 27, 2023
498b6b5
Onetag Bid Adapter: FLEDGE/PAAPI support (#10755)
onetag-dev Nov 27, 2023
ecf4272
FPD Enrichment: support for Cookie Deprecation Label (#10683)
jlquaccia Nov 27, 2023
8993f74
Currency module: Don't block 'responsesReady' when rates are present …
samuel-palmer-relevant-digital Nov 27, 2023
d21fb7d
ConceptX Bid Adapter : bugfix to avoid appending to the request url o…
cpcpn-emil Nov 28, 2023
6a0c7f0
Grid bid adapter: call data deletion request c2s endpoint (#10732)
vraybaud Nov 28, 2023
4e323bf
SparteoBidAdapter: Send bidder params in OpenRTB request (#10760)
geoffray-viously Nov 28, 2023
1e33758
Impactify Bid Adapter : Removing checks on bid request (#10769)
thomasdseao Nov 28, 2023
1488d8c
Unruly: Protected Audience Support (#10709)
bhainesnexxen Nov 29, 2023
a9b62f8
Relaido Bid Adapter : add userIdAsEids and canonical_url to request (…
relaido Nov 29, 2023
b154fc1
Adagio Bid Adapter: add GPID support (#10775)
osazos Nov 29, 2023
73fb8d3
Core: add option to turn off `Sec-Browsing-Topics` header (#10776)
dgirardi Nov 29, 2023
d70097e
Missena Bid Adapter: add capping support (#10746)
pdamoc Nov 30, 2023
7974ebc
Adnuntius Bid Adaptor: Handle voidAuIds from server response (#10646)
antosarho Nov 30, 2023
32748b4
TPMN Bid Adapter: remove OptionsObject (#10777)
tpmn-admin Nov 30, 2023
7dd09d8
GC-157 Boune request when the PID is missing (#10774)
southern-growthcode Nov 30, 2023
9c597a3
DynamicAdBoost Module : add to adloader list (#10752)
adxpremium Nov 30, 2023
a8fedc6
Generic analytics: fix spurious warning messages (#10739)
dgirardi Nov 30, 2023
5202784
Prebid 8.26.0 release
prebidjs-release Nov 30, 2023
ec42b13
Increment version to 8.27.0-pre
prebidjs-release Nov 30, 2023
2de3f87
Flipp Bid Adapter: update constant NETWORK_ID (#10781)
mike-lei Dec 1, 2023
16133c5
identityLinkIdSystem - liveramp - bug fix setting tcf consent string …
mamatic Dec 1, 2023
faec1bb
Add GVLID to vox adapter (#10784)
hybrid-ai Dec 1, 2023
fe2f35e
LiveIntent UserId module: Add support for sovrn id (#10783)
3link Dec 1, 2023
4f057b1
Unruly Bid Adapter : include Prebid.js version in request (#10773)
bhainesnexxen Dec 1, 2023
cbf1e15
MgidX Bid Adapter: refactor request.gdpr object generating (#10782)
xmgiddev Dec 2, 2023
7be0a10
NextMillennium Bid Adapter: support for GPP consent string, `site.pag…
mhlm Dec 4, 2023
4f3826a
Replace openx.com with openx.net (#10786)
3link Dec 4, 2023
27b57ab
Rise Bid Adapter : support currency (#10790)
YakirLavi Dec 5, 2023
645b562
MinuteMedia Bid Adapter : support currency (#10791)
YakirLavi Dec 5, 2023
55ba111
Core: Add eventString to error executing handler message (#10797)
pclinger Dec 5, 2023
f818b8f
Adagio Bid Adapter: remove useless adrequest fields (#10794)
osazos Dec 5, 2023
9a65d49
VIS.X: add response time tracking on bidWon event (#10772)
vfedoseev Dec 5, 2023
264efa7
ViantOrtb Bid Adapter : update endpoint url (#10801)
tkrishnaviant Dec 6, 2023
bf909ea
Teads Bid Adapter: add new window features to request (#10796)
github-saad-elmahfoudi Dec 6, 2023
0de4a09
Sparteo Bid Adapter : handle vastUrl for video context (#10805)
geoffray-viously Dec 7, 2023
864dc02
deal support added (#10802)
mustafakemal16 Dec 7, 2023
d0747e4
Mediago Bid Adapter : add cookieSync and gdpr (#10724)
BaronJHYu Dec 7, 2023
cb82c47
Sovrn Bid Adapter : send coppa signal (#10729)
ikagotso Dec 7, 2023
4fe6292
Adnuntius Bid Adapter : forces gdpr=1 flag if consent is required (#1…
mikael-lundin Dec 7, 2023
8ab882f
GeoEdge RTD module: collect CPM and curency from the winning bid (#10…
GeoEdge-r-and-d Dec 7, 2023
c6a13ca
userId: fix bug where pubProvidedId UIDs are duplicated (#10795)
dgirardi Dec 7, 2023
37b7e05
Prebid 8.27.0 release
prebidjs-release Dec 7, 2023
7f815d2
Increment version to 8.28.0-pre
prebidjs-release Dec 7, 2023
32ff256
Support UID 2.0 pgamssp module (#10771)
PGAMSSP Dec 7, 2023
b47a38b
ADSS-1756-pass-gpid-to-video-requests (#10809)
john-ivan Dec 8, 2023
260269d
Browsi RTD : fix for targeting (#10814)
omerDotan Dec 11, 2023
2493f98
nextMillennium Bid Adapter : add pbjs version and support for user.ei…
mhlm Dec 11, 2023
eecdc2e
Update deepintentBidAdapter.js (#10818)
patmmccann Dec 11, 2023
222b442
GC-158 When accessing the TCF it is pulling from the wrong location, …
southern-growthcode Dec 11, 2023
3ec81e6
Adagio Analytics Adapter: listen to AUCTION_END (#10798)
osazos Dec 11, 2023
6275c00
PubMaticAnalyticAdapter : Added new fields related to floors (fetch s…
kapil-tuptewar Dec 11, 2023
048f735
Pubmatic Analytics Adapter : skip duplicate data for pubmatic bids in…
pm-priyanka-deshmane Dec 12, 2023
947a487
support ad unit name (#10825)
gwi-mmuths Dec 12, 2023
5dbbf1b
PBjs Core : new event fired before add bid response (#10685)
matthieularere-msq Dec 12, 2023
85817e7
Revert "Pubmatic Analytics Adapter : skip duplicate data for pubmatic…
patmmccann Dec 12, 2023
fd35856
Revert "support ad unit name (#10825)" (#10831)
ChrisHuie Dec 12, 2023
1c4bc7a
Invibes Bid Adapter : infinite scroll tcf (#10764)
gabrielIvbs Dec 12, 2023
2e07896
Mediago Bid Adapter : switch domain name (#10833)
BaronJHYu Dec 13, 2023
75cb166
Bizzclick Bid Adapter : update adapter, used ortbConverter lib (#10828)
BizzClick Dec 13, 2023
dc530cf
PubMatic Bid Adapter : passing a unique wiid to pubmatic ssp and logg…
pm-azhar-mulla Dec 13, 2023
a631892
Criteo Bid Adapter: Add support for app.publisher.id in bid request (…
vraybaud Dec 14, 2023
3e57af3
providing visibility in case of adapter timeout and bidError (#10807)
barRubi Dec 14, 2023
f58a0a3
Prebid 8.28.0 release
prebidjs-release Dec 14, 2023
2732783
Increment version to 8.29.0-pre
prebidjs-release Dec 14, 2023
5292b63
Adding support for video.plcmt (#10841)
desidiver Dec 15, 2023
a90d6c8
Bump github/codeql-action from 2 to 3 (#10856)
dependabot[bot] Dec 18, 2023
5f8ff5f
HadronId Module: implementing user consent in backend calls (#10845)
jlaso Dec 18, 2023
9a0f012
Eids Docs : add missing EID examples (#10844)
3link Dec 18, 2023
332a7d2
Admixer Bid Adaper: add admixerwl alias (#10859)
AdmixerTech Dec 19, 2023
cd787eb
AdagioAnalyticsAdapter: fix function param check (#10860)
osazos Dec 19, 2023
0b59d4d
NoBid Analytics Adapter: support for counting blocked requests for th…
redaguermas Dec 20, 2023
a5c2e06
consentManagementGpp: fix handling of CMP errors (#10811)
dgirardi Dec 20, 2023
104f53f
Taboola Bid Adapter: implement Iframe user sync (#10789)
ahmadlob Dec 20, 2023
2548949
AMX bid adapter: fix timeout handler, bump version (#10744)
nickjacob Dec 20, 2023
2b8aacb
Ucfunnel Bid Adapter: add format support (#10862)
jackhsiehucf Dec 20, 2023
3c632ca
R2B2 Bid Adapter: Initial release (#10702)
alexalukr2b2 Dec 21, 2023
f5e1988
Core: fix headers in ortbConverter readme (#10874)
someden Dec 27, 2023
c6b45c4
SparteoBidAdapter: Add UserSync (#10822)
geoffray-viously Dec 27, 2023
f625c1e
Yandex Bid Adapter: Add rtt (roud trip time) tracking via nurl (#10846)
korobkov-k Dec 27, 2023
ed48e34
AdMatic Bid Adapter : consent management features added (#10813)
fatihkaya84 Dec 27, 2023
9ec2092
Taboola Bid Adapter: Cookie Look Up Logic Fix (#10873)
ahmadlob Dec 27, 2023
984abfa
ZetaGlobalSsp Bid Adapter : support topics module (#10803)
asurovenko-zeta Dec 27, 2023
325cd3c
Adnuntius Bid Adapter: bugfix for storageFunction (#10869)
mikael-lundin Dec 28, 2023
bdbbf09
Prebid 8.29.0 release
prebidjs-release Dec 28, 2023
46784ab
Increment version to 8.30.0-pre
prebidjs-release Dec 28, 2023
cc49968
Yandex Bid Adapter: add support for topicsFpdModule (#10875)
someden Dec 31, 2023
ff27673
Yandex Bid Adapter: add jsdoc (#10884)
someden Dec 31, 2023
233695d
DxKulture Bid Adapter : user syncs improvements (#10738)
kmdevops Jan 2, 2024
04a7659
Mygaru Id System: Initial release (#10848)
GeneGenie Jan 2, 2024
ed05478
Update viantOrtbBidAdapter_spec.js (#10888)
tkrishnaviant Jan 3, 2024
665c894
Stv Bid Adapter: added user id support, adaptation of schain support …
theo-stv Jan 3, 2024
185e97f
Missena Bid Adapter: allow per page capping (#10863)
pdamoc Jan 3, 2024
49904a0
LiveIntent ID Module: Update live-connect version (#10894)
wi101 Jan 3, 2024
136f0bb
Do not require API for video requests (#10895)
robertrmartinez Jan 3, 2024
7a09d81
Price Floors: Failure to Account for 'data.skipRate' (#10872)
bbaresic Jan 4, 2024
aa21bfd
Prebid 8.30.0 release
prebidjs-release Jan 4, 2024
714acd3
Increment version to 8.31.0-pre
prebidjs-release Jan 4, 2024
866be6e
1.Added safechecks for s2s metadapter case 2.Skipped firing client si…
kapil-tuptewar Jan 4, 2024
60e7e96
Discovery Bid Adapter: update buyerId, add ssppid & pmguid, add getUs…
ecoeco163 Jan 4, 2024
cdbe68c
ID5 User Id module - pass gpp string and sid in getId request (#10899)
abazylewicz-id5 Jan 5, 2024
7f2763d
Adnuntius Bid Adapter : bugfix void au ids (#10890)
antosarho Jan 5, 2024
3e6b546
GreenbidsAnalyticsAdapter and GreenbidsRtdProvider: Rework greenbids …
jbogp Jan 5, 2024
d390f6c
Core: add eslint-plugin-jsdoc (#10893)
someden Jan 6, 2024
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
35 changes: 33 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,25 @@ module.exports = {
node: {
moduleDirectory: ['node_modules', './']
}
},
'jsdoc': {
mode: 'typescript',
tagNamePreference: {
'tag constructor': 'constructor',
extends: 'extends',
method: 'method',
return: 'return',
}
}
},
extends: 'standard',
extends: [
'standard',
'plugin:jsdoc/recommended'
],
plugins: [
'prebid',
'import'
'import',
'jsdoc'
],
globals: {
'BROWSERSTACK_USERNAME': false,
Expand Down Expand Up @@ -46,6 +59,24 @@ module.exports = {
'no-undef': 2,
'no-useless-escape': 'off',
'no-console': 'error',
'jsdoc/check-types': 'off',
'jsdoc/newline-after-description': 'off',
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-param-name': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/require-property': 'off',
'jsdoc/require-property-description': 'off',
'jsdoc/require-property-name': 'off',
'jsdoc/require-property-type': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-returns-check': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-returns-type': 'off',
'jsdoc/require-yields': 'off',
'jsdoc/require-yields-check': 'off',
'jsdoc/tag-lines': 'off'
},
overrides: Object.keys(allowedModules).map((key) => ({
files: key + '/**/*.js',
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -57,7 +57,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -70,4 +70,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
27 changes: 22 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ function makeWebpackPkg(extraConfig = {}) {
}
}

function buildCreative() {
return gulp.src(['**/*'])
.pipe(webpackStream(require('./webpack.creative.js')))
.pipe(gulp.dest('build/creative'))
}

function updateCreativeExample(cb) {
const CREATIVE_EXAMPLE = 'integrationExamples/gpt/x-domain/creative.html';
const root = require('node-html-parser').parse(fs.readFileSync(CREATIVE_EXAMPLE));
root.querySelectorAll('script')[0].textContent = fs.readFileSync('build/creative/creative.js')
fs.writeFileSync(CREATIVE_EXAMPLE, root.toString())
cb();
}

function getModulesListToAddInBanner(modules) {
if (!modules || modules.length === helpers.getModuleNames().length) {
return 'All available modules for this version.'
Expand Down Expand Up @@ -405,6 +419,7 @@ function watchTaskMaker(options = {}) {
return function watch(done) {
var mainWatcher = gulp.watch([
'src/**/*.js',
'libraries/**/*.js',
'modules/**/*.js',
].concat(options.alsoWatch));

Expand All @@ -415,8 +430,8 @@ function watchTaskMaker(options = {}) {
}
}

const watch = watchTaskMaker({alsoWatch: ['test/**/*.js'], task: () => gulp.series(clean, gulp.parallel(lint, 'build-bundle-dev', test))});
const watchFast = watchTaskMaker({livereload: false, task: () => gulp.series('build-bundle-dev')});
const watch = watchTaskMaker({alsoWatch: ['test/**/*.js'], task: () => gulp.series(clean, gulp.parallel(lint, 'build-bundle-dev', test, buildCreative))});
const watchFast = watchTaskMaker({livereload: false, task: () => gulp.parallel('build-bundle-dev', buildCreative)});

// support tasks
gulp.task(lint);
Expand Down Expand Up @@ -447,21 +462,23 @@ gulp.task('build-bundle-verbose', gulp.series(makeWebpackPkg({
}
}), gulpBundle.bind(null, false)));

gulp.task('build-creative', gulp.series(buildCreative, updateCreativeExample));

// public tasks (dependencies are needed for each task since they can be ran on their own)
gulp.task('test-only', test);
gulp.task('test-all-features-disabled', testTaskMaker({disableFeatures: require('./features.json'), oneBrowser: 'chrome', watch: false}));
gulp.task('test', gulp.series(clean, lint, gulp.series('test-all-features-disabled', 'test-only')));
gulp.task('test', gulp.series(clean, lint, gulp.parallel('build-creative', gulp.series('test-all-features-disabled', 'test-only'))));

gulp.task('test-coverage', gulp.series(clean, testCoverage));
gulp.task(viewCoverage);

gulp.task('coveralls', gulp.series('test-coverage', coveralls));

gulp.task('build', gulp.series(clean, 'build-bundle-prod'));
gulp.task('build', gulp.series(clean, 'build-bundle-prod', 'build-creative'));
gulp.task('build-postbid', gulp.series(escapePostbidConfig, buildPostbid));

gulp.task('serve', gulp.series(clean, lint, gulp.parallel('build-bundle-dev', watch, test)));
gulp.task('serve-fast', gulp.series(clean, gulp.parallel('build-bundle-dev', watchFast)));
gulp.task('serve-fast', gulp.series(clean, gulp.parallel('build-bundle-dev', buildCreative, watchFast)));
gulp.task('serve-prod', gulp.series(clean, gulp.parallel('build-bundle-prod', startLocalServer)));
gulp.task('serve-and-test', gulp.series(clean, gulp.parallel('build-bundle-dev', watchFast, testTaskMaker({watch: true}))));
gulp.task('serve-e2e', gulp.series(clean, 'build-bundle-prod', gulp.parallel(() => startIntegServer(), startLocalServer)));
Expand Down
168 changes: 168 additions & 0 deletions integrationExamples/gpt/tpmn_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Prebid.js Banner Example</title>
<!-- Prebid.js -->
<!-- <script async src="prebid.js"></script> -->
<script async src="../../build/dev/prebid.js"></script>
<!-- Google Publisher Tag -->
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
const customConfigObject = {
"buckets": [{
"max": 40,
"increment": 0.5
}]
};
// Prebid Banner Ad Unit
var adUnits = [
{
// Banner adUnit
code: 'banner-div-0',
mediaTypes: {
banner: {
sizes: [[300, 250]],
battr: []
}
},
bids: [{
bidder: 'tpmn',
params: {
inventoryId: 2,
bidFloor: 0.1,
}
}]
},
{
// Video adUnit
code: 'video-div-1',
mediaTypes: {
video: {
context: 'outstream',
playerSize: [640, 480],
mimes: ['video/mp4'],
//playbackmethod: [2, 4, 6],
api: [1, 2, 4, 6],
protocols: [3, 4, 7, 8, 10],
placement: 1,
minduration: 0,
maxduration: 60,
startdelay: 0,
skip: 1
},
},
bids: [{
bidder: 'tpmn',
params: {
inventoryId: 2,
bidFloor: 2.0,
}
}],
renderer: {
options: {
adText : "TPMN Ad",
disableCollapse : true
}
}
}
];
</script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function () {
googletag.pubads().disableInitialLoad();
});

pbjs.que.push(function () {
pbjs.setConfig({
debug: true,
enableSendAllBids: false,
priceGranularity: customConfigObject,
userSync: {
userIds: [{
name: "pubCommonId",
storage: {
name: "pubcid",
type: "cookie",
days: 30
}
},{
name: "unifiedId",
storage: {
type: "cookie",
name: "unifiedid",
expires: 60
}
}],
userIdAsEids: true
}
});
pbjs.addAdUnits(adUnits);
pbjs.requestBids({ bidsBackHandler: sendAdServerRequest });
});

function sendAdServerRequest() {
if (pbjs.adserverRequestSent) return;

//Google Ad Server Use Banner
googletag.cmd.push(() => {
googletag
.defineSlot('/19968336/header-bid-tag-0', [300, 250], 'banner-div-0')
.addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});

//Direct Rendering Video
var highestCpmBids = pbjs.getHighestCpmBids('video-div-1');
console.log("highestCpmBids", highestCpmBids);
if (highestCpmBids.length) {
var doc = document.getElementById('video-div-1');
console.log("highestCpmBids[0].adId", highestCpmBids[0].adId);
pbjs.renderAd(doc, highestCpmBids[0].adId);
}

// googletag.cmd.push(() => {
// googletag
// .defineSlot('/19968336/header-bid-tag-0', [640, 480], 'video-div-1')
// .addService(googletag.pubads());
// googletag.pubads().enableSingleRequest();
// googletag.enableServices();
// });

googletag.cmd.push(function () {
pbjs.que.push(function () {
const adUnitCodes = adUnits.map(adUnit => adUnit.code);
pbjs.setTargetingForGPTAsync(adUnitCodes);
googletag.pubads().refresh();
});
});
}
</script>

</head>
<body>
<h2>Prebid.js TPMN Banner Example</h2>
<div id='banner-div-0'>
<script>
googletag.cmd.push(function () {
googletag.display('banner-div-0');
});
</script>
</div>
<br>
<h2>Prebid.js TPMN Video Example</h2>
<div id='video-div-1' style="width: 640px; height: 480px;">
<script>
googletag.cmd.push(function () {
googletag.display('video-div-1');
});
</script>
</div>
<br>
<div id="targeting-keys"></div>
</body>
Loading