-
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
Update sharethrough bid adapter #1740
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.
Thanks for the updated adapter. Please also add your .md file in this PR: http://prebid.org/dev-docs/bidder-adapter-1.html#planning-your-adapter
Sorry about that, I updated the PR with the .md file. Thanks for the review |
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.
Looks good. There were a few breaking changes to 1.0 adapter structures recently, I noted fixes for them below and then we should be good to merge
modules/sharethroughBidAdapter.js
Outdated
|
||
return [{ | ||
requestId: req.data.bidId, | ||
bidderCode: BIDDER_CODE, |
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.
bidderCode
will be set automatically by bidderFactory
now, this line can be dropped
modules/sharethroughBidAdapter.js
Outdated
}; | ||
}) | ||
}, | ||
interpretResponse: (resp, req) => { |
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.
#1748 changed the first argument of interpretResponse
to:
{
body: responseBody,
headers: {
get: function(header) { /* returns a header from the HTTP response */ }
}
}
so adding something like
resp = resp.body;
just below this line, or however you'd prefer to grab the body
, and updating corresponding tests if needed should get this back to working properly
Awesome, good to know. Ready for review |
580181a
to
381161d
Compare
* Update sharethrough bid adapter * add md for sharethroughBidAdpapter * remove bidderCode and parse response * remove linting errors
Type of change
Description of change
Sharetrough bid adapter update for Prebid 1.0