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

Allow rubicon adapter to register individual responses from fastlane … #676

Merged

Conversation

snapwich
Copy link
Collaborator

@snapwich snapwich commented Oct 3, 2016

Type of change

  • [x ] Refactoring (no functional changes, no api changes)

Description of change

The rubicon adapter was registering bids with Prebid.js after all responses were back. Now it registers the responses as they come in individually using a new event within our Fastlane code.

@matthewlane matthewlane self-assigned this Oct 4, 2016
@matthewlane
Copy link
Collaborator

@snapwich Thanks for the PR. Tests look good and I'm still getting bids with the refactored changes. On a test page dev console I'm seeing RP: Unrecognized event: FL_TIER_MAPPED originating in 14062.js:2 from RUBICONTAG_URL, wanted to check if that error comes up for you as well

@snapwich
Copy link
Collaborator Author

snapwich commented Oct 6, 2016

@matthewlane yes it was, good catch. I just swapped two lines, the integration needed to be set to "pbjs" before adding a listener for "FL_TIER_MAPPED" in fastlane as there is a special exception for prebid to listen to that event, otherwise it falls back to the standard non-individual response handler.

Should be good now.

@matthewlane matthewlane merged commit 46c1691 into prebid:master Oct 6, 2016
expect(bids[0].width).to.equal(300);
expect(bids[0].height).to.equal(250);
expect(bids[0].cpm).to.equal(0.811);
debugger;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missed this line but discovered it in Karma debug mode. I needed to remove it so the debugger isn't invoked for others doing testing, just updated master with that change

@robertrmartinez robertrmartinez deleted the rubicon-events-responses branch July 5, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants