-
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
AdSpirit Bid Adapter #2419
AdSpirit Bid Adapter #2419
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.
@SpreeGorilla Thanks for submitting this adapter. There are a few items that need to be addressed:
- Please remove the
hello_world.html
,pbjs_ucfunnel_gpt.html
andrelease.md
files from this PR. The only files that should be included in a new adapter submission are your bid adapter.js file, the corresponding .md file and your bid adapter_spec.js unit test file. - The test param data is not working, what's the ideal value that should used for the
host
param? - I can't confirm this yet, but I expect that in the
interpretResponse
function - you'll need to access the response information by looking in theserverResponse.body
field, not the parent object.
Can you please review and make the necessary updates? Let me know if you have any questions.
Hi @SpreeGorilla have you had the chance to review the feedback? Please let me know if you have any questions. Thanks! |
Hi @jsnellbaker, |
Hi @SpreeGorilla, To clarify - please remove the 3 noted files ( If it's easier - we could also just close this PR, you could then reset the files that don't need to be changed, and open a new PR with just the intended files for your adapter. Please let me know what you think. Thanks. |
Ok, let's stay with this PR. I made the requested changes... |
Hi @SpreeGorilla thanks for making the attempt. But with the latest commit, I think this would actually delete the Given the circumstances, can you obtain a copy of the current master versions of these files and upload them into this PR? It's not ideal, but I think it's the easiest option at this point to move forward with the merge. Thanks and sorry for the back/forth on these files. |
@SpreeGorilla Thanks for making the changes in your unit test to resolve the Travis errors. One last thing for this PR - could you update the test information in the .md file to include the Thanks. |
@SpreeGorilla I was retesting the adapter after all the changes, but I'm currently getting a 204 no content response from the server when the request goes out. Below is a copy of the request URL as it gets executed:
Could you take a look? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello @SpreeGorilla Have you had the chance to look into my previous comments? I'm still seeing a No Content 204 response from your server when trying to test the delivery. Additionally, could you update the |
Ok, I finally managed to tinker something. You can use host = "n1test.adspirit.de" and placementId = 5 for testing (see .md file). |
@SpreeGorilla Unfortunately, I'm still seeing the 204 No Content response from the server when I'm trying to test the adapter. Even with the new params, it's still the same. Below is a copy of the request URL: Is there anything malformed in the URL that's generated? Is there anything missing? |
Oh sorry, I didn't consider the async parameter. Now it's working. |
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 @SpreeGorilla thanks for making the change. I am now successfully seeing a response from the server.
However I'm seeing some issues from that bid response that should be reviewed. Please see below.
modules/adspiritBidAdapter.js
Outdated
let host = spec.getBidderHost(bidObj); | ||
let adm = '<scr' + 'ipt>window.inDapIF=false</scr' + 'ipt><scr' + 'ipt src="//' + host + SCRIPT_URL + '"></scr' + 'ipt>' + '<ins id="' + bidObj.adspiritConId + '"></ins>' + adData.adm; | ||
const bidResponse = { | ||
requestId: bidRequest.bidId, |
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 is returning an undefined value which is preventing the bid from being accepted later in the code.
It looks like it should be bidObj.bidId
instead of bidRequest.bidId
.
modules/adspiritBidAdapter.js
Outdated
cpm: cpm, | ||
width: adData.w, | ||
height: adData.h, | ||
creativeId: adData.placement_id, |
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.
Not sure if this is just an issue with the test placement, but this is also currently resulting in an undefined
. It seems like the placement_id
field isn't in the server response body, is that expected?
The response body I currently see from testing only has the following fields:
- cpm
- adm
- w
- h
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.
Ok, thanks for the hints! Fixed.
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.
LGTM
New docs PR is prebid/prebid.github.io#421 |
Type of change
Description of change
Adding AdSpirit bid adapter and aliases
Other information
docs at prebid/prebid.github.io#396