Skip to content

Port Clickio: New Adapter - #4724

Open
ClickioTech wants to merge 2 commits into
prebid:masterfrom
ClickioTech:clickio-adapter
Open

ClickioTech wants to merge 2 commits into
prebid:masterfrom
ClickioTech:clickio-adapter

Conversation

@ClickioTech

Copy link
Copy Markdown

🔧 Type of changes

  • new bid adapter

✨ What's the context?

Port of the Clickio adapter merged in PBS-Go: prebid/prebid-server#4786.

Closes #4713

Publisher documentation: prebid/prebid.github.io#6577 (already merged, no Java-specific changes needed).

🧠 Rationale behind the change

The Clickio backend reads bidder params from imp.ext.params, so the adapter copies imp.ext.bidder there for each impression and sends all impressions in a single request. The generic adapter forwards the request unchanged and cannot express this mapping, so a dedicated bidder is used. Bids are mapped to banner impressions by impid, the response currency is passed through.

🔎 New Bid Adapter Checklist

  • verify email contact works (verified by the reviewer in New Adapter: Clickio prebid-server#4786)
  • NO fully dynamic hostnames
  • geographic host parameters are NOT required
  • direct use of HTTP is prohibited - implement an existing Bidder interface that will do all the job
  • if the ORTB is just forwarded to the endpoint, use the generic adapter - define the new adapter as the alias of the generic adapter
  • cover an adapter configuration with an integration test

🧪 Test plan

  • Unit tests in ClickioBidderTest cover request mapping, multiple impressions with distinct params, preservation of other imp.ext fields, bid-to-imp mapping, currency and error handling.
  • Smoke test ClickioTest covers bidder configuration and a banner auction.
  • mvn clean package passes: 8988 tests, 0 failures, 0 Checkstyle violations. ClickioBidder coverage is 100% (lines and branches).

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

Could a maintainer please add the do not port label?

Port of the Clickio adapter merged in PBS-Go (prebid/prebid-server#4786).

Copies imp.ext.bidder to imp.ext.params for each impression, since the
Clickio backend reads bidder params from there, and sends all impressions
in a single request. Bids are mapped to banner impressions by impid.
Drop imp.ext null checks, since core always sets imp.ext.bidder, and the
code comment. Report bid-to-imp mapping errors as bad_server_response.
Split unit tests per behaviour, reduce the smoke test to a single imp and
use regs.gdpr in its fixture.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port PR from PBS-Go: New Adapter: Clickio

1 participant