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

Prebid 7: Remove FLOC id submodule #8225

Merged
merged 34 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
8613312
Delete flocIdSystem.js
patmmccann Mar 28, 2022
1468f3b
Delete flocIdSystem.md
patmmccann Mar 28, 2022
5fca930
Update teadsBidAdapter.js
patmmccann Mar 28, 2022
1de2092
Update teadsBidAdapter_spec.js
patmmccann Mar 28, 2022
602dc54
Update ixBidAdapter.js
patmmccann Mar 28, 2022
e13649d
Update ixBidAdapter_spec.js
patmmccann Mar 28, 2022
dc2934f
Update pubmaticBidAdapter.js
patmmccann Mar 28, 2022
8315163
Update pubmaticBidAdapter_spec.js
patmmccann Mar 28, 2022
65734d6
Update ucfunnelBidAdapter.js
patmmccann Mar 28, 2022
0c2fd95
Update ucfunnelBidAdapter_spec.js
patmmccann Mar 28, 2022
49c33e6
Update userId_example.html
patmmccann Mar 28, 2022
a2554dd
Update .submodules.json
patmmccann Mar 28, 2022
2d48fbd
Update userId.md
patmmccann Mar 28, 2022
c743b22
Update userId.md
patmmccann Mar 28, 2022
c2b2cd7
Update userId_spec.js
patmmccann Mar 28, 2022
4007866
Update sharethroughBidAdapter.js
patmmccann Mar 28, 2022
7dccc2f
Update sharethroughBidAdapter_spec.js
patmmccann Mar 28, 2022
85adb4f
Update pixfutureBidAdapter.js
patmmccann Mar 28, 2022
88aba6d
Update winrBidAdapter.js
patmmccann Mar 28, 2022
cb1ab35
Update openxBidAdapter.js
patmmccann Mar 28, 2022
5e97e1a
Update openxBidAdapter_spec.js
patmmccann Mar 28, 2022
e3704d5
Update winrBidAdapter_spec.js
patmmccann Mar 28, 2022
8ff9172
Update goldbachBidAdapter.js
patmmccann Mar 28, 2022
4ba0959
Update bridgewellBidAdapter_spec.js
patmmccann Mar 28, 2022
28a65bf
Update mediafuseBidAdapter.js
patmmccann Mar 28, 2022
ed1cbf6
Update appnexusBidAdapter.js
patmmccann Mar 28, 2022
ff78313
Update appnexusBidAdapter_spec.js
patmmccann Mar 28, 2022
57ecb9c
Update userId_spec.js
patmmccann Mar 28, 2022
855ed4d
Update goldbachBidAdapter_spec.js
patmmccann Mar 28, 2022
893fe56
Update mediafuseBidAdapter_spec.js
patmmccann Mar 28, 2022
cadc8c9
Merge branch 'prebid-7' into delete-floc
patmmccann Apr 4, 2022
4c06655
Update userId_spec.js
patmmccann Apr 7, 2022
30967c9
Merge branch 'prebid-7' into delete-floc
patmmccann Apr 29, 2022
3a662df
Update userId_spec.js
patmmccann Apr 29, 2022
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
9 changes: 1 addition & 8 deletions integrationExamples/gpt/userId_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,7 @@
{
"name": "uid2"
}
,{
name: "flocId",
params: {
// Default sharedid.org token : "A3dHTSoNUMjjERBLlrvJSelNnwWUCwVQhZ5tNQ+sll7y+LkPPVZXtB77u2y7CweRIxiYaGwGXNlW1/dFp8VMEgIAAAB+eyJvcmlnaW4iOiJodHRwczovL3NoYXJlZGlkLm9yZzo0NDMiLCJmZWF0dXJlIjoiSW50ZXJlc3RDb2hvcnRBUEkiLCJleHBpcnkiOjE2MjYyMjA3OTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"
// To get new token, register https://developer.chrome.com/origintrials/#/trials/active for Federated Learning of Cohorts
token: "A3dHTSoNUMjjERBLlrvJSelNnwWUCwVQhZ5tNQ+sll7y+LkPPVZXtB77u2y7CweRIxiYaGwGXNlW1/dFp8VMEgIAAAB+eyJvcmlnaW4iOiJodHRwczovL3NoYXJlZGlkLm9yZzo0NDMiLCJmZWF0dXJlIjoiSW50ZXJlc3RDb2hvcnRBUEkiLCJleHBpcnkiOjE2MjYyMjA3OTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"
}
},
,
{
"name": "imuid",
"params": {
Expand Down
1 change: 0 additions & 1 deletion modules/.submodules.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"deepintentDpesIdSystem",
"dmdIdSystem",
"fabrickIdSystem",
"flocIdSystem",
"hadronIdSystem",
"haloIdSystem",
"id5IdSystem",
Expand Down
1 change: 0 additions & 1 deletion modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ export const spec = {
if (bidRequests[0].userId) {
let eids = [];

addUserId(eids, deepAccess(bidRequests[0], `userId.flocId.id`), 'chrome.com', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.criteoId`), 'criteo.com', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.netId`), 'netid.de', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.idl_env`), 'liveramp.com', null);
Expand Down
110 changes: 0 additions & 110 deletions modules/flocIdSystem.js

This file was deleted.

34 changes: 0 additions & 34 deletions modules/flocIdSystem.md

This file was deleted.

1 change: 0 additions & 1 deletion modules/goldbachBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ export const spec = {
if (bidRequests[0].userId) {
let eids = [];

addUserId(eids, deepAccess(bidRequests[0], `userId.flocId.id`), 'chrome.com', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.criteoId`), 'criteo.com', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.netId`), 'netid.de', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.idl_env`), 'liveramp.com', null);
Expand Down
16 changes: 2 additions & 14 deletions modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const PROVIDERS = [
'connectid',
'tapadId',
'quantcastId',
'flocId',
'pubProvidedId'
];
const REQUIRED_VIDEO_PARAMS = ['mimes', 'minduration', 'maxduration']; // note: protocol/protocols is also reqd
Expand Down Expand Up @@ -449,11 +448,10 @@ function getBidRequest(id, impressions, validBidRequests) {
* From the userIdAsEids array, filter for the ones our adserver can use, and modify them
* for our purposes, e.g. add rtiPartner
* @param {array} allEids userIdAsEids passed in by prebid
* @param {object} flocId flocId passed in by prebid
* @return {object} contains toSend (eids to send to the adserver) and seenSources (used to filter
* identity info from IX Library)
*/
function getEidInfo(allEids, flocData) {
function getEidInfo(allEids) {
let toSend = [];
let seenSources = {};
if (isArray(allEids)) {
Expand All @@ -471,16 +469,6 @@ function getEidInfo(allEids, flocData) {
}
}

const isValidFlocId = flocData && flocData.id && flocData.version;
if (isValidFlocId) {
const flocEid = {
'source': 'chrome.com',
'uids': [{ 'id': flocData.id, 'ext': { 'rtiPartner': 'flocId', 'ver': flocData.version } }]
};
toSend.push(flocEid);
seenSources['chrome.com'] = true;
}

return { toSend, seenSources };
}

Expand All @@ -498,7 +486,7 @@ function buildRequest(validBidRequests, bidderRequest, impressions, version) {
// Always use secure HTTPS protocol.
let baseUrl = SECURE_BID_URL;
// Get ids from Prebid User ID Modules
let eidInfo = getEidInfo(deepAccess(validBidRequests, '0.userIdAsEids'), deepAccess(validBidRequests, '0.userId.flocId'));
let eidInfo = getEidInfo(deepAccess(validBidRequests, '0.userIdAsEids'));
let userEids = eidInfo.toSend;
const pageUrl = getPageUrl() || deepAccess(bidderRequest, 'refererInfo.referer');

Expand Down
1 change: 0 additions & 1 deletion modules/mediafuseBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ export const spec = {
if (bidRequests[0].userId) {
let eids = [];

addUserId(eids, deepAccess(bidRequests[0], `userId.flocId.id`), 'chrome.com', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.criteoId`), 'criteo.com', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.netId`), 'netid.de', null);
addUserId(eids, deepAccess(bidRequests[0], `userId.idl_env`), 'liveramp.com', null);
Expand Down
4 changes: 0 additions & 4 deletions modules/openxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const USER_ID_CODE_TO_QUERY_ARG = {
tapadId: 'tapadid', // Tapad Id
tdid: 'ttduuid', // The Trade Desk Unified ID
uid2: 'uid2', // Unified ID 2.0
flocId: 'floc', // Chrome FLoC,
admixerId: 'admixerid', // AdMixer ID
deepintentId: 'deepintentid', // DeepIntent ID
dmdId: 'dmdid', // DMD Marketing Corp ID
Expand Down Expand Up @@ -350,9 +349,6 @@ function appendUserIdsToQueryParams(queryParams, userIds) {
case 'merkleId':
queryParams[key] = userIdObjectOrValue.id;
break;
case 'flocId':
queryParams[key] = userIdObjectOrValue.id;
break;
case 'uid2':
queryParams[key] = userIdObjectOrValue.id;
break;
Expand Down
1 change: 0 additions & 1 deletion modules/pixfutureBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export const spec = {
if (validBidRequests[0].userId) {
let eids = [];

addUserId(eids, deepAccess(validBidRequests[0], `userId.flocId.id`), 'chrome.com', null);
addUserId(eids, deepAccess(validBidRequests[0], `userId.criteoId`), 'criteo.com', null);
addUserId(eids, deepAccess(validBidRequests[0], `userId.unifiedId`), 'thetradedesk.com', null);
addUserId(eids, deepAccess(validBidRequests[0], `userId.id5Id`), 'id5.io', null);
Expand Down
64 changes: 0 additions & 64 deletions modules/pubmaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ const dealChannelValues = {
6: 'PMPG'
};

const FLOC_FORMAT = {
'EID': 1,
'SEGMENT': 2
}
// BB stands for Blue BillyWig
const BB_RENDERER = {
bootstrapPlayer: function(bid) {
Expand Down Expand Up @@ -800,67 +796,8 @@ function _addFloorFromFloorModule(impObj, bid) {
logInfo(LOG_WARN_PREFIX, 'new impObj.bidfloor value:', impObj.bidfloor);
}

function _getFlocId(validBidRequests, flocFormat) {
var flocIdObject = null;
var flocId = deepAccess(validBidRequests, '0.userId.flocId');
if (flocId && flocId.id) {
switch (flocFormat) {
case FLOC_FORMAT.SEGMENT:
flocIdObject = {
id: 'FLOC',
name: 'FLOC',
ext: {
ver: flocId.version
},
segment: [{
id: flocId.id,
name: 'chrome.com',
value: flocId.id.toString()
}]
}
break;
case FLOC_FORMAT.EID:
default:
flocIdObject = {
source: 'chrome.com',
uids: [
{
atype: 1,
id: flocId.id,
ext: {
ver: flocId.version
}
},
]
}
break;
}
}
return flocIdObject;
}

function _handleFlocId(payload, validBidRequests) {
var flocObject = _getFlocId(validBidRequests, FLOC_FORMAT.SEGMENT);
if (flocObject) {
if (!payload.user) {
payload.user = {};
}
if (!payload.user.data) {
payload.user.data = [];
}
payload.user.data.push(flocObject);
}
}

function _handleEids(payload, validBidRequests) {
let bidUserIdAsEids = deepAccess(validBidRequests, '0.userIdAsEids');
let flocObject = _getFlocId(validBidRequests, FLOC_FORMAT.EID);
if (flocObject) {
if (!bidUserIdAsEids) {
bidUserIdAsEids = [];
}
bidUserIdAsEids.push(flocObject);
}
if (isArray(bidUserIdAsEids) && bidUserIdAsEids.length > 0) {
deepSetValue(payload, 'user.eids', bidUserIdAsEids);
}
Expand Down Expand Up @@ -1206,7 +1143,6 @@ export const spec = {

_handleEids(payload, validBidRequests);

_handleFlocId(payload, validBidRequests);
// First Party Data
const commonFpd = config.getConfig('ortb2') || {};
if (commonFpd.site) {
Expand Down
10 changes: 0 additions & 10 deletions modules/sharethroughBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,6 @@ function getBidRequestFloor(bid) {

function userIdAsEids(bidRequest) {
const eids = createEidsArray(deepAccess(bidRequest, 'userId')) || [];

const flocData = deepAccess(bidRequest, 'userId.flocId');
const isFlocIdValid = flocData && flocData.id && flocData.version;
if (isFlocIdValid) {
eids.push({
source: 'chrome.com',
uids: [{ id: flocData.id, atype: 1, ext: { ver: flocData.version } }],
});
}

return eids;
}

Expand Down
15 changes: 0 additions & 15 deletions modules/teadsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const spec = {
data: bids,
deviceWidth: screen.width,
hb_version: '$prebid.version$',
...getFLoCParameters(deepAccess(validBidRequests, '0.userId.flocId')),
...getUnifiedId2Parameter(deepAccess(validBidRequests, '0.userId.uid2')),
...getFirstPartyTeadsIdParameter()
};
Expand Down Expand Up @@ -237,20 +236,6 @@ function _validateId(id) {
return (parseInt(id) > 0);
}

/**
* Get FLoC parameters to be sent in the bid request.
* @param `{id: string, version: string} | undefined` optionalFlocId FLoC user ID object available if "flocIdSystem" module is enabled.
* @returns `{} | {cohortId: string} | {cohortVersion: string} | {cohortId: string, cohortVersion: string}`
*/
function getFLoCParameters(optionalFlocId) {
if (!optionalFlocId) {
return {};
}
const cohortId = optionalFlocId.id ? { cohortId: optionalFlocId.id } : {};
const cohortVersion = optionalFlocId.version ? { cohortVersion: optionalFlocId.version } : {};
return { ...cohortId, ...cohortVersion };
}

/**
* Get unified ID v2 parameter to be sent in bid request.
* @param `{id: string} | undefined` optionalUid2 uid2 user ID object available if "uid2IdSystem" module is enabled.
Expand Down
Loading