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

merge master #18

Merged
merged 152 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
ac37f9b
Mobfox Bid Adapter : add gpp support (#10532)
mobfxoHB Sep 26, 2023
0c7b14d
Fix bug Not Passing GPP Consent Object as a string (#10530)
MartinGumGum Sep 26, 2023
93bf6ef
Integr8 Bid Adapter : updated endpoint URL (#10535)
ZikaMyhedin Sep 26, 2023
2995c27
Updated site.page source due to potential fault (#10508)
vrtcal-dev Sep 26, 2023
069d86b
Qortex RTD Provider: initial release (#10480)
Sep 26, 2023
a8753d5
update appnexus PBS default configs (#10503)
jsnellbaker Sep 27, 2023
8da686e
viantOrtbBidAdapter - update contact information in md file (#10538)
tkrishnaviant Sep 27, 2023
e0f80a4
Dxkulture Bid Adapter: changing default video placement value (#10473)
dani-nova Sep 27, 2023
e4c1349
PubmaticAnalyticsAdapter: add prebid version in logger call (#10531)
pm-priyanka-deshmane Sep 27, 2023
4f7fcc8
Core: do not log errors about invalid XML when serializing XHR object…
dgirardi Sep 27, 2023
94a3e5b
Illumin Bid Adapter: initial release (#10375)
saar120 Sep 27, 2023
24fc39d
Alkimi bid adapter: Resolve AUCTION_PRICE macro for VAST ads (#10536)
kalidas-alkimi Sep 28, 2023
702bbbe
AcuityAds Bid Adapter: add gpp support (#10544)
AcuityAdsIntegrations Sep 28, 2023
6c7356a
Oxxion Rtd Module: cleaning and change in sampling (#10539)
matthieularere-msq Sep 29, 2023
4178c55
Prebid 8.17.0 release
prebidjs-release Sep 29, 2023
fa8f9c1
Increment version to 8.18.0-pre
prebidjs-release Sep 29, 2023
c4b0aff
Concert Bid Adapter: add TDID (#10549)
Skitelman Sep 29, 2023
5a1ebad
Sharethrough Bid Adapter: revise getUserSyncs method (#10556)
jefftmahoney Oct 2, 2023
ef0a7c8
New adapter Edge226 (#10489)
Edge226Ads Oct 3, 2023
7600b38
NoBid Bid Adapter : add support for first party user id (#10519)
redaguermas Oct 3, 2023
bad2d69
Liveintent & UID2 ID systems: share EID configuration (#10559)
dgirardi Oct 3, 2023
2ad6400
GumGum Bid Adapter: Send pubProvidedId in the query string (#10561)
MartinGumGum Oct 3, 2023
2905b4c
RAS Bid Adapter: fledge support (#10477)
wsusrasp Oct 3, 2023
a2fc26a
Lm_Kiviads Bid Adapter : initial adapter release (#10415)
KiviAds Oct 3, 2023
b7ff9fe
Outbrain adapter: Read OB user token from local storage (#10382)
markkuhar Oct 3, 2023
dea49c2
Fix getAdUnitSize location (#10563)
ChrisHuie Oct 3, 2023
8cb373c
imds Bid Adapter : fix incorrectly named user sync property (#10562)
ecammit Oct 4, 2023
1155fb9
Preciso BidAdapter : modified BidderRequest params (#10569)
PrecisoSRL Oct 4, 2023
5cb4bcb
Core & currency module: fix bug where bid responses are collected aft…
dgirardi Oct 4, 2023
fd8af62
Mediasquare Bid Adapter: add attribute to track (#10571)
matthieularere-msq Oct 4, 2023
3f95c97
LiveIntent UserId module: Add support for openx and pubmatic id (#10…
peixunzhang Oct 4, 2023
3396f47
IX Bid Adapter: add support for signaling privacy sandbox (fledge) au…
shahinrahbariasl Oct 4, 2023
8f10237
consentManagementUsp: fix bug where data deletion events are triggere…
dgirardi Oct 4, 2023
7c5d169
Oxxion Analytics Adapter : changes in bidwon (#10564)
matthieularere-msq Oct 5, 2023
2f6089e
YahooAds Bid Adapter: Documentation update (#10576)
slimkrazy Oct 5, 2023
ee9ad4c
DFP Ad Server Video: bugfix - encode description url (#10575)
karimMourra Oct 5, 2023
b1b6ab9
Prebid 8.18.0 release
prebidjs-release Oct 5, 2023
2c878c7
Increment version to 8.19.0-pre
prebidjs-release Oct 5, 2023
25bd335
Doceree Bid Adaptor: bidwon and timeout hooks added (#10543)
sourbh-doceree Oct 6, 2023
9554607
minduration non-required (#10581)
ikagotso Oct 6, 2023
2ffe786
Bliink Bid Adapter: enhance request data with eids, bidFloor, device …
Niass Oct 6, 2023
503f998
Add gvlid for OperaAds module (#10586)
yuansi-piao Oct 8, 2023
2be3110
Dgkeyword Bid Adapter : use ortb2 for keywords (#10542)
yki-t Oct 9, 2023
c4bf6ae
Smartyads Bid Adapter : add_regions (#10545)
rishko00 Oct 10, 2023
1a40e59
Kargo Bid Adapter: adding site to Kargo adapter (#10589)
njflynn Oct 10, 2023
fe8918e
AdMatic Bid Adapter: add model param (#10585)
fatihkaya84 Oct 10, 2023
353bad4
add ortb2Imp in Greenbids analytics module payload (#10591)
jbogp Oct 10, 2023
6c7f17f
Prebid core: cached bids should contain the ID of the auction they ac…
msmeza Oct 10, 2023
e86dfcf
Underdogmedia Bid Adapter: Update pbTimeout Assignment (#10466)
kevpark02 Oct 10, 2023
82ef88f
Adspirit Bid Adapter : initial release (#10494)
carsten1980 Oct 11, 2023
489e242
Revert "Adspirit Bid Adapter : initial release (#10494)" (#10595)
ChrisHuie Oct 11, 2023
695da70
Bucksense bid adapter: add missing gvlid (#10600)
ssorleti Oct 12, 2023
de82bae
VRTCAL Bid Adapter : updated user sync support (#10579)
vrtcal-dev Oct 12, 2023
86736ac
Utiq ID submodule: Update submodule name and parameters (#10587)
jkthomas Oct 12, 2023
e1f446c
add rtd module to submodules (#10603)
Oct 13, 2023
2b3426d
Revert "Utiq ID submodule: Update submodule name and parameters (#105…
patmmccann Oct 13, 2023
726633d
Prebid 8.19.0 release
prebidjs-release Oct 13, 2023
ba25f22
Increment version to 8.20.0-pre
prebidjs-release Oct 13, 2023
ea39308
PubmaticBidAdapter: Read and pass gpid from ortb2imp.ext in API call …
pm-priyanka-deshmane Oct 13, 2023
5f0e374
IX Bid Adapter: add EUID abd Criteo to EID allowlist (#10609)
sajidbsk Oct 16, 2023
59cbc9c
Adman Bid Adapter: refactoring gdpr consent string (#10599)
SmartyAdman Oct 16, 2023
665f356
Kargo Bid Adapter: Updates to GPID retrieval (#10618)
jsadwith Oct 17, 2023
20bbae2
Various modules: Received spelling (#10616)
patmmccann Oct 17, 2023
3f6819b
FreeWheel Bid Adapter: support passing content object in config (#10588)
xwang202 Oct 17, 2023
4a3fcf5
Zeta Global SSP Bid Adapter: change required parameters. (#10597)
abermanov-zeta Oct 17, 2023
0dc6240
Bump @babel/traverse from 7.20.1 to 7.23.2 (#10625)
dependabot[bot] Oct 18, 2023
f0f70f3
SmartyadsBidAdapter/add_gvlid (#10626)
rishko00 Oct 18, 2023
52aeed0
Prebid 8.20.0 release
prebidjs-release Oct 19, 2023
b42e337
Increment version to 8.21.0-pre
prebidjs-release Oct 19, 2023
b4296cd
DXKulture Bid Adapter: implementing ORTB conversion library (#10584)
bev-devops Oct 20, 2023
6f778da
Add MediaBrama apater (#10518)
Mediabrama Oct 20, 2023
db9d236
LiveIntent UserId module: update LiveConnect dependency; fix caching …
3link Oct 20, 2023
d0e981b
UID2: support Client-side token generation and build tag (#10510)
jingyi-gao-ttd Oct 23, 2023
6f51f68
Jixie Bid Adapter : support ids extraction based on config object and…
jxdeveloper1 Oct 23, 2023
0a2187c
Bump crypto-js from 3.3.0 to 4.2.0 (#10645)
dependabot[bot] Oct 27, 2023
559206e
Update criteo id system to comply with storage.type (#10630)
leonardlabat Oct 27, 2023
34070eb
UID2 module: Add documentation for cstg (#10629)
jingyi-gao-ttd Oct 27, 2023
24a90d3
PBjs Core : Update RTDs not in .submodules (#10608)
ChrisHuie Oct 27, 2023
f40a324
Yahoo ConnectId - backend sync updates. (#10590)
radubarbos Oct 27, 2023
54e5cb1
Flipp Bid Adapter: add additional check for userKey value, update doc…
mike-lei Oct 27, 2023
838b947
include query string in page parameter (#10644)
snigelweb Oct 27, 2023
f9df72a
use gvlid for showheroes bidder (#10640)
FilipStamenkovic Oct 27, 2023
63214ee
remove coppa getConfig (#10651)
ChrisHuie Oct 27, 2023
ee63e1b
Adagio: adapt video outstream implementation details (#10633)
soupape34 Oct 27, 2023
0a18cdc
Sparteo Bid Adapter: initial release (#10582)
geoffray-viously Oct 27, 2023
fabbbf1
A1media Bid Adpater: resolve AUCTION_PRICE macro (#10624)
ChangsikChoi Oct 27, 2023
6a1fc2e
Connatix Bid Adapter : update PlayerId, CustomerId and Referrer (#10604)
rares-mihai-preda Oct 27, 2023
fb3a6d6
Prebid 8.21.0 release
prebidjs-release Oct 27, 2023
8eff469
Increment version to 8.22.0-pre
prebidjs-release Oct 27, 2023
faff309
Discovery Bid Adapter: add adUnitCode, gpid, and adslot (#10615)
ecoeco163 Oct 27, 2023
0e61728
Programmatica Bid Adapter : initial release (#10598)
Hamper Oct 30, 2023
5bea607
Impactify Bid Adapter : add different mediatypes and manage local sto…
thomasdseao Oct 30, 2023
56292c4
dynamicAdBoostModule: New module (#10377)
adxpremium Oct 30, 2023
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
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
1 change: 0 additions & 1 deletion PR_REVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ Follow steps above for general review process. In addition, please verify the fo
- Adapters that accept a floor parameter must also support the [floors module](https://docs.prebid.org/dev-docs/modules/floors.html) -- look for a call to the `getFloor()` function.
- Adapters cannot accept an schain parameter. Rather, they must look for the schain parameter at bidRequest.schain.
- The bidderRequest.refererInfo.referer must be checked in addition to any bidder-specific parameter.
- If they're getting the COPPA flag, it must come from config.getConfig('coppa');
- Page position must come from bidrequest.mediaTypes.banner.pos or bidrequest.mediaTypes.video.pos
- Global OpenRTB fields should come from [getConfig('ortb2');](https://docs.prebid.org/dev-docs/publisher-api-reference/setConfig.html#setConfig-fpd):
- bcat, battr, badv
Expand Down
3 changes: 2 additions & 1 deletion features.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
"NATIVE",
"VIDEO"
"VIDEO",
"UID2_CSTG"
]
30 changes: 17 additions & 13 deletions integrationExamples/gpt/hello_world.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
-->

<html>

<head>
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
Expand All @@ -19,9 +20,10 @@
code: 'div-gpt-ad-1460505748561-0',
mediaTypes: {
banner: {
sizes: [[300, 250], [300,600]],
sizes: [[300, 250]],
}
},

// Replace this object to test a new Adapter!
bids: [{
bidder: 'appnexus',
Expand All @@ -40,12 +42,13 @@
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function() {
googletag.cmd.push(function () {
googletag.pubads().disableInitialLoad();
});

pbjs.que.push(function() {
pbjs.que.push(function () {
pbjs.addAdUnits(adUnits);

pbjs.requestBids({
bidsBackHandler: sendAdserverRequest,
timeout: PREBID_TIMEOUT
Expand All @@ -55,15 +58,15 @@
function sendAdserverRequest() {
if (pbjs.adserverRequestSent) return;
pbjs.adserverRequestSent = true;
googletag.cmd.push(function() {
pbjs.que.push(function() {
googletag.cmd.push(function () {
pbjs.que.push(function () {
pbjs.setTargetingForGPTAsync();
googletag.pubads().refresh();
});
});
}

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

Expand All @@ -80,12 +83,13 @@
</head>

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

</html>
40 changes: 25 additions & 15 deletions integrationExamples/gpt/prebidServer_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,41 @@

pbjs.que.push(function() {
var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
bids: [
{
bidder: 'appnexus',
params: {
placementId: 13144370
}
code: 'div-gpt-ad-1460505748561-0',
mediaTypes: {
banner: {
sizes: [600, 500]
}
},
bids: [
{
bidder: 'appnexus',
params: {
placementId: 12883451
}
]
}];
}
]
}];

pbjs.bidderSettings = {
appnexus: {
bidCpmAdjustment: function () {
return 10;
}
}
}
pbjs.setConfig({
bidderTimeout: 3000,
s2sConfig : {
accountId : '1',
enabled : true, //default value set to false
defaultVendor: 'appnexus',
defaultVendor: 'appnexuspsp',
bidders : ['appnexus'],
timeout : 1000, //default value is 1000
adapter : 'prebidServer', //if we have any other s2s adapter, default value is s2s
},
ortb2: {
test: 1
}
});

Expand Down
2 changes: 1 addition & 1 deletion integrationExamples/gpt/prebidServer_fledge_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
s2sConfig: [{
accountId : '1',
enabled : true,
defaultVendor: 'appnexus',
defaultVendor: 'appnexuspsp',
bidders : ['openx'],
timeout : 1500,
adapter : 'prebidServer'
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