-
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
Adlive bid adapter #3109
Adlive bid adapter #3109
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.
@mifanich Thanks for submitting your adapter.
I took a look over the code and it mostly seems good. There is one area that can be reviewed (see in-line comment below).
However when I tried to test your adapter with the test params on the hello_world
page, I wasn't getting anything back from your server.
In the browser, I was seeing two calls going out to your server. One had a Request Method of OPTIONS
that just returned a 200 OK response. The other (which seemed to be the POST but wasn't classified as such in the headers) request just canceled.
Can you take a look at this behavior and see why it may not be working? We'd like to see a test ad working with new adapters to ensure the auction workflow is correct.
modules/adliveBidAdapter.js
Outdated
} | ||
}, | ||
|
||
getUserSyncs: function (syncOptions, serverResponses, gdprConsent) { |
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.
If you don't have any userSync pixels you want to fire, you can just remove the entire getUserSyncs
property from your adapter. It's not required to define it.
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.
If I do not define this function, tests do not pass.
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.
Can you clarify what tests do not pass? I disabled that part of your adapter code in the branch copy I checked out and rangulp test
. There were no unit test errors from what I saw.
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.
@jsnellbaker
I mean circleci tests.
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.
@mifanich I ran the browserstack tests (which is what circleci runs for us automatically) locally with the getUserSyncs
code disabled and I didn't see any test failures.
It's possible there was some other issue that happened in the circleci tests you saw that failed that were unrelated to your adapter's code. Can you try to make the change again and push it in this PR so we can retest it?
@mifanich Looks like the circleci test without the userSync code ran fine this time. Please let me know about the delivery/response issue when you get the chance. Thanks! |
@mifanich I tried to test the adapter again with the params you updated in the last commit. However I'm still seeing an error when the request is going out.
I have attached screenshots of the request as seen in the Console and Network tabs. Can you take a look? |
I have changed test params and improve some logic. |
@mifanich Thanks for the update, I'll check again. The circleci failed for an unrelated reason; I restarted the build and it completed fine. |
@mifanich I retested the adapter and I was seeing a response coming back from the server. However the bid wasn't being accepted as per the logic in the The response contained a Below is a copy of the response object I saw:
|
Yes, you are right! If response contains is_passback=1 it means there is no bids. Need to reload page several times because this is production endpoint. Bids may not present. |
@jsnellbaker please check updates |
@mifanich Is there some way you can setup a dedicated test? I've been trying to get something to return off/on for a while now and I haven't seen it once return an actual bid. |
@jsnellbaker yes, I will do it for 1-2 days |
@mifanich Thanks, let me know when it's ready and if I need to use any different params. |
@jsnellbaker Fixed. |
That test param did work and I saw the test ad; LGTM |
* send request to endpoint * tests * improve tests * Add description. Small fix * add maintainer email * restore origin package.json * add getUserSyncs function * remove userSyncs * change endpoint_url params * change test params * change netRevenue to false
* send request to endpoint * tests * improve tests * Add description. Small fix * add maintainer email * restore origin package.json * add getUserSyncs function * remove userSyncs * change endpoint_url params * change test params * change netRevenue to false
* send request to endpoint * tests * improve tests * Add description. Small fix * add maintainer email * restore origin package.json * add getUserSyncs function * remove userSyncs * change endpoint_url params * change test params * change netRevenue to false
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:
add adlive bid adapter doc prebid.github.io#970
Other information