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

NextRoll Bidder Adapter #4829

Merged
merged 39 commits into from
Feb 26, 2020
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d21b24c
First implementation of the AdRoll adapter (#1)
juanbono Oct 26, 2019
c180513
Fix request and bid id (#5)
raz-adroll Nov 21, 2019
b1c2753
Send Zone ID (#6)
abijr Nov 25, 2019
afdd359
Add age check before fastbid eval (#7)
abijr Dec 5, 2019
907e21e
Add date check (#8)
abijr Dec 6, 2019
17af86c
Merge remote-tracking branch 'upstream/master'
Dec 10, 2019
a77c8c9
Fix bidRequest validation (#9)
abijr Jan 14, 2020
215b573
Merge branch 'master' of github.com:Prebid/Prebid.js
Jan 14, 2020
e2fb8fd
Fix deprecated function usage (#10)
abijr Jan 16, 2020
5162fb0
[SENG-2757] remove custom function from adapter (#11)
juanbono Jan 22, 2020
e02ec0d
Handle nextroll id (#12)
abijr Jan 22, 2020
761ddcc
Rename adroll -> nextroll (#14)
abijr Jan 24, 2020
1b6bf69
Merge branch 'master' of github.com:Prebid/Prebid.js
Jan 24, 2020
9b1bd91
Rename fastbid -> pubtag functions and variables (#15)
abijr Jan 27, 2020
962664c
Merge branch 'master' of github.com:Prebid/Prebid.js
Jan 31, 2020
2a0a48b
Merge branch 'master' of github.com:Prebid/Prebid.js
Feb 4, 2020
413838f
Improve coverage of tests
Feb 4, 2020
154e8e1
Add docs
Feb 5, 2020
2532b0f
Add docs
Feb 6, 2020
5a4e64f
Merge pull request #1 from AdRoll/old-master
abijr Feb 6, 2020
8b96684
Merge pull request #2 from AdRoll/improve-coverage
abijr Feb 6, 2020
fb38274
Improve sizes and add sellerid
Feb 6, 2020
820aae4
Merge remote-tracking branch 'origin/master' into add-docs
Feb 6, 2020
eda56ba
Merge pull request #3 from AdRoll/add-docs
abijr Feb 6, 2020
a9b93dd
Add maintainer email
Feb 6, 2020
ceb3659
Fix CI problem
Feb 6, 2020
ca6c531
Merge branch 'master' of github.com:Prebid/Prebid.js
Feb 6, 2020
1781951
Fix IE tests
Feb 6, 2020
620e6d0
Replace second instance of find
Feb 6, 2020
dfa8fec
Fix types used in the doc
Feb 7, 2020
c0410ae
Remove unused fields in spec
Feb 10, 2020
0a6f4a3
Merge branch 'master' of github.com:Prebid/Prebid.js
Feb 10, 2020
0019d5c
Add ccpa support
Feb 13, 2020
54f90f4
Merge branch 'master' of github.com:Prebid/Prebid.js
Feb 14, 2020
783001d
Remove external script usage
Feb 17, 2020
fa47c78
Remove IP field
Feb 18, 2020
af2a312
Remove pubtag key
Feb 19, 2020
2422b53
Rename imports; Remove getUserSync function; Remove unused code; Use …
raz-adroll Feb 25, 2020
9fbbbe2
Adress comments
abijr Feb 25, 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
Prev Previous commit
Next Next commit
[SENG-2757] remove custom function from adapter (#11)
* remove loadExternalScript function

* add adroll to the adloader whitelist
  • Loading branch information
juanbono authored and abijr committed Jan 22, 2020
commit 5162fb048749f3516d54e4bdba9c9d18863e4780
27 changes: 1 addition & 26 deletions modules/adrollBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as utils from '../src/utils';
import { registerBidder } from '../src/adapters/bidderFactory';
import { BANNER } from '../src/mediaTypes';
import { loadExternalScript } from '../src/adloader';
import JSEncrypt from 'jsencrypt/bin/jsencrypt';
import sha256 from 'crypto-js/sha256';

@@ -285,30 +286,4 @@ function isFastBidTooOld(fastBidAge) {
return false
}

/**
* This is here to bypass the whitelist.
* Once we're ready to merge the adapter to mainstream prebid, we should switch
* from this function to adloader.loadExternalScript
*/
const _requestCache = {};
function loadExternalScript(url, moduleCode) {
if (!moduleCode || !url) {
utils.logError('cannot load external script without url and moduleCode');
return;
}

// only load each asset once
if (_requestCache[url]) {
return;
}

const script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = url;

utils.insertElement(script);
_requestCache[url] = true;
};

registerBidder(spec);
3 changes: 2 additions & 1 deletion src/adloader.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@ const _approvedLoadExternalJSList = [
'criteo',
'outstream',
'adagio',
'browsi'
'browsi',
'adroll'
]

/**