Skip to content
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

Setupad adapter: param change and minor fixes #11770

Merged
merged 3 commits into from
Jun 16, 2024

Conversation

eldzis
Copy link
Contributor

@eldzis eldzis commented Jun 12, 2024

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated 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

Changed account_id param from optional to required, updated tests accordingly and made a minor bug fix related to URL encoding for REPORT_ENDPOINT. &currency and &timestamp params were encoded as "¤cy=" and "×tamp=" during bundling process.

Other information

SETUPAD prebid.github.io PR: prebid/prebid.github.io#5411

Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

  • modules/nextMillenniumBidAdapter.js has 9 duplicated lines with modules/setupadBidAdapter.js

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

  • modules/nextMillenniumBidAdapter.js has 9 duplicated lines with modules/setupadBidAdapter.js

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

@patmmccann
Copy link
Collaborator

Hi, the getAd function appears to duplicated in your adapter and another. Please modify both to import it, thanks!

@eldzis
Copy link
Contributor Author

eldzis commented Jun 14, 2024

Hi @patmmccann, after closer inspection I stripped down the function to suit only our adapter needs and refactored to make it more readable. Now there is no duplicated code and as the function is very basic I don't think there's a need for moving main nextMillenium getAd function and importing it as it would only add more unnecessary code to our adapter.

@patmmccann patmmccann merged commit eedcb05 into prebid:master Jun 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants