Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

ras bid adapter: support for pos

Open wsusrasp opened this issue 3 years ago • 10 comments

Type of change

  • [ ] Bugfix
  • [X] 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

I have added new parameter to the adapter.

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer
  • [ ] official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

  • A link to a PR on the docs repo at https://github.com/prebid/prebid.github.io/

Other information

wsusrasp avatar Aug 05 '22 12:08 wsusrasp

Here's an example

https://github.com/prebid/Prebid.js/blob/6f4fb5b78a4bc31a1f84b59ec5b98d4e3bcf0179/modules/ttdBidAdapter.js#L198

patmmccann avatar Aug 05 '22 13:08 patmmccann

Hello, I have updated the code to read the data off the adunit. However I seem to have an issue with one of the tests unrelated to the change, updating the branch with the current master did not seem to help. Do you have an idea what is the problem maybe? Thank you

wsusrasp avatar Aug 08 '22 11:08 wsusrasp

Hello, I have updated the code to read the data off the adunit. However I seem to have an issue with one of the tests unrelated to the change, updating the branch with the current master did not seem to help. Do you have an idea what is the problem maybe? Thank you

Rerunning CircleCI. There is currently a flaky test that is popping up more often the last several days

ChrisHuie avatar Aug 08 '22 12:08 ChrisHuie

Appears to still not be read off mediatypes.banner.pos

patmmccann avatar Aug 11 '22 00:08 patmmccann

@patmmccann It seems I have misunderstood due to naming collision - the pos that I am reading off the bid params is not the same as adunit's pos. The one here is our custom param for determining the position of adunit with the same name if they are embedded multiple times. It is impossible for me to set that parameter elsewhere and mixing it with mediaTypes pos would later yield incorrect results when generating reports, since it takes different values than we expect. How should I proceed in this case?

wsusrasp avatar Aug 11 '22 12:08 wsusrasp

interesting; the 'pos' is an extremely well understood field by most rtb participants; perhaps you'll want to reconsider the name to avoid the collision and the resulting confusion?

patmmccann avatar Aug 11 '22 12:08 patmmccann

Sadly we are already using this value in multiple applications on our side and refactoring it will not be easy

wsusrasp avatar Aug 11 '22 13:08 wsusrasp

How about you copy it to pos on the endpoint payload but your publisher facing configuration has a better choice of name?

patmmccann avatar Aug 15 '22 20:08 patmmccann

Sequence seems like a candidate parameter name

patmmccann avatar Aug 16 '22 12:08 patmmccann

That sounds reasonable, I'll update the PR shortly. Thanks

wsusrasp avatar Aug 16 '22 12:08 wsusrasp

please also copy your .md changes over to the docs repo

patmmccann avatar Aug 18 '22 14:08 patmmccann