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

Coinzilla Bid Adapter : add Web3 detection signal #12344

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tiberiu-sevio
Copy link
Contributor

Type of change

  • Feature

Description of change

Added a web3 detection signal into the payload.

Copy link

Tread carefully! This PR adds 11 linter errors (possibly disabled through directives):

  • modules/coinzillaBidAdapter.js (+11 errors)

@ChrisHuie
Copy link
Collaborator

@tiberiu-sevio looks like there are a few linting errors. Can you also please add unit tests?

@ChrisHuie ChrisHuie changed the title Coinzilla Bid Adapter : Add Web3 detection signal Coinzilla Bid Adapter : add Web3 detection signal Oct 21, 2024
@ChrisHuie ChrisHuie self-requested a review October 21, 2024 12:11
@ChrisHuie ChrisHuie self-assigned this Oct 21, 2024
}
if ((typeof window.tron !== 'undefined')) {
installed_wallet = "TRX";
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, it appears this detection is very similar to

eth: typeof window != 'undefined' && !!window.ethereum,

Any chance you could move both detection routines into a utility in /libraries/crypto/index.js ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @patmmccann, we'd love to keep them at this moment as it is to see if there's traction with the web3 targeting.

Our ad codes are already up and running with this targeting on Coinzilla and that's why we'd love to have it available on our Prebid adapter as soon as possible too.

PS: Thank you @ChrisHuie for hinting the linter errors, we didn't changed any other logic, we just added the wallet detection, that's why we don't have unit testing on Prebid.

Our detection is already live at https://coinzillatag.com/lib/display.js

Cheers!

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.

3 participants