-
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
Add ReadPeak Bid Adapter #1838
Add ReadPeak Bid Adapter #1838
Conversation
modules/readpeakBidAdapter.js
Outdated
const bid = { | ||
requestId: id, | ||
cpm: idToBidMap[id].price, | ||
creativeId: id, |
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.
Is the creativeId really just the request id? Doesn't seem correct.
modules/readpeakBidAdapter.js
Outdated
currency: bidResponse.cur, | ||
bidderCode: BIDDER_CODE, | ||
}; | ||
bid['native'] = nativeResponse(idToImpMap[id], idToBidMap[id]); |
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.
no need to use bracket notation here.
modules/readpeakBidAdapter.js
Outdated
requestId: id, | ||
cpm: idToBidMap[id].price, | ||
creativeId: id, | ||
adId: id, |
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.
adId
can be dropped. I forgot this was the legacy bid identifier. It will be found on the requestId
now
@kurrestahlberg Also it looks like I'm not receiving bid response. Here is the request generated to assist with testing:
|
Thanks for the review! I have fixed the issues you pointed out. We seem to have a minor configuration issue in our backend right now and thus it returns 204 for the test publisher id. I will get it fixed asap. |
@mkendall07 |
modules/readpeakBidAdapter.js
Outdated
netRevenue: true, | ||
mediaType: 'native', | ||
currency: bidResponse.cur, | ||
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.
please drop bidder code. This will be added automatically.
@kurrestahlberg |
seeing bids now. Just need |
@mkendall07 |
I don't know how to trigger rerun for travis. |
restarted the build |
@kurrestahlberg |
@mkendall07 The following is sent as prev_scp:
The only odd bit to me is hb_size, and I am not sure if the regular test page will show both banners and native. |
* 'master' of https://github.com/prebid/Prebid.js: (43 commits) Merge Prebid 1.0 to Master (prebid#1936) Prebid.js 0.34.1 release Vertamedia adapter outstream support (prebid#1860) Expose native image-type asset dimensions on bid response object (prebid#1919) Remove for of (prebid#1932) Unit-test fix (prebid#1927) Remove description_url (prebid#1922) Trion Interactive Adapter Bugfix (prebid#1925) Remove config setting from Optimatic adapter (prebid#1909) IE bug fix (prebid#1930) Clarify ad unit media filtering warning (prebid#1903) Add ReadPeak Bid Adapter (prebid#1838) Change clone function to make deep copies (prebid#1910) Serverbid 1.0 (prebid#1802) sekindoUM for prebid1.0 (prebid#1777) update auctionId to be requestId (prebid#1896) bug fixed to populate userSync default values (prebid#1897) Increment pre version AdkernelAdn analytics adapter (prebid#1868) Justpremium Adapter: use `filter` instead of `...new Set` (prebid#1895) ...
….34.0 to aolgithub-master * commit 'f0ba90afa8b52de7a646d43928b2d51ee42e74a1': (53 commits) Added changelog entry. Added partners ids. Added dynamic ttl property for One Display and One Mobile. Prebid.js 0.34.1 release Vertamedia adapter outstream support (prebid#1860) Expose native image-type asset dimensions on bid response object (prebid#1919) Remove for of (prebid#1932) Unit-test fix (prebid#1927) Remove description_url (prebid#1922) Trion Interactive Adapter Bugfix (prebid#1925) Remove config setting from Optimatic adapter (prebid#1909) IE bug fix (prebid#1930) Clarify ad unit media filtering warning (prebid#1903) Add ReadPeak Bid Adapter (prebid#1838) Change clone function to make deep copies (prebid#1910) Serverbid 1.0 (prebid#1802) sekindoUM for prebid1.0 (prebid#1777) update auctionId to be requestId (prebid#1896) bug fixed to populate userSync default values (prebid#1897) Increment pre version ...
* Add ReadPeak Bid Adapter * Remove protocol from endpoint address * Make bidfloor optional * Update ReadPeak Bidder tests * Fix creative id, remove ad id from response. * Fix tests * Drop bidderCode * Fix tests
Type of change
Description of change
Bid adapter for readpeak.com, a purely native bidder from Finland
Be sure to test the integration with your adserver using the Hello World sample page.
Other information