-
Notifications
You must be signed in to change notification settings - Fork 769
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
ip address geolocation lookup #3887
base: master
Are you sure you want to change the base?
Conversation
Thanks for the contribution @aptxx and sorry for the delay. We've been a bit overwhelmed. I'll give this a thorough review in a couple of weeks. |
Hi @aptxx, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from
As a result, please merge with master (no rebase) and then ensure all Prebid Server package import references in the files you’ve changed are |
Signed-off-by: Kehan Pan <[email protected]>
hi @bsardo , codes updated. Sorry for that I forgot to merge after reviewing recent changes and conflicts. This may require more time for review, thank you for your patience and hard work. Let me know if there’s anything I need to do. Main changes:
|
This comment was marked as outdated.
This comment was marked as outdated.
@aptxx sorry for the long delay. This is quite a large PR and we have not had a large block of time that we can dedicate to reviewing it. Can you please resolve conflicts and we'll try to find some time in the next few weeks? |
need I remove setting consent_string_means_in_scope or metrics to reduce codes in this PR? |
Support ip to geo location #2350
Looking for reviews
MaxMind is implemented. The MaxMind reader returns a 3166-1 Alpha2 country code. We've added a mapping for countrycode that converts the parsed Alpha2 code to Alpha3. To align with prebid-server-java and make it easier for non-developers to configure, the mapping data is stored in the country-codes.csv file within the code repository. This file is will be packaged into the binary at compile time.
The configuration files are mostly ported from the Java version to maintain consistency, so the default configurations are identical. The URL https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz is no longer valid. You now need to register a MaxMind account and get download link.
However, you can anonymously download the MMDB file from here: https://github.com/P3TERX/GeoLite.mmdb. But please remember, you will need to package it yourself into a .tar.gz format.
Configs
New section example:
GeoLocation feature need actived at account side. For example, actived in default account
Privacy
Considering that the IP needs to be checked for privacy status before use, and to avoid unnecessary processing of private information, we've extracted a more general method to determine the privacy status.
Additionally, following the traffic diagram from Prebid Server and GDPR, we've also implemented the consent_string_means_in_scope configuration option, which can be configured in both account GDPR and global GDPR settings