Merge pull request #569 from PubMatic/UOE-11010#575
Merge pull request #569 from PubMatic/UOE-11010#575pm-nitin-shirsat wants to merge 189 commits intoUOE-11674from
Conversation
… resume execution
sync with nightly
Rebase with nightly
17th Dec release - Bid pooling
Phase 1.5 changes
Sync with nightly and taking phase 1.5 changes
Phase03 consent management changes
Merging Nightly 24nov into prebid upgrade branch
Yield Optimization & Consent Management Phase 03
Prebid upgrade 10.15
| { regex: /fxios\/([-\w\.]+)/i, id: 5 }, // Firefox for iOS | ||
| { regex: /((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i, id: 6 }, // Facebook In-App Browser | ||
| { regex: / wv\).+(chrome)\/([\w\.]+)/i, id: 7 }, // Chrome WebView | ||
| { regex: /droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i, id: 8 }, // Android Browser |
There was a problem hiding this comment.
Codacy has a fix for the issue: Unnecessary escape character: ..
| { regex: /droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i, id: 8 }, // Android Browser | |
| { regex: /droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i, id: 8 }, // Android Browser |
| // =========================================== | ||
| var ConsentConstants = { | ||
| DEFAULT_CMP_LOOK_UP_TIMEOUT: 1000, | ||
| CONTINUOUS_CMP_CHECK_TIMEOUT: 15000, |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 1 tab but found 2 spaces.
| CONTINUOUS_CMP_CHECK_TIMEOUT: 15000, | |
| CONTINUOUS_CMP_CHECK_TIMEOUT: 15000, |
| 65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90]; | ||
| exports.REGEX_BROWSERS = [ | ||
| { regex: /\b(?:crios)\/([\w\.]+)/i, id: 1 }, // Chrome for iOS | ||
| { regex: /(edg|edge)(?:e|ios|a)?(?:\/([\w\.]+))?/i, id: 2 }, // Edge |
There was a problem hiding this comment.
Codacy has a fix for the issue: Unnecessary escape character: ..
| { regex: /(edg|edge)(?:e|ios|a)?(?:\/([\w\.]+))?/i, id: 2 }, // Edge | |
| { regex: /(edg|edge)(?:e|ios|a)?(?:\/([\w.]+))?/i, id: 2 }, // Edge |
| config.callbackFunctions.push(callbackFn); | ||
| }, | ||
| getComplianceSupport: function () { | ||
| return config.complianceSupport; |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 4 tabs but found 8 spaces.
| return config.complianceSupport; | |
| return config.complianceSupport; |
| return config.complianceSupport; | ||
| }, | ||
| getPrebidCMConfig: function () { | ||
| return config.prebidCMConfig; |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 4 tabs but found 8 spaces.
| return config.prebidCMConfig; | |
| return config.prebidCMConfig; |
| { regex: /((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i, id: 6 }, // Facebook In-App Browser | ||
| { regex: / wv\).+(chrome)\/([\w\.]+)/i, id: 7 }, // Chrome WebView | ||
| { regex: /droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i, id: 8 }, // Android Browser | ||
| { regex: /(chrome|crios)(?:\/v?([\w\.]+))?\b/i, id: 9 }, // Chrome |
There was a problem hiding this comment.
Codacy has a fix for the issue: Unnecessary escape character: ..
| { regex: /(chrome|crios)(?:\/v?([\w\.]+))?\b/i, id: 9 }, // Chrome | |
| { regex: /(chrome|crios)(?:\/v?([\w.]+))?\b/i, id: 9 }, // Chrome |
| cmpId: 0, // CMP ID: Consent Management Platform Id, default - 0 | ||
| enforcedConsentBasisOn: ConsentConstants.CONSENT_MANAGEMENT_SOURCE.NONE, // This will be used to enforce the consent basis on Possible values: 1 (CMP), 2 (GEO), 0 (NONE) | ||
| readGeoDataFrom: ConsentConstants.READ_GEO_DATA_FROM.NONE, // This will be used to identify the source of geo data read from Possible values: 1 (LOCALSTORAGE), 2 (GEO_SERVICE), 0 (NONE) | ||
| geoInfo: { // This will be used to store the geo information |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 4 tabs but found 8 spaces.
| geoInfo: { // This will be used to store the geo information | |
| geoInfo: { // This will be used to store the geo information |
| { regex: /\b(?:crios)\/([\w\.]+)/i, id: 1 }, // Chrome for iOS | ||
| { regex: /(edg|edge)(?:e|ios|a)?(?:\/([\w\.]+))?/i, id: 2 }, // Edge | ||
| { regex: /(opera|opr)(?:.+version\/|[\/ ]+)([\w\.]+)/i, id: 3 }, // Opera | ||
| { regex: /(?:ms|\()(ie) ([\w\.]+)|(?:trident\/[\w\.]+)/i, id: 4 }, // Internet Explorer |
There was a problem hiding this comment.
Codacy has a fix for the issue: Unnecessary escape character: ..
| { regex: /(?:ms|\()(ie) ([\w\.]+)|(?:trident\/[\w\.]+)/i, id: 4 }, // Internet Explorer | |
| { regex: /(?:ms|\()(ie) ([\w.]+)|(?:trident\/[\w\.]+)/i, id: 4 }, // Internet Explorer |
| NONE: "NONE" | ||
| }; | ||
| function createInstance() { | ||
| function getConfig() { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 2 tabs but found 4 spaces.
| function getConfig() { | |
| function getConfig() { |
| */ | ||
| function getKeyByValue(obj, value) { | ||
| for (var key in obj) { | ||
| if (obj.hasOwnProperty(key)) { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Do not access Object.prototype method 'hasOwnProperty' from target object.
| if (obj.hasOwnProperty(key)) { | |
| if (Object.prototype.hasOwnProperty.call(obj, key)) { |
| geoMatchWithCMP: 2, // This will be used to identify the geo match with CMP Possible values: 0 - Not Matched,1 - Matched, 2 - Not Concluded(default) | ||
| prebidCMConfig: {}, // This will be used to apply the consentManagement config to the Prebid instance | ||
| callbackFunctions: [], // Functions to be called after the process is completed | ||
| continuousCmpCheck: { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 4 tabs but found 8 spaces.
| continuousCmpCheck: { | |
| continuousCmpCheck: { |
| getComplianceSupport: function () { | ||
| return config.complianceSupport; | ||
| }, | ||
| getPrebidCMConfig: function () { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 3 tabs but found 6 spaces.
| getPrebidCMConfig: function () { | |
| getPrebidCMConfig: function () { |
| CMP: 1, | ||
| GEO: 2, | ||
| NONE: 0 | ||
| }, |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 1 tab but found 2 spaces.
| }, | |
| }, |
| { regex: /version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i, id: 10 }, // Safari Mobile | ||
| { regex: /version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i, id: 11 }, // Safari | ||
| { regex: /(firefox)\/([\w\.]+)/i, id: 12 } // Firefox | ||
| ]; |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 0 tabs but found 2 spaces.
| ]; | |
| ]; |
| }, | ||
| READ_GEO_DATA_FROM: { // 1 -> LOCALSTORAGE, 2 -> GEO_SERVICE, 0 -> NONE | ||
| LOCALSTORAGE: 1, | ||
| GEO_SERVICE: 2, |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 2 tabs but found 4 spaces.
| GEO_SERVICE: 2, | |
| GEO_SERVICE: 2, |
| USP: 2, | ||
| GPP: 3 | ||
| }, | ||
| READ_GEO_DATA_FROM: { // 1 -> LOCALSTORAGE, 2 -> GEO_SERVICE, 0 -> NONE |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 1 tab but found 2 spaces.
| READ_GEO_DATA_FROM: { // 1 -> LOCALSTORAGE, 2 -> GEO_SERVICE, 0 -> NONE | |
| READ_GEO_DATA_FROM: { // 1 -> LOCALSTORAGE, 2 -> GEO_SERVICE, 0 -> NONE |
| gsId: undefined // GPP section ID | ||
| }, | ||
| geoMatchWithCMP: 2, // This will be used to identify the geo match with CMP Possible values: 0 - Not Matched,1 - Matched, 2 - Not Concluded(default) | ||
| prebidCMConfig: {}, // This will be used to apply the consentManagement config to the Prebid instance |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 4 tabs but found 8 spaces.
| prebidCMConfig: {}, // This will be used to apply the consentManagement config to the Prebid instance | |
| prebidCMConfig: {}, // This will be used to apply the consentManagement config to the Prebid instance |
| callbackFunctions: [], // Functions to be called after the process is completed | ||
| continuousCmpCheck: { | ||
| enabled: false, // Continuous CMP checking enabled | ||
| timeout: ConsentConstants.CONTINUOUS_CMP_CHECK_TIMEOUT, // Continuous CMP checking timeout |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 5 tabs but found 10 spaces.
| timeout: ConsentConstants.CONTINUOUS_CMP_CHECK_TIMEOUT, // Continuous CMP checking timeout | |
| timeout: ConsentConstants.CONTINUOUS_CMP_CHECK_TIMEOUT, // Continuous CMP checking timeout |
| }; | ||
| function createInstance() { | ||
| function getConfig() { | ||
| return { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 3 tabs but found 6 spaces.
| return { | |
| return { |
| complianceSupport: [], // CMP's compliance supported, 1: GDPR, 2: USP, 3: GPP | ||
| cmpId: 0, // CMP ID: Consent Management Platform Id, default - 0 | ||
| enforcedConsentBasisOn: ConsentConstants.CONSENT_MANAGEMENT_SOURCE.NONE, // This will be used to enforce the consent basis on Possible values: 1 (CMP), 2 (GEO), 0 (NONE) | ||
| readGeoDataFrom: ConsentConstants.READ_GEO_DATA_FROM.NONE, // This will be used to identify the source of geo data read from Possible values: 1 (LOCALSTORAGE), 2 (GEO_SERVICE), 0 (NONE) |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 4 tabs but found 8 spaces.
| readGeoDataFrom: ConsentConstants.READ_GEO_DATA_FROM.NONE, // This will be used to identify the source of geo data read from Possible values: 1 (LOCALSTORAGE), 2 (GEO_SERVICE), 0 (NONE) | |
| readGeoDataFrom: ConsentConstants.READ_GEO_DATA_FROM.NONE, // This will be used to identify the source of geo data read from Possible values: 1 (LOCALSTORAGE), 2 (GEO_SERVICE), 0 (NONE) |
| exports.BROWSER_MAPPING = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64, | ||
| 65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90]; | ||
| exports.REGEX_BROWSERS = [ | ||
| { regex: /\b(?:crios)\/([\w\.]+)/i, id: 1 }, // Chrome for iOS |
There was a problem hiding this comment.
Codacy has a fix for the issue: Unnecessary escape character: ..
| { regex: /\b(?:crios)\/([\w\.]+)/i, id: 1 }, // Chrome for iOS | |
| { regex: /\b(?:crios)\/([\w.]+)/i, id: 1 }, // Chrome for iOS |
| } | ||
| }; | ||
| } | ||
| var config = getConfig(); |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 2 tabs but found 4 spaces.
| var config = getConfig(); | |
| var config = getConfig(); |
| bidderOrderingEnabled: "0" | ||
| bidderOrderingEnabled: "0", | ||
| cmEnabled: "1", | ||
| cmCmpApi: "iab", |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 1 tab but found 2 spaces.
| cmCmpApi: "iab", | |
| cmCmpApi: "iab", |
17th Dec release - Bid pooling