-
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
Submit Brightcom Bid Adapter #3614
Conversation
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.
Hi @vyatsun
While trying to test the adapter, I was encountering a CORS error when it was requesting the bids.
Below is a copy of the error message for reference:
Access to XMLHttpRequest at 'https://brightcombid.marphezis.com/hb' 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? If you need any additional details on the request or payload, please let me know.
Hi @jsnellbaker Could you please try again, and make sure you're sending the 'Origin' and 'User-Agent' headers? If it still doesn't work for you, please share the request details. |
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.
Hi @vyatsun
Thanks for making the update; I can verify that the adapter is successfully returning a bid now with the test params and everything looked good from that perspective.
However there is another item that should be ideally addressed before we merge the adapter. I've made a note below at the relevant area in the code. Can you please take a look when possible?
modules/brightcomBidAdaper.js
Outdated
|
||
function buildRequests(bidReqs, bidderRequest) { | ||
try { | ||
const loc = utils.getTopWindowLocation(); |
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.
This function is eventually going to be deprecated, so it shouldn't be used if possible.
We have setup an alternative feature with this type of information that can be used instead. The associated domain data can be accessed via the bidderRequest.refererInfo
object.
The following page provides some additional details on the object and its data points if you want to review further:
http://prebid.org/dev-docs/bidder-adaptor.html#referrers
Hi @jsnellbaker I've removed the utils.getTopWindowLocation() call. |
Hi @vyatsun Thanks for making the updates; LGTM |
Type of change
Description of change
Be sure to test the integration with your adserver using the Hello World sample page.
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide: