-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
AOL Adapter - ONE Mobile endpoint implemented. #1115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggested changes added, but LGTM
src/adapters/aol.js
Outdated
if (document.addEventListener) { | ||
document.addEventListener("DOMContentLoaded", idempotentFn, false); | ||
window.addEventListener("load", idempotentFn, false); | ||
} else if (document.attachEvent) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prebid.js only supports IE9+, so you should be fine with using addEventListener
only.
document.body.appendChild(iframe); | ||
} else { | ||
domReady(() => { | ||
document.body.appendChild(iframe); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're checking the readyState above, I think removing domReady
and just using DOMContentLoaded
should be sufficient here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment if it can done.
pixelsElements.forEach((element) => { | ||
switch (element.tagName) { | ||
case SYNC_TYPES.img: | ||
return renderPixelImage(element); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if you can reuse these functions
https://github.com/prebid/Prebid.js/blob/master/src/utils.js#L446
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. Thank you for the note.
If we reuse this method we will have to insert elements in DOM directly.
We would like to avoid it so we prefer to use own implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed code for supporting IE 9. Waiting approvals.
This is merged into master. Please submit a PR to the docs repo to add a file for your adapter to the bidders directory so your adapter's params will appear on the bidders page. Thank you for contributing |
…built * 'master' of https://github.com/prebid/Prebid.js: (21 commits) add lodash as dependency (prebid#1174) fix size mapping for s2s (prebid#1175) Improve footer styling (prebid#1171) Bugfix: internal bids requested overwritten (prebid#1173) pre-release version bump Prebid 0.23.0 Release Yieldbot adapter - multiple requestBids per pageview (prebid#1146) Widespace adapter validate size fix (prebid#1140) Audience Network: bid when at least one valid slot size (prebid#1148) Quantcast adaptor (prebid#1063) AOL Adapter - ONE Mobile endpoint implemented. (prebid#1115) Prebid Server to Server (prebid#1165) Pubgears Header Bidding Adapter (prebid#953) remove old adloader#trackPixel (prebid#1159) added audit beacon to detect misuse of this bidder. Detects auctions… (prebid#1134) Bidfluence CDN endpoint URL update (prebid#1163) AdSupply adapter (prebid#1162) Sonobi Adapter - Enable size overrides (prebid#1141) Added an editorconfig file to match jshint and jssrc files. (prebid#1147) force cpm to be a number (prebid#1161) ...
Type of change
Description of change
This PR is to implement the ONE Mobile endpoint, which is a second endpoint where bid requests can be made from depending on the parameters set on the bid config. This also adds a feature where if enabled by choice the adapter will drop sync pixels on bid response.
Is there a formal procedure for updating the bidder params for the AOL adapter?