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

Optimera Adapter for 1.0. #1961

Merged
merged 3 commits into from
Jan 23, 2018
Merged

Optimera Adapter for 1.0. #1961

merged 3 commits into from
Jan 23, 2018

Conversation

mcallari
Copy link
Contributor

@mcallari mcallari commented Dec 14, 2017

Type of change

  • New bidder adapter

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

  • Optimera will pass targeting data via hb_deal_optimera, will never pass a size therefore 0x0, will never pass a price therefore 0.00. For example:
    hb_deal_optimera=RB_K,300x250K,300x600K&hb_size_optimera=0x0&hb_pb_optimera=0.00&hb_adid_optimera=86a7b6905fe174&hb_bidder_optimera=optimera
{
  bidder: 'optimera',
  params: {
      clientId: '1234'
  }
}

An additional script must be added to the footer, contact Optimera for more information

contact email of the adapter’s maintainer
kcandiotti@optimera.nyc

  • official adapter submission

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.

if (typeof validBids[i].params.custom.clientID != 'undefined') {
if (validBids[i].adUnitCode in scores) {
dealId = scores[validBids[i].adUnitCode];
if (typeof serverResponse.body != 'undefined') {
Copy link
Member

Choose a reason for hiding this comment

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

prefer triple equality.

if (validBids[i].adUnitCode in scores) {
dealId = scores[validBids[i].adUnitCode];
if (typeof serverResponse.body != 'undefined') {
var scores = serverResponse.body;
Copy link
Member

Choose a reason for hiding this comment

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

prefer const | let

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') {
Copy link
Member

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`)

{
bidder: 'optimera',
params: {
custom:{
Copy link
Member

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.

Copy link
Contributor Author

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.

@jaiminpanchal27
Copy link
Collaborator

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

@mkendall07 mkendall07 merged commit 2eb8cdb into prebid:master Jan 23, 2018
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Jan 24, 2018
* '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)
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Optimera Adapter for 1.0.

* Optimera Adapter updating for json endpoint.

* Optimera Adapter removing custom params property.
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.

4 participants