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

Eng 6525 update to 4.31.0 #109

Merged
merged 146 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
6896e53
Increment pre version
robertrmartinez Jan 27, 2021
438b0b0
Fix astraoneBidAdapter (#6230)
lizakobrazova Jan 27, 2021
b7ec359
update banner ttl (#6228)
stevealliance Jan 28, 2021
4f2af66
browsi: updating test parameters (#6048)
bretg Jan 28, 2021
5f56b18
SpotX Bid Adapter: default to 4/3 aspect ratio when response doesn't …
agdillon Jan 28, 2021
a926dee
Extended ID permissions supported by bidder (#6112)
YerkovichM Jan 28, 2021
524efda
Relevant Yield analytics adapter (#6195)
samuel-palmer-relevant-digital Jan 28, 2021
136ad4c
Pubmatic: fix issue where using an adUnit outstream renderer throws …
pm-shashank-jain Jan 28, 2021
f613117
Malltv Bid Adapter : added data object as a param (#6232)
Jan 29, 2021
25dd35c
support setting coopSync in s2sConfig (#6213)
msm0504 Feb 1, 2021
e60d10b
Revert "support setting coopSync in s2sConfig (#6213)" (#6249)
bretg Feb 1, 2021
802cfd0
pbsBidAdapter: change order of client syncs (#6248)
bretg Feb 2, 2021
99c1256
pass a flag back to ID5 servers if abTesting was enabled by the publi…
smenzer Feb 2, 2021
62e2169
appneuxs Bid Adapter - add support for identitylink userId (#6245)
jsnellbaker Feb 3, 2021
6a8f953
Update britepoolIdSystem.md (#6254)
patmmccann Feb 3, 2021
c954276
UNICORN Adapter - accept multiple formats (#6255)
ctylim Feb 3, 2021
8c0c7ab
ATS-analytics - add comment clarifying ownership of atsAnalytics (#6257)
mamatic Feb 3, 2021
951f1e4
[ParrableIdSystem] Ensure base64 payload is url-safe (#6258)
icflournoy Feb 3, 2021
17ce376
Keywords + Screen resolution + CPU Core (#6259)
richaudience Feb 3, 2021
3e99b0d
Rubicon Analytics: Fire event once gptSlots render (#6241)
robertrmartinez Feb 3, 2021
d1900a9
New dimension for tracking name of the matching adUnit pattern (#6252)
robertrmartinez Feb 3, 2021
f704369
Adhese Bid Adapter: Per adunit targets (#6256)
mefjush Feb 3, 2021
97e5351
Gjirafa Bid Adapter: added data object as a param (#6231)
Feb 3, 2021
f8d42ba
Fix a TypeError when message event source is not available (#6224)
cciocov Feb 3, 2021
5504f12
fix broken tests due to "encoded" base64 logic (#6268)
harpere Feb 3, 2021
eed6db7
Adkernel Bid Adapter: stringads alias added (#6262)
ckbo3hrk Feb 3, 2021
4d1e906
Revert "Extended ID permissions supported by bidder (#6112)" (#6269)
jsnellbaker Feb 3, 2021
a4c6efa
Prebid 4.25.0 Release
Feb 3, 2021
6cbb15e
Increment pre version
Feb 3, 2021
28cbd29
smartxBidAdapter: new Feature - Made Out-Stream Player configurable (…
Skylinar Feb 4, 2021
11a925d
Idl1 (#6242)
SKOCHERI Feb 4, 2021
4e1be70
Add the trade desk gvlid (#6263)
muuki88 Feb 4, 2021
cca2029
pick up wrapper family detail (#6272)
robertrmartinez Feb 4, 2021
da13bda
Add user sync (#6244)
Adprime Feb 4, 2021
1cd714f
Zeotap id plus gvlid (#6260)
shikharsharma-zeotap Feb 4, 2021
da1a6e9
adWMG adapter: add new parameter, fix minor bugs (#6265)
nyakove Feb 4, 2021
0a33349
[ParrableIdSystem] Supply iframe state to backend (#6278)
icflournoy Feb 4, 2021
8f77660
Bid Viewability Module (#6206)
pm-harshad-mane Feb 5, 2021
8d464b6
disable webdriver tests in trionBidAdapter spec (#6280)
jsnellbaker Feb 5, 2021
ccd570b
[ParrableIdSystem] Supply Prebid library version to backend (#6279)
icflournoy Feb 5, 2021
86516ab
[ParrableIdSystem] Accept list of partners as an array or string (#6277)
icflournoy Feb 5, 2021
b7dcdf9
Rubicon Bid Adapter FPD Update (#6122)
mmoschovas Feb 7, 2021
2640d08
ID5 User Id Module: update a/b testing to be user based not request b…
smenzer Feb 8, 2021
727bf20
Shared ID gdpr support (#6275)
bjorn-lw Feb 8, 2021
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
5204b17
Merge tag '4.31.0' of github.com:prebid/Prebid.js into ENG-6525-updat…
Mar 19, 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
8 changes: 7 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function makeWebpackPkg() {

const analyticsSources = helpers.getAnalyticsSources();
const moduleSources = helpers.getModulePaths(externalModules);
const modulesString = (externalModules.length > 0) ? externalModules.join(', ') : 'All available modules in current version.';
const modulesString = getModulesListToAddInBanner(externalModules);

return gulp.src([].concat(moduleSources, analyticsSources, 'src/prebid.js'))
.pipe(helpers.nameModules(externalModules))
Expand All @@ -167,6 +167,10 @@ function makeWebpackPkg() {
.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 @@ -216,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
48 changes: 23 additions & 25 deletions integrationExamples/gpt/jwplayerRtdProvider_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,30 @@
var PREBID_TIMEOUT = 1000;

var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
fpd: {
context: {
data: {
jwTargeting: {
// Note: the following Ids are placeholders and should be replaced with your Ids.
playerID: '123',
mediaID: 'abc'
code: 'div-gpt-ad-1460505748561-0',
ortb2Imp: {
ext: {
data: {
jwTargeting: {
// Note: the following Ids are placeholders and should be replaced with your Ids.
playerID: '123',
mediaID: 'abc'
}
}
}
},
}
},

mediaTypes: {
banner: {
sizes: [[300, 250], [300,600]],
}
},
// Replace this object to test a new Adapter!
bids: [{
bidder: 'appnexus',
params: {
placementId: 13144370
}
}]

},
mediaTypes: {
banner: {
sizes: [[300, 250], [300,600]],
}
},
// Replace this object to test a new Adapter!
bids: [{
bidder: 'appnexus',
params: {
placementId: 13144370
}
}]
}];

var pbjs = pbjs || {};
Expand Down
19 changes: 14 additions & 5 deletions integrationExamples/gpt/permutiveRtdProvider_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
params: {
placementId: 13144370,
keywords: {
inline_kvs: ['1']
test_kv: ['true']
}
}
},
Expand All @@ -64,7 +64,7 @@
area: ['home']
},
visitor: {
inline_kvs: ['1']
test_kv: ['true']
}
}
},
Expand All @@ -78,12 +78,21 @@
{
settings: {},
targeting: {
inline_kvs: ['1', '2', '3', '4']
test_kv: ['true']
}
}
],
ozoneData: {}
}
},
{
bidder: 'trustx',
params: {
uid: 45,
keywords: {
test_kv: ['true']
}
}
}
]
},
Expand Down Expand Up @@ -127,13 +136,13 @@
pbjs.setConfig({
debug: true,
realTimeData: {
auctionDelay: 50, // maximum time for RTD modules to respond
auctionDelay: 80, // maximum time for RTD modules to respond
dataProviders: [
{
name: 'permutive',
waitForIt: true,
params: {
acBidders: ['appnexus', 'rubicon', 'ozone'],
acBidders: ['appnexus', 'rubicon', 'ozone', 'trustx'],
maxSegs: 500,
overwrites: {
rubicon: function (bid, data, acEnabled, utils, defaultFn) {
Expand Down
3 changes: 2 additions & 1 deletion modules/.submodules.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"fabrickIdSystem",
"verizonMediaIdSystem",
"pubProvidedIdSystem",
"tapadIdSystem"
"tapadIdSystem",
"novatiqIdSystem"
],
"adpod": [
"freeWheelAdserverVideo",
Expand Down
116 changes: 113 additions & 3 deletions modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import sha256 from 'crypto-js/sha256.js';
import { getStorageManager } from '../src/storageManager.js';
import { getRefererInfo } from '../src/refererDetection.js';
import { createEidsArray } from './userId/eids.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { Renderer } from '../src/Renderer.js';
import { OUTSTREAM } from '../src/video.js';

export const BIDDER_CODE = 'adagio';
export const LOG_PREFIX = 'Adagio:';
export const VERSION = '2.6.0';
export const VERSION = '2.7.0';
export const FEATURES_VERSION = '1';
export const ENDPOINT = 'https://mp.4dex.io/prebid';
export const SUPPORTED_MEDIA_TYPES = [BANNER, VIDEO];
export const SUPPORTED_MEDIA_TYPES = [BANNER, NATIVE, VIDEO];
export const ADAGIO_TAG_URL = 'https://script.4dex.io/localstore.js';
export const ADAGIO_LOCALSTORAGE_KEY = 'adagioScript';
export const GVLID = 617;
Expand Down Expand Up @@ -687,6 +687,112 @@ function _renderer(bid) {
});
}

function _parseNativeBidResponse(bid) {
if (!bid.admNative || !Array.isArray(bid.admNative.assets)) {
utils.logError(`${LOG_PREFIX} Invalid native response`);
return;
}

const native = {}

function addAssetDataValue(data) {
const map = {
1: 'sponsoredBy', // sponsored
2: 'body', // desc
3: 'rating',
4: 'likes',
5: 'downloads',
6: 'price',
7: 'salePrice',
8: 'phone',
9: 'address',
10: 'body2', // desc2
11: 'displayUrl',
12: 'cta'
}
if (map.hasOwnProperty(data.type) && typeof data.value === 'string') {
native[map[data.type]] = data.value;
}
}

// assets
bid.admNative.assets.forEach(asset => {
if (asset.title) {
native.title = asset.title.text
} else if (asset.data) {
addAssetDataValue(asset.data)
} else if (asset.img) {
switch (asset.img.type) {
case 1:
native.icon = {
url: asset.img.url,
width: asset.img.w,
height: asset.img.h
};
break;
default:
native.image = {
url: asset.img.url,
width: asset.img.w,
height: asset.img.h
};
break;
}
}
});

if (bid.admNative.link) {
if (bid.admNative.link.url) {
native.clickUrl = bid.admNative.link.url;
}
if (Array.isArray(bid.admNative.link.clickTrackers)) {
native.clickTrackers = bid.admNative.link.clickTrackers
}
}

if (Array.isArray(bid.admNative.eventtrackers)) {
native.impressionTrackers = [];
bid.admNative.eventtrackers.forEach(tracker => {
// Only Impression events are supported. Prebid does not support Viewability events yet.
if (tracker.event !== 1) {
return;
}

// methods:
// 1: image
// 2: js
// note: javascriptTrackers is a string. If there's more than one JS tracker in bid response, the last script will be used.
switch (tracker.method) {
case 1:
native.impressionTrackers.push(tracker.url);
break;
case 2:
native.javascriptTrackers = `<script src=\"${tracker.url}\"></script>`;
break;
}
});
} else {
native.impressionTrackers = Array.isArray(bid.admNative.imptrackers) ? bid.admNative.imptrackers : [];
if (bid.admNative.jstracker) {
native.javascriptTrackers = bid.admNative.jstracker;
}
}

if (bid.admNative.privacy) {
native.privacyLink = bid.admNative.privacy;
}

if (bid.admNative.ext) {
native.ext = {}

if (bid.admNative.ext.bvw) {
native.ext.adagio_bvw = bid.admNative.ext.bvw;
}
}

bid.native = native
}

export const spec = {
code: BIDDER_CODE,
gvlid: GVLID,
Expand Down Expand Up @@ -873,6 +979,10 @@ export const spec = {
}
}

if (bidObj.mediaType === NATIVE) {
_parseNativeBidResponse(bidObj);
}

bidObj.site = bidReq.params.site;
bidObj.placement = bidReq.params.placement;
bidObj.pagetype = bidReq.params.pagetype;
Expand Down
60 changes: 56 additions & 4 deletions modules/adagioBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Connects to Adagio demand source to fetch bids.
category: 'sport', // Recommended. Category of the content displayed in the page.
subcategory: 'handball', // Optional. Subcategory of the content displayed in the page.
postBid: false, // Optional. Use it in case of Post-bid integration only.
useAdUnitCodeAsAdUnitElementId: false // Optional. Use it by-pass adUnitElementId and use the adUnit code as value
useAdUnitCodeAsPlacement: false // Optional. Use it to by-pass placement and use the adUnit code as value
useAdUnitCodeAsAdUnitElementId: false, // Optional. Use it by-pass adUnitElementId and use the adUnit code as value
useAdUnitCodeAsPlacement: false, // Optional. Use it to by-pass placement and use the adUnit code as value
// Optional debug mode, used to get a bid response with expected cpm.
debug: {
enabled: true,
Expand Down Expand Up @@ -78,8 +78,8 @@ Connects to Adagio demand source to fetch bids.
category: 'sport', // Recommended. Category of the content displayed in the page.
subcategory: 'handball', // Optional. Subcategory of the content displayed in the page.
postBid: false, // Optional. Use it in case of Post-bid integration only.
useAdUnitCodeAsAdUnitElementId: false // Optional. Use it by-pass adUnitElementId and use the adUnit code as value
useAdUnitCodeAsPlacement: false // Optional. Use it to by-pass placement and use the adUnit code as value
useAdUnitCodeAsAdUnitElementId: false, // Optional. Use it by-pass adUnitElementId and use the adUnit code as value
useAdUnitCodeAsPlacement: false, // Optional. Use it to by-pass placement and use the adUnit code as value
video: {
skip: 0
// OpenRTB 2.5 video options defined here override ones defined in mediaTypes.
Expand All @@ -91,6 +91,58 @@ Connects to Adagio demand source to fetch bids.
}
}
}]
},
{
code: 'article_native',
mediaTypes: {
native: {
// generic Prebid options
title: {
required: true,
len: 80
},
// …
// Custom Adagio data assets
ext: {
adagio_bvw: {
required: false
}
}
}
},
bids: [{
bidder: 'adagio', // Required
params: {
organizationId: '1002', // Required - Organization ID provided by Adagio.
site: 'adagio-io', // Required - Site Name provided by Adagio.
placement: 'in_article', // Required. Refers to the placement of an adunit in a page. Must not contain any information about the type of device. Other example: `mpu_btf'.
adUnitElementId: 'article_native', // Required - AdUnit element id. Refers to the adunit id in a page. Usually equals to the adunit code above.

// The following params are limited to 30 characters,
// and can only contain the following characters:
// - alphanumeric (A-Z+a-z+0-9, case-insensitive)
// - dashes `-`
// - underscores `_`
// Also, each param can have at most 50 unique active values (case-insensitive).
pagetype: 'article', // Highly recommended. The pagetype describes what kind of content will be present in the page.
environment: 'mobile', // Recommended. Environment where the page is displayed.
category: 'sport', // Recommended. Category of the content displayed in the page.
subcategory: 'handball', // Optional. Subcategory of the content displayed in the page.
postBid: false, // Optional. Use it in case of Post-bid integration only.
useAdUnitCodeAsAdUnitElementId: false, // Optional. Use it by-pass adUnitElementId and use the adUnit code as value
useAdUnitCodeAsPlacement: false, // Optional. Use it to by-pass placement and use the adUnit code as value
// Optional OpenRTB Native 1.2 request object. Only `context`, `plcmttype` fields are supported.
native: {
context: 1,
plcmttype: 2
},
// Optional debug mode, used to get a bid response with expected cpm.
debug: {
enabled: true,
cpm: 3.00 // default to 1.00
}
}
}]
}
];

Expand Down
8 changes: 6 additions & 2 deletions modules/admixerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const spec = {
buildRequests: function (validRequest, bidderRequest) {
const payload = {
imps: [],
fpd: config.getConfig('fpd')
fpd: config.getLegacyFpd(config.getConfig('ortb2'))
};
let endpointUrl;
if (bidderRequest) {
Expand All @@ -42,7 +42,11 @@ export const spec = {
}
}
validRequest.forEach((bid) => {
payload.imps.push(bid);
let imp = {};
Object.keys(bid).forEach(key => {
(key === 'ortb2Imp') ? imp.fpd = config.getLegacyImpFpd(bid[key]) : imp[key] = bid[key];
});
payload.imps.push(imp);
});
const payloadString = JSON.stringify(payload);
return {
Expand Down
Loading