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

Trion Interactive 1.0 adapter update #1712

Merged
merged 5 commits into from
Nov 27, 2017
Merged

Conversation

grohm33
Copy link
Contributor

@grohm33 grohm33 commented Oct 17, 2017

…rebid version(1.0).

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other

Description of change

Adding updated adapter for the 1.0 release

Other information

We have a test ad set up to return bids from pubId : '30222' and sectionId : '5' and will only do so on mobile user agent.

@ndhimehta ndhimehta assigned snapwich and unassigned ndhimehta Oct 20, 2017
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.

I think there's a mismatch in the data you're expecting from the request in interpretResponse.

interpretResponse: function (trionResponseObj, request) {
var bid = {};
var bidResponses = [];
var bidRequest = request.bidRequest;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is this coming from? I think you're doing something similar to what I did in the rubicon adapter to get the original bidRequest, but I attached it to the request; I don't see you doing the same in this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @snapwich, the bidrequest is included in the build request function on line 25 of the adapter. I'm sending it up with the bid request object for each bid. The request is coming through on all the tests on my end. Let me know if there is something I'm missing.

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.

LGTM

if (!userTag.int_t) {
userTag.int_t = window.TR_INT_T || -1;
bid.requestId = bidRequest.bidId;
bid.bidderCode = bidRequest.bidder;
Copy link
Member

Choose a reason for hiding this comment

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

This line needs to be dropped. Sorry for the confusion.

@mkendall07
Copy link
Member

@grohm33 One thing to fix and then this can merge. Sorry for the delay!

@grohm33
Copy link
Contributor Author

grohm33 commented Nov 13, 2017

@mkendall07 the bidder code was removed. Thanks!

@grohm33 grohm33 closed this Nov 13, 2017
@grohm33 grohm33 reopened this Nov 13, 2017
@mkendall07 mkendall07 merged commit 440fa77 into prebid:master Nov 27, 2017
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Adding files associated with the trion adapter update to the newest prebid version(1.0).

* Updating pull request with safer checks for user sync and general clean up/consistency of tests.

* removing a call to bidder code for pull request review.  also removing the test that requires it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants