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

AOL Adapter - ONE Mobile endpoint implemented. #1115

Merged
merged 3 commits into from
May 2, 2017

Conversation

mp-12301
Copy link
Contributor

Type of change

  • Feature

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?

@mp-12301 mp-12301 changed the title ONE Mobile implemented in the AOL Adapter. AOL Adapter - ONE Mobile endpoint implemented. Apr 11, 2017
@bretg bretg requested a review from snapwich April 25, 2017 12:06
Copy link
Collaborator

@snapwich snapwich left a 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

if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", idempotentFn, false);
window.addEventListener("load", idempotentFn, false);
} else if (document.attachEvent) {
Copy link
Collaborator

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);
Copy link
Collaborator

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.

Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a 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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@vzhukovsky vzhukovsky Apr 28, 2017

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.

Copy link
Contributor

@vzhukovsky vzhukovsky left a 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.

@jaiminpanchal27 jaiminpanchal27 merged commit 22b9422 into prebid:master May 2, 2017
@jaiminpanchal27
Copy link
Collaborator

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

@snapwich snapwich mentioned this pull request May 3, 2017
1 task
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request May 4, 2017
…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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants