Skip to content

videoNow bid adapter #4088

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

Merged
merged 29 commits into from
Sep 27, 2019
Merged

videoNow bid adapter #4088

merged 29 commits into from
Sep 27, 2019

Conversation

sdbaron
Copy link
Contributor

@sdbaron sdbaron commented Aug 14, 2019

Type of change

  • [x ] New bidder adapter

Description of change

new bidder adapter for videoNow

  • test parameters for validating bids
   {
      code: 'banner-div',
      mediaTypes: {
        banner: {
          sizes: [[640, 480], [336, 280]]
        }
      },
      bids: [{
         bidder: 'videonow',
         params: {
           pId: 1,
           placementId: 'div-001'
         }
       }]
   }
  • contact email of the adapter’s maintainer
  • [x ] official adapter submission

Copy link
Contributor

@sumit116 sumit116 left a comment

Choose a reason for hiding this comment

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

Hi @sdbaron,
I am getting 404 Not Found error when hitting the url https://bidder.videonow.ru/prebid?profile_id=1. I am making request from India with the following request payload: {"id":"2b9273013ea69d","sizes":[[640,480],[336,280]],"cur":"RUB","placementId":"div-001","ref":"http://localhost:9999/integrationExamples/gpt/hello_world.html?pbjs_debug=true"}

Please check at your end.

@sdbaron
Copy link
Contributor Author

sdbaron commented Aug 21, 2019

Hi @sdbaron,
I am getting 404 Not Found error when hitting the url https://bidder.videonow.ru/prebid?profile_id=1. I am making request from India with the following request payload: {"id":"2b9273013ea69d","sizes":[[640,480],[336,280]],"cur":"RUB","placementId":"div-001","ref":"http://localhost:9999/integrationExamples/gpt/hello_world.html?pbjs_debug=true"}

Please check at your end.

Hi!
Indeed, we had some problems with this URL, but now it should work correctly.

Copy link
Contributor

@sumit116 sumit116 left a comment

Choose a reason for hiding this comment

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

Please make the suggested changes. I found unit test coverage is very low (~41%). Can you add more tests to increase it to at least 80%?

const d = window.document
const el = placementId && d.getElementById(placementId)
if (!el) {
console.error(`bidAdapter ${BIDDER_CODE}: ${placementId} not found`)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use utils.logError() here?


registerBidder(spec);

function reInitScripts(container, shouldReInitInlineScripts = true, delay = 10) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please explain what does this function do and why do we need it in the adapter?

@@ -0,0 +1,203 @@
import { expect } from 'chai';
Copy link
Contributor

Choose a reason for hiding this comment

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

unit test coverage is very low.

@sumit116
Copy link
Contributor

sumit116 commented Sep 5, 2019

Hi @sdbaron, could you work on the above feedback or do you have any questions?

@sdbaron
Copy link
Contributor Author

sdbaron commented Sep 5, 2019

Hi @sumit116, I had a vacation for a week, but now I’ve returned to work and will make corrections in a couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants