-
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
TPMN Bid Adapter: Change End-Point & Support Video #10611
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.
Good Job!
modules/tpmnBidAdapter.js
Outdated
} | ||
if (bid.params.inventoryId) rtbData.ext = {}; | ||
if (bid.params.inventoryId) rtbData.ext.inventoryId = bid.params.inventoryId | ||
if (bid.params.bcat) rtbData.bcat = bid.params.bcat; |
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.
you have accept openrtb specification of bcat as well, you can take your params as an override
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.
update openrtb block attributes
modules/tpmnBidAdapter.js
Outdated
|
||
function getBannerSizes(bidRequest) { | ||
return parseSizes(deepAccess(bidRequest, 'mediaTypes.banner.sizes') || bidRequest.sizes); | ||
VIDEO_ORTB_PARAMS.forEach((param) => { |
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 seems unnecessary; the ortb convertor is already doing all this for you. Is that correct @dgirardi ?
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.
i think.. this is needed to check which parameters are allowed.
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.
I think this example does this with less code, as long as the parameters you're checking match the ones used in ortbConverter
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.
I modified the code in the direction you suggested. ([this example] (https://github.com/prebid/Prebid.js/blob/master/libraries/ortbConverter/README.md#example-taking-video-parameters-from-bidrequestparamsvideo) )
Revert "remove VIDEO_ORTB_PARAMS, BANNER_ORTB_PARAMS"
I followed your recommendations, but the desired results were different.
First of all, the test case did not work as expected.
- It is judged that overrides processing does not operate normally in TestCase.
- When I tried to compare the contents of 'buildRequests()' in TestCase, it did not match.
modules/tpmnBidAdapter.js
Outdated
'mimes', | ||
'minduration', | ||
'maxduration', | ||
'placement', |
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.
you're missing plcmt
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 reverts commit 2699115.
Hello. @dgirardi I would like to request a review of the TPMN prebid.js pull request once again. Regarding the code simplification using the previously mentioned 'ortbConverter,' we have decided to 'Revert' it. We initially aimed to streamline the code using 'ortbConverter,' but the results generated using 'buildRequests' in the test cases behaved differently than expected. In the test case 'should use bidder video params if they are set,' it does not perform as desired. We would like the new 'video parameter' settings to properly take effect when specifying them. The issue we encountered is that the new settings are not being reflected correctly, resulting in undesired outcomes. The current code is working as intended at the moment. I am requesting a code review in its current state. Additionally, I'd like to inquire if there are any other points for consideration. |
@tpmn-admin we're always looking to improve so I'm interested in more details on what was not working! I posted here the changes that I would submit for ortbConverter. Some notes:
|
This comment was marked as resolved.
This comment was marked as resolved.
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.
I forgot to mention the feature disabled tests - sorry! This LGTM pending log cleanup that I mention below if you agree.
modules/tpmnBidAdapter.js
Outdated
} | ||
if (uspConsent && uspConsent.consentString) { | ||
policyParam += `&ccpa_consent=${uspConsent.consentString}`; | ||
utils.logWarn('Building bidResponse'); |
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.
I'm not sure if I missed these in my previous review - I don't think they belong here, perhaps this was to help during development? Prebid already logs requests and responses.
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.
I added it while creating example.html, and it was reflected as is. I will remove that part.
@patmmccann Please request a code review once again. |
@dgirardi |
Type of change
Bugfix
Feature
New bidder adapter
Code style update (formatting, local variables)
Refactoring (no functional changes, no api changes)
Build related changes
CI related changes
Does this change affect user-facing APIs or examples documented on http://prebid.org?
Other
Description of change
Other information