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

New bid adapter for OPEN8 #3521

Merged
merged 6 commits into from
Feb 21, 2019
Merged

New bid adapter for OPEN8 #3521

merged 6 commits into from
Feb 21, 2019

Conversation

aiichiro
Copy link
Contributor

@aiichiro aiichiro commented Feb 6, 2019

Type of change

  • New bidder adapter

Description of change

  • test parameters for validating bids
{
    bidder: 'open8',
    params: {
        slotKey: '2ae5a533'
    }
}
  • contact email of the adapter’s maintainer: [email protected]
  • official adapter submission

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Hi @aiichiro

Thanks for submitting this new adapter.

When I was attempting to test both the banner/video outstream test placements - I encountered set of 404/CORS related errors. I copied the text below for reference:

GET http://as.vt.open8.com/v1/control/prebid?slot_key=2ae5a533&imp_id=3l94t3s93z0cigm5&bid_id=2e09c4f8338215& 404 (Not Found)
Access to XMLHttpRequest at 'http://as.vt.open8.com/v1/control/prebid?slot_key=2ae5a533&imp_id=3l94t3s93z0cigm5&bid_id=2e09c4f8338215&' from origin 'http://test.localhost:9999' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can you please take a look to see what's amiss? If you need any additional details, please let me know. Thanks

@jsnellbaker
Copy link
Collaborator

jsnellbaker commented Feb 6, 2019

Also - can you please put together a docs PR (here) for your bidder? You can refer to the other bidder files for reference.

@aiichiro
Copy link
Contributor Author

aiichiro commented Feb 7, 2019

@jsnellbaker Thank you for your review.
Sorry, our server is not available now because it is under development yet.
But we tested adapter in staging environment and it worked.

I think we should send PR after our server has been available.
I'm sorry to trouble you and I was wondering if you could check PR after it.
Should we close this PR?

Also we create a doc PR.
prebid/prebid.github.io#1142

Thanks

@jsnellbaker
Copy link
Collaborator

@aiichiro Thanks for clarifying. Do you have a rough ETA for when the server would be available for use? If it's in the relatively near-future, we could just keep this PR open for a bit. If it's longer, we can close for now and resubmit it later. Let me know either way. Thanks.

@aiichiro
Copy link
Contributor Author

@jsnellbaker Thanks for checking.
Now our server get to be available for use.
I would appriciate it if you could check again.

By the way, our video is floating header overlay. so video size depends on window size.

Thanks

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Hi @aiichiro
Thanks for making the changes. I tested both the outstream and banner ads again and they were delivering properly.

While testing, I did observe some warning/errors that were thrown in the browser's console log from both ads. These errors were caught in try/catch blocks so it didn't interfere with the page loading, but I wanted to bring them to your attention in case you wanted to add an extra check in your code in these areas to handle the situation when the fields aren't populated in a bid response (or to confirm that this is what you want).

I noted the two areas in the code that caused the warning/error below; please let me know what you think. Thanks.

mediaType: BANNER
});
try {
bannerAd.imps.forEach(impTrackUrl => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could add a check to verify the bannerAd.imps is populated before running the forEach.

return syncs;
},
onBidWon: function(bid) {
const winUrl = bid.nurl.replace(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could add a check here to verify the nurl property is populated in the bid object.

@aiichiro
Copy link
Contributor Author

@jsnellbaker Thanks for your review.
The code that you pointed out were problem exactly and I fixed it. Thank you.
�Could you check them?
Thanks

@jsnellbaker
Copy link
Collaborator

Thanks for the update; LGTM

@jsnellbaker jsnellbaker merged commit 240c606 into prebid:master Feb 21, 2019
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