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

Cleanup normalize video ad size #24

Closed
wants to merge 133 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
cbdea4a
Vidazoo adapter: update maintainer email (#5006)
uditalias Mar 20, 2020
dfcbd25
Add coppa support for Quantcast adapter (#5012)
weilingxi-qc Mar 20, 2020
9523787
Add Valueimpression Bid Adapter (#4974)
thuyhq Mar 21, 2020
07cf06f
appnexus adapter : include hb_source in request to server (#4964)
sumit116 Mar 24, 2020
fecfc2b
Index Exchange: Registering user syncs (#5005)
ix-prebid-support Mar 24, 2020
f0bc358
update consent manager to support a new config prop: defaultGdprScope…
Mar 24, 2020
498b771
freewheel add property vastXml to bidResponse (#5015)
xwang202 Mar 24, 2020
da6bb01
Added Adnuntius Bid Adapter (#4896)
mikael-lundin Mar 24, 2020
b24156c
deal tier fix (#5028)
jaiminpanchal27 Mar 24, 2020
a1083ff
PubMatic bid adapter to support NetId User Module (#5009)
pm-harshad-mane Mar 25, 2020
adda4e1
Undertone add parameters to request (#4995)
AnnaPerion Mar 25, 2020
e4ea90f
PulsePoint bid adapter: Multi-size support (#4988)
anand-venkatraman Mar 25, 2020
18b4009
VIS.X: use schain & userId modules (#5004)
mk0x9 Mar 25, 2020
811dd44
ADFINITY adapter gdpr support (#4955)
adfinity-prebid Mar 25, 2020
9268e98
Prebid 3.13.0 Release
Mar 25, 2020
efa289e
Increment pre version
Mar 25, 2020
7c45626
Media.net : adds Analytics Adapter (#5016)
vedantseta Mar 26, 2020
b9676bf
Onetag bid Adapter: added video support. (#4986)
onetag-dev Mar 26, 2020
a344de9
add file extension to imports (#5034)
Fawke Mar 26, 2020
be3fafa
Update platformioBidAdapter.js 3.0 (#4965)
varashellov Mar 26, 2020
190520c
feature/alias-sync-config-option (#4879)
Mar 26, 2020
cceaf0f
cedato adapter added support for multiple players (#4990)
alexkh13 Mar 27, 2020
049617a
Handle TCF 2 (#5000)
Mar 27, 2020
350ed6c
Between: multisizes support added (#5019)
ignat-one Mar 30, 2020
f8dc92e
add Analytics adapter implementation guide (#5027)
fomonzon Mar 30, 2020
487ebe7
added new param for the sonobi bidder adapter to override the default…
JonGoSonobi Mar 30, 2020
49ea57f
Added new sizes (#5042)
hdeodhar Mar 30, 2020
4aca8e8
PubMatic Analytics Adapter (#5024)
pm-harshad-mane Mar 30, 2020
3eaaeb9
feat(openxBidAdapter): PBID-125: Adding all other user id adapters: (…
jimee02 Mar 30, 2020
edb33f4
Fix freewheel for instream video (#5035)
xavierleune Mar 30, 2020
b95a2f6
Change to request DigiTrust ID "withCredentials". (#5013)
goosemanjack Mar 31, 2020
0bddfd5
Pubmatic: disable test-suit refreshing test-case (#5049)
pm-harshad-mane Mar 31, 2020
a23ce02
Price Floors (#4931)
robertrmartinez Mar 31, 2020
25214ab
Add support for userid modules in Yieldlab adapter (#5022)
mirkorean Mar 31, 2020
ea3700a
hide outstream div (#5055)
jaiminpanchal27 Mar 31, 2020
c1ccaf0
Adding UsPrivacy/CCPA support in smartadserver adapter. (#5036)
tadam75 Mar 31, 2020
3ee2c3d
TCF Purpose 1 enforcement (#5018)
jaiminpanchal27 Mar 31, 2020
e25f358
Appnexus adapter: check purpose one (#5057)
jaiminpanchal27 Mar 31, 2020
24e7fa3
Prebid 3.14.0 release
Mar 31, 2020
6bfc210
Increment pre version
Apr 1, 2020
6f4cf45
YieldLift bid adapter (#5030)
yieldlift Apr 1, 2020
a07ae78
Added TheMediaGridNM Bid Adapter (#4992)
TheMediaGrid Apr 1, 2020
83a362c
Add type information to DSPX bidResponse (#5021)
muuki88 Apr 1, 2020
5af6c64
change clickforce host url (#5061)
MIGOdanis Apr 1, 2020
37352f3
Eids uid string only (#5047)
pm-harshad-mane Apr 1, 2020
d88e808
Districtm Dmx adding Coppa support (#4997)
stevealliance Apr 1, 2020
1175ec2
Added support of supply chain object (#4975)
furbanowicz-smartadserver Apr 2, 2020
9c5156e
vidazooBidAdapter: feature/multi size request (#5007)
uditalias Apr 2, 2020
95c0d4a
Added new Converge Bid Adapter (#5053)
Converge-Digital Apr 2, 2020
10ea486
e-volution-tech: change file names (#5060)
e-volution-tech Apr 2, 2020
2b0c8a5
evolution_tech: completing file rename from 5060 (#5068)
bretg Apr 2, 2020
785aa9f
Added Hybrid.ai adapter (#4566)
hybrid-ai Apr 3, 2020
0d4527a
Freewheel: Better size detection and allow multiple bid requests (#5065)
xavierleune Apr 3, 2020
609486b
IdentityLink check ats after delaySync (#5070)
pycnvr Apr 3, 2020
136baaa
User ID auctionDelay timeout bugfix (#4982)
Fawke Apr 3, 2020
b0a2818
Fidelity: Add SCHAIN Support (#4945)
onaydenov Apr 3, 2020
345e618
Gamoshi: Update adaptor features (#5076)
Apr 6, 2020
309c165
Pubmatic: setting seat-id and dspid in bid object (#5074)
pm-harshad-mane Apr 6, 2020
59ccbbf
Fix bug in rubicon bid adapter for fpd keywords (#5078)
robertrmartinez Apr 6, 2020
753fcc8
Native support for AdKernel adapter (#5045)
ckbo3hrk Apr 6, 2020
b297edf
New bidlab prebid adapter (#5020)
bidlab Apr 6, 2020
4def1cf
Surrounding adapter calls in try (#4915)
robertrmartinez Apr 6, 2020
3dfc738
AdagiobidAdapter 2.2.0: schain, tcf 2.0 (#5059)
osazos Apr 7, 2020
6818664
Use TCFv2 consent data in Criteo Id module (#5073)
jesusalber1 Apr 7, 2020
a7d4410
Update param in request payload (#5091)
jaiminpanchal27 Apr 7, 2020
dc02ff4
PubMatic bid adapter to support app object set using setConfig (#5090)
pm-harshad-mane Apr 7, 2020
977f546
Media.net : fetches gdpr consent string (#5058)
vedantseta Apr 7, 2020
9de6609
Size Mapping V2 supports 'Identical Ad Units' (#5062)
Fawke Apr 7, 2020
73d5861
add adot bidder adapter (#4949)
mlequain Apr 7, 2020
21d1f53
Add Automatad Bid Adapter (#5017)
kanchika-kapoor Apr 7, 2020
6ad085f
update regex in readme (#5088)
jsnellbaker Apr 7, 2020
036d71d
Prebid adapter for windtalker (#5040)
degroat Apr 7, 2020
8275fc1
#5011 Fix to set Secure attribute on cookie when SameSite=none (#5064)
goosemanjack Apr 7, 2020
8d3dc08
Prebid 3.15.0 release
jsnellbaker Apr 7, 2020
78602ff
increment pre version
jsnellbaker Apr 7, 2020
75f13a0
Support min &max duration for onevideo (#5079)
DeepthiNeeladri Apr 8, 2020
c61a2b9
isSafariBrowser update (#5077)
bretg Apr 8, 2020
925ae0a
CRITEO RTUS Integration with Yieldmo Prebid (#5075)
mglowackiym Apr 8, 2020
c318c02
Prebid manager analytics utm tags (#4998)
Prebid-Manager Apr 8, 2020
5fab5e1
New bid adapter: Wipes (#5051)
Tosh39 Apr 8, 2020
1a8406f
updateAdGenerationManual (#5032)
banakemi Apr 8, 2020
de504a9
Criteo : added first party data mapping to bidder request (#4954)
leonardlabat Apr 8, 2020
9eec929
Read OpenRTB app objects if set in config + bug fix for when ad units…
bjorn-lw Apr 8, 2020
b8d5e05
Utils updates (#5092)
snapwich Apr 9, 2020
8f8f6f8
change payload (#5105)
vincentproxistore Apr 10, 2020
67a1cb1
Add new bid adapter for ConnectAd (#4806)
rtuschkany Apr 10, 2020
0604558
Add Relaido Adapter (#5101)
relaido Apr 13, 2020
5eac196
fix circle ci failing tests (#5113)
Fawke Apr 13, 2020
7438f5a
minor consentManagement fix (#5050)
harpere Apr 13, 2020
758abf3
PubMatic adapter to support image sync (#5104)
pm-harshad-mane Apr 13, 2020
6c26b5b
Marsmedia - Add vastXml and fix id response (#5067)
vladi-mmg Apr 13, 2020
bcfca15
Qc/qc usersyncs (#4923)
SleimanJneidi Apr 14, 2020
bddf7e9
ShowHeroes adapter v2 (#5085)
vadim-mazzherin Apr 14, 2020
c7cc349
Quantcast: Block bids without purpose 1 consent (#5046)
dpapworth-qc Apr 14, 2020
3fc10c9
Update appnexusBidAdapter.js (#4893)
bllmo Apr 15, 2020
e4d7596
Use a deepmerge function to merge both globa level config & bidder sp…
leonardlabat Apr 15, 2020
2216367
Prebid 3.16.0 Release
Apr 15, 2020
7e26de8
Increment pre version
Apr 15, 2020
6d45035
parrableIdSystem: Send current page location to back-end (#5123)
icflournoy Apr 16, 2020
b2030e5
hotfix - undefined consent (#5127)
nwlosinski Apr 16, 2020
bab538b
Submitting Tercept Analytics Adapter (#5099)
mohdusmanalvi Apr 16, 2020
af307f3
fix wipes adapter response (#5134)
Tosh39 Apr 17, 2020
a213fa0
User ID's (liveramp, britepool) and gdpr (#5114)
Apr 17, 2020
250dd1d
GumGum: uses encodeURIComponent inline (#5124)
susyt Apr 17, 2020
2efa352
Replace call to old url module with call to utils (#5136)
msm0504 Apr 17, 2020
8a681b7
add parameter to the conversant adapter to override the url (#5133)
johnwier Apr 17, 2020
8846adb
update test adunit params (#5135)
Tosh39 Apr 17, 2020
bd9243c
Feature/send publisher domain (#5121)
NemanjaRajkovic9 Apr 17, 2020
2a70905
New LuponMedia Bid Adapter (#5120)
adxpremium Apr 20, 2020
198f63e
Revert "New LuponMedia Bid Adapter (#5120)" (#5145)
sumit116 Apr 20, 2020
c0c8b58
[BUGFIX] AdagioBidAdapter getDataFromLocalStorage (#5081)
osazos Apr 20, 2020
f0a8abd
LuponMedia Bid Adapter (#5146)
adxpremium Apr 21, 2020
6311c46
SublimeBidAdapter: Update to version 0.5.1 (#4977)
SublimeLeo Apr 21, 2020
cf74b6c
PS bid adapter update to copy site object from config (#5083)
mmoschovas Apr 21, 2020
b9cb920
Disallowing remote requests from Safari and Firefox due to browsers n…
goosemanjack Apr 21, 2020
f85862d
Improve Digital adapter: add support for outstream video (#5129)
jbartek25 Apr 21, 2020
1e1a720
SublimeBidAdapter src/url.js import fix (#5150)
pm-harshad-mane Apr 21, 2020
e8d3119
No bid version 1.2.5 (#5137)
redaguermas Apr 22, 2020
a7f0603
Teads fix production GDPR error (#5122)
Apr 22, 2020
916b1a6
use customSlotMatching func for reseting targeting (#5132)
FilipStamenkovic Apr 22, 2020
0decdce
Add warning messages for publishers while native ads send assets cont…
bmwcmw Apr 22, 2020
2477e86
Triplelift: expose tl_souce in bid response (#5139)
sdao-tl Apr 22, 2020
ae0ab1d
UserId module to export user ids as eids with pbjs.getUserIdsAsEids()…
pm-harshad-mane Apr 22, 2020
b5aa77a
LunaMedia Adapter (#5110)
trchandraprakash Apr 23, 2020
8db2720
Release 3.17.0
mkendall07 Apr 23, 2020
00a3379
3.18.0-pre
mkendall07 Apr 23, 2020
7bd4471
Marsmedia Change endpoint URL (#5156)
vladi-mmg Apr 23, 2020
e09a2c3
Improve tcf2 support (#5138)
bmwcmw Apr 24, 2020
5b8dfa6
Remove leftover return value from requestBids (#5160)
snapwich Apr 24, 2020
0eeaccb
feat: new Pubstack Analytics Module (#5148)
gpolaert Apr 27, 2020
a883653
New adapter: Colombia (#5158)
ColombiaOnline Apr 27, 2020
2621343
PubMatic adding a targeting key for buyid (#5171)
pm-harshad-mane Apr 27, 2020
bc4217b
clean(openxBidderAdaptor): converted video size to numbers from strin…
May 7, 2020
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
// override the regular exclusion from above (for being inside node_modules).
{
test: /.js$/,
include: new RegExp(`\\${path.sep}prebid\.js`),
include: new RegExp(`\\${path.sep}prebid\\.js`),
use: {
loader: 'babel-loader',
// presets and plugins for Prebid.js must be manually specified separate from your other babel rule.
Expand Down
15 changes: 8 additions & 7 deletions allowedModules.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

const sharedWhiteList = [
"core-js/library/fn/array/find", // no ie11
"core-js/library/fn/array/includes", // no ie11
"core-js/library/fn/set", // ie11 supports Set but not Set#values
"core-js/library/fn/string/includes", // no ie11
"core-js/library/fn/number/is-integer", // no ie11,
"core-js/library/fn/array/from" // no ie11
'core-js/library/fn/array/find', // no ie11
'core-js/library/fn/array/includes', // no ie11
'core-js/library/fn/set', // ie11 supports Set but not Set#values
'core-js/library/fn/string/includes', // no ie11
'core-js/library/fn/number/is-integer', // no ie11,
'core-js/library/fn/array/from' // no ie11
];

module.exports = {
Expand All @@ -21,6 +21,7 @@ module.exports = {
'fun-hooks/no-eval',
'just-clone',
'dlv',
'dset'
'dset',
'deep-equal'
]
};
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ function test(done) {

execa(wdioCmd, wdioOpts, { stdio: 'inherit' })
.then(stdout => {
//kill mock server
// kill mock server
mockServer.kill('SIGINT');
done();
process.exit(0);
})
.catch(err => {
//kill mock server
// kill mock server
mockServer.kill('SIGINT');
done(new Error(`Tests failed with error: ${err}`));
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion integrationExamples/gpt/digitrust_Full.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}());
var t = document.createElement('script');
t.async = false;
t.src = 'http://acdn.adnxs.com/cmp/cmp.bundle.js';
t.src = 'https://acdn.adnxs.com/cmp/cmp.bundle.js';
var tag = document.getElementsByTagName('head')[0];
tag.appendChild(t);
}
Expand Down
11 changes: 10 additions & 1 deletion integrationExamples/gpt/digitrust_Simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}());
var t = document.createElement('script');
t.async = false;
t.src = 'http://acdn.adnxs.com/cmp/cmp.bundle.js';
t.src = 'https://acdn.adnxs.com/cmp/cmp.bundle.js';
var tag = document.getElementsByTagName('head')[0];
tag.appendChild(t);
}
Expand Down Expand Up @@ -148,6 +148,9 @@
}
else {
console.error('Digitrust init failed');
if(digiTrustResult.err){
console.error(digiTrustResult.err);
}
}
}
},
Expand All @@ -157,6 +160,12 @@
expires: 60
}
}]
},
userIdTargeting: {
"GAM": true,
"GAM_KEYS": {
"tdid": "TTD_ID" // send tdid as TTD_ID
}
}
});
pbjs.addAdUnits(adUnits);
Expand Down
2 changes: 1 addition & 1 deletion integrationExamples/gpt/digitrust_cmp_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ <h2>DigiTrust Prebid Sample - No Framework</h2>
googletag.cmd.push(function () { googletag.display('test-div'); });
</script>
</div>
<script src="http://cmp-origin-release.digitru.st/1/cmp.bundle.js"></script>
<script src="https://cmp-origin-release.digitru.st/1/cmp.bundle.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion integrationExamples/gpt/hello_world.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ <h5>Div-1</h5>
</script>
</div>
</body>
</html>
</html>
1 change: 1 addition & 0 deletions modules/aardvarkBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function resetUserSync() {

export const spec = {
code: BIDDER_CODE,
gvlid: 52,
aliases: ['adsparc', 'safereach'],

isBidRequestValid: function(bid) {
Expand Down
32 changes: 25 additions & 7 deletions modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
import { loadExternalScript } from '../src/adloader.js'
import JSEncrypt from 'jsencrypt/bin/jsencrypt.js';
import sha256 from 'crypto-js/sha256.js';
import { getStorageManager } from '../src/storageManager.js';

const BIDDER_CODE = 'adagio';
const VERSION = '2.1.0';
const VERSION = '2.2.1';
const FEATURES_VERSION = '1';
const ENDPOINT = 'https://mp.4dex.io/prebid';
const SUPPORTED_MEDIA_TYPES = ['banner'];
const ADAGIO_TAG_URL = 'https://script.4dex.io/localstore.js';
const ADAGIO_LOCALSTORAGE_KEY = 'adagioScript';
const GVLID = 617;
const storage = getStorageManager(GVLID, 'adagio');

export const ADAGIO_PUBKEY = `-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC9el0+OEn6fvEh1RdVHQu4cnT0
Expand All @@ -20,10 +23,8 @@ t0b0lsHN+W4n9kitS/DZ/xnxWK/9vxhv0ZtL1LL/rwR5Mup7rmJbNtDoNBw4TIGj
pV6EP3MTLosuUEpLaQIDAQAB
-----END PUBLIC KEY-----`;

export function getAdagioScript() {
export function adagioScriptFromLocalStorageCb(ls) {
try {
const ls = utils.getDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);

if (!ls) {
utils.logWarn('Adagio Script not found');
return;
Expand All @@ -33,7 +34,7 @@ export function getAdagioScript() {

if (!hashRgx.test(ls)) {
utils.logWarn('No hash found in Adagio script');
utils.removeDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);
storage.removeDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);
} else {
const r = ls.match(hashRgx);
const hash = r[2];
Expand All @@ -47,14 +48,20 @@ export function getAdagioScript() {
Function(ls)(); // eslint-disable-line no-new-func
} else {
utils.logWarn('Invalid Adagio script found');
utils.removeDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);
storage.removeDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);
}
}
} catch (err) {
//
}
}

export function getAdagioScript() {
storage.getDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY, (ls) => {
adagioScriptFromLocalStorageCb(ls)
});
}

function canAccessTopWindow() {
try {
if (utils.getWindowTop().location.href) {
Expand Down Expand Up @@ -335,13 +342,22 @@ function _getGdprConsent(bidderRequest) {
if (bidderRequest.gdprConsent.allowAuctionWithoutConsent !== undefined) {
consent.allowAuctionWithoutConsent = bidderRequest.gdprConsent.allowAuctionWithoutConsent ? 1 : 0;
}
if (bidderRequest.gdprConsent.apiVersion !== undefined) {
consent.apiVersion = bidderRequest.gdprConsent.apiVersion;
}
}
return consent;
}

function _getSchain(bidRequest) {
if (utils.deepAccess(bidRequest, 'schain')) {
return bidRequest.schain;
}
}

export const spec = {
code: BIDDER_CODE,

gvlid: GVLID,
supportedMediaType: SUPPORTED_MEDIA_TYPES,

isBidRequestValid: function (bid) {
Expand Down Expand Up @@ -391,6 +407,7 @@ export const spec = {
const site = _getSite();
const pageviewId = _getPageviewId();
const gdprConsent = _getGdprConsent(bidderRequest);
const schain = _getSchain(validBidRequests[0]);
const adUnits = utils._map(validBidRequests, (bidRequest) => {
bidRequest.features = _getFeatures(bidRequest);
return bidRequest;
Expand Down Expand Up @@ -419,6 +436,7 @@ export const spec = {
pageviewId: pageviewId,
adUnits: groupedAdUnits[organizationId],
gdpr: gdprConsent,
schain: schain,
prebidVersion: '$prebid.version$',
adapterVersion: VERSION,
featuresVersion: FEATURES_VERSION
Expand Down
7 changes: 7 additions & 0 deletions modules/adfinityBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ export const spec = {
'placements': placements
};

if (bidderRequest) {
if (bidderRequest.gdprConsent) {
request.gdpr_consent = bidderRequest.gdprConsent.consentString || 'ALL'
request.gdpr_require = bidderRequest.gdprConsent.gdprApplies ? 1 : 0
}
}

for (let i = 0; i < validBidRequests.length; i++) {
let bid = validBidRequests[i];
let traff = bid.params.traffic || BANNER
Expand Down
86 changes: 45 additions & 41 deletions modules/adgenerationBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,57 +15,61 @@ AdGeneration bid adapter supports Banner and Native.
# Test Parameters
```
var adUnits = [
// Banner adUnit
{
code: 'banner-div', // banner
sizes: [[300, 250]],
bids: [
{
bidder: 'adg',
params: {
id: '58278', // banner
}
},
]
},
// Native adUnit
{
code: 'native-div',
sizes: [[1,1]],
mediaTypes: {
native: {
image: {
// Banner adUnit
{
code: 'banner-div', // banner
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
bids: [
{
bidder: 'adg',
params: {
id: '58278', // banner
}
},
]
},
// Native adUnit
{
code: 'native-div',
sizes: [[1,1]],
mediaTypes: {
native: {
image: {
required: true
},
title: {
},
title: {
required: true,
len: 80
},
sponsoredBy: {
},
sponsoredBy: {
required: true
},
clickUrl: {
},
clickUrl: {
required: true
},
body: {
},
body: {
required: true
},
icon: {
},
icon: {
required: true
},
privacyLink: {
},
privacyLink: {
required: true
},
},
},
bids: [
{
bidder: 'adg',
params: {
},
},
bids: [
{
bidder: 'adg',
params: {
id: '58279', //native
}
},
]
}
},
]
},
];
```
13 changes: 7 additions & 6 deletions modules/adkernelAdnAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import adapter from '../src/AnalyticsAdapter.js';
import CONSTANTS from '../src/constants.json';
import adapterManager from '../src/adapterManager.js';
import {parse} from '../src/url.js';
import * as utils from '../src/utils.js';
import {ajax} from '../src/ajax.js';
import { getStorageManager } from '../src/storageManager.js';

const ANALYTICS_VERSION = '1.0.1';
const DEFAULT_QUEUE_TIMEOUT = 4000;
const DEFAULT_HOST = 'tag.adkernel.com';
const storageObj = getStorageManager();

const ADK_HB_EVENTS = {
AUCTION_INIT: 'auctionInit',
Expand Down Expand Up @@ -175,10 +176,10 @@ const ORGANIC = '(organic)';

export let storage = {
getItem: (name) => {
return utils.getDataFromLocalStorage(name);
return storageObj.getDataFromLocalStorage(name);
},
setItem: (name, value) => {
utils.setDataInLocalStorage(name, value);
storageObj.setDataInLocalStorage(name, value);
}
};

Expand Down Expand Up @@ -209,7 +210,7 @@ export function getUmtSource(pageUrl, referrer) {
if (se) {
return asUtm(se, ORGANIC, ORGANIC);
}
let parsedUrl = parse(pageUrl);
let parsedUrl = utils.parseUrl(pageUrl);
let [refHost, refPath] = getReferrer(referrer);
if (refHost && refHost !== parsedUrl.hostname) {
return asUtm(refHost, REFERRAL, REFERRAL, '', refPath);
Expand All @@ -236,12 +237,12 @@ export function getUmtSource(pageUrl, referrer) {
}

function getReferrer(referrer) {
let ref = parse(referrer);
let ref = utils.parseUrl(referrer);
return [ref.hostname, ref.pathname];
}

function getUTM(pageUrl) {
let urlParameters = parse(pageUrl).search;
let urlParameters = utils.parseUrl(pageUrl).search;
if (!urlParameters['utm_campaign'] || !urlParameters['utm_source']) {
return;
}
Expand Down
Loading