-
Notifications
You must be signed in to change notification settings - Fork 749
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 adUnitCode to the imp.ext.prebid exception list #4077
Comments
Found the issue when the sanitization of prebid-server/exchange/utils.go Lines 730 to 733 in 3406b59
prebid-server/exchange/utils.go Lines 735 to 744 in 3406b59
Is this intended or could we add |
The PBS-Java team pointed out that adunitcode is NOT the same as all the other exceptions. The current exceptions are all under imp.ext: ae, all, context, data, general, gpid, prebid, skadn, and tid. This request is under imp.ext.prebid. We don't currently have an exception list for that path. There aren't currently very many fields in imp.ext.prebid, but the bidders is one of them, and that definitely has to be cleaned up. So, @krdzo - please explain the use case for imp.ext.prebid.adunitcode when there are other options that don't require awkward Prebid Server code:
Assuming the use case is compelling, here are the fields I'm aware of that are under imp.ext.prebid. If we're going to have to support adunitcode, we need to define a separate list of which fields under 'prebid' bidders are allowed to see.
|
Hello @bretg So for your points:
So yes it's ok with us to stay the way it is. We will just use imp.id as adUnitCode. P.S. you said that there are no exceptions for imp.ext.prebid but in PBS-Go there are. As you can see in the code the
|
Thanks for the observations @krdzo . Will discuss with the committee in the next meeting. |
There are exceptions which are documented here, per the "Adapter Sees?" column. I notice that adunitcode is included there, but the path is Simple to address, however if your adapter requires the adunitcode this may be the first instance of an adapter strongly coupled to Prebid.js. It's not safe to assume all traffic is sent from Prebid.js. We should discuss this as well. |
@SyntaxNode we don't only relay on adunitcode. We have a fallback on imp[].id, trying to push to change to gpid, but when it's Prebid.js then we use adunitcode, if someone doesn't use PBS with prebid.js then we just use imp[].id and because adunitcode and imp[].id are mostly the same thing in PBS I changed it to just use imp[].id |
@SyntaxNode - is the missing [] just a doc problem or part of the code as well? Underneath imp[].ext.prebid, I'd say only adunitcode and storedrequest should be visible to adapters. Should we think of that as an exception list parallel to the imp[].ext list? |
It's a docs problem, which may also be why it was overlooked when coded.
Yes. That works for me.
I agree those are fine to share with adapters. We currently allow |
I don't see any adapters reading from |
Hello.
We are making a new adapter for prebid and would like to use
imp[].ext.prebid.adunitcode
in our requests.The problem is that we don't have access to it. For example
adunitcode
is not passed here inside theMakeRequests
method, but there was one when sending the request. So adapters don't have access to prebid.jsadUnitCode
.Is this a bug or it should work like this?
If this is the intended behavior is there a way for us to have access to it inside the adapter?
The text was updated successfully, but these errors were encountered: