-
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
Add sspBC adapter #5531
Add sspBC adapter #5531
Conversation
width: serverBid.w, | ||
height: serverBid.h, | ||
bidderCode: BIDDER_CODE, | ||
mediaType: 'banner', |
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.
please create meta.advertiserDomains
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.
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.
Understood! I've looked into it, and while our JSON endpoint does not return bid metadata, it should be available server-side (as underlying logic is using openRTB protocol).
I've created a change request, will update adapter & pull request once it's done.
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.
Adapter & test have been updated, bids now have meta.advertiserDomains property:
meta: { advertiserDomains: serverBid.adomain, },
I'm not getting a test bid back Request URL: https://ssp.wp.pl/bidder/?cs=true&bdver=4.4&pbver=3.27.0-pre&inver=0 |
…set test mode in adexchange, read site SN from bid response
"Not getting a test bid back" - this has been resolved. The was an issue with DSP not sending test ad. We're now enforcing test demand by adding test: 1 to bid parameters: I've created two simple test pages:
|
I'm still not getting a bid back. Here's the request body:
|
Regarding not getting a bid back: The adapter accepts gdpr-compliant requests only. It will not forward any requests that do not have consent for vendor BusinessClick (vendor Id 676), and purposes 1 & 3. In above case, gdpr data is not supplied, and therefore request is not sent to SSPs. Could You append GDPR data to the request? If You want, You can use this javascript snippet, that will set up IAB v1 compliant cmp API: We can change the logic (so that test requests will be sent regardless of gdpr status), but this might take some time. |
Why don't you hard code a consent string into your unit tests |
@patmmccann Thank You, good idea! I've added two more tests, that will perfrom xhr call to our json endpoint. One with test settings & hardcoded consent, one with same settings but no gdpr. |
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.
Please remove XHR from tests
const requestSingleTestNoGDPR = spec.buildRequests(bids_test, bidRequestTestNoGDPR); | ||
|
||
it('should return test ad when request is made with test:1 and gdpr data', function (done) { | ||
const xhr = new XMLHttpRequest(); |
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.
There should be no XHR or network requests in your tests. Our tests will never pass if we are reliant on 250 vendor endpoints to be working. All responses should be mocked in the test frame.out
}); | ||
|
||
it('should return no ads for request without gdpr, regardless of test settings', function (done) { | ||
const xhr = new XMLHttpRequest(); |
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.
See above
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.
@mike-chowla I've removed ajax tests. I have left bidRequestTest and bidRequestTestNoGDPR, which should provide configs that
- always receive one test ad (bidRequestTest)
- never receive test ad, due to the lack of GDDPR (bidRequestTestNoGDPR)
Could You use config provided in bidRequestTest and check if you're getting a bid response?
Sorry, Mike makes a good point, my mistake. |
Update sspbc-adapter branch
sspbc-adapter branch has been updated |
Update sspbc-adapter branch
I've updated sspbc-adapter branch - it should now incorporate all commits from Prebid.js/master as of 24.8.2020 08:40 GMT Is there anything else that needs to be updated? |
* add sspbc adapter * tests for sspbc adapter * sspBC adapter v4.5: set correct creativeId, add adomain to bid.meta, set test mode in adexchange, read site SN from bid response * sspBC adapter v4.5: set meta.advertiserDomains, update test to expect bid.meta * sspBC Adapter: add ajax tests (test ad with & without gdpr) * sspBC Adapter: remove ajax tests Co-authored-by: Wojciech Biały <wb@WojciechBialy.local>
This reverts commit 6c61aa9.
Type of change
Description of change
Add bidder adapter used by Wirtualna Polska Media and it's partners
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: