-
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
Optimera Adapter for 1.0. #1961
Conversation
modules/optimeraBidAdapter.js
Outdated
if (typeof validBids[i].params.custom.clientID != 'undefined') { | ||
if (validBids[i].adUnitCode in scores) { | ||
dealId = scores[validBids[i].adUnitCode]; | ||
if (typeof serverResponse.body != 'undefined') { |
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.
prefer triple equality.
modules/optimeraBidAdapter.js
Outdated
if (validBids[i].adUnitCode in scores) { | ||
dealId = scores[validBids[i].adUnitCode]; | ||
if (typeof serverResponse.body != 'undefined') { | ||
var scores = serverResponse.body; |
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.
prefer const
| let
modules/optimeraBidAdapter.js
Outdated
if (typeof serverResponse.body != 'undefined') { | ||
var scores = serverResponse.body; | ||
for (var i = 0; i < validBids.length; i++) { | ||
if (typeof validBids[i].params.custom.clientID != 'undefined') { |
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.
not safe access to clientID (in case custom
is undefined`)
modules/optimeraBidAdapter.md
Outdated
{ | ||
bidder: 'optimera', | ||
params: { | ||
custom:{ |
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.
why do you have the custom
wrapper here? seems unnecessary.
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.
Ok, we removed the custom wrapper and updated the adapter and tests to reflect the change.
To merge this we need a docs PR. 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 |
* 'master' of https://github.com/prebid/Prebid.js: Prebid 1.2.0 Release Use polyfilled includes method (prebid#2061) RockYou Adapter: Added RockYou Adapter supporting Prebid 1.0 (prebid#1977) Optimera Adapter for 1.0. (prebid#1961) Use cross-browser integer check (prebid#2058) Fix skipped test (prebid#2059) Support multiple media formats within a single ad unit (prebid#1991) pre1api module that allows use of deprecated pre1.0 API in Prebid 1.0 (prebid#1976) Colossus SSP header bidding adapter 1.0.0 (prebid#2029) InSkin Bidder Adapter (prebid#2016) Update adapter to prebid v1.0 (prebid#1908) PubMatic 1.0 adapter (prebid#2011)
* Optimera Adapter for 1.0. * Optimera Adapter updating for json endpoint. * Optimera Adapter removing custom params property.
Type of change
Type of issue
Feature Request
Description
Adding Optimera's bid adapter for public use. Optimera's technology allows publishers to target viewability data to automate viewability optimization for any line item or PMP. Optimera does not push bids but instead targeting data via the deal ID space.
test parameters for validating bids
hb_deal_optimera=RB_K,300x250K,300x600K&hb_size_optimera=0x0&hb_pb_optimera=0.00&hb_adid_optimera=86a7b6905fe174&hb_bidder_optimera=optimera
An additional script must be added to the footer, contact Optimera for more information
contact email of the adapter’s maintainer
kcandiotti@optimera.nyc
Other information
Test Page:
http://optimera.elasticbeanstalk.com/prebidDemoPage.php
@kcandiotti
Relates to PR: #1760
We added some clarification to buildRequests() explaining what the GET request is used for.