-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Freedom Ad Network Bidder Adapter: Update to new API (master branch) #13496
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
Conversation
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
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. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀 |
Would it make sense to extract this common bid floor selection mechanism into a library or inside util? |
ortbConverter comes with some common logic already - it's not quite the same as what you have here ( If you do prefer to look for the minimum then yes, extracting a shared library is better. Note however that a bid at the minimum floor may actually be below the floor and rejected by the priceFloors module (if it's not for the mediaType / format that had that floor). |
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
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. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀 |
8bcb3ee
to
c0d71e5
Compare
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
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. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀 |
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
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. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀 |
@patmmccann finally had time to address your comments, thank you for the insights! Let me know if anything else is needed. |
@ChrisHuie any way I can run the e2e again for the same PR, or are some of those failing "normal"? |
are and mediasniper the same company? |
16b86aa
to
297d875
Compare
Nope, just used their implementation as guidance and had not realized a generic bidFloor routine was available. |
Did you notice the automated alert? Overriding text plain to json has performance issue s |
@patmmccann oops, missed that. Just pushed a fix. Thanks for the help! |
Your latest commit causes your tests to fail |
03838b9
to
c123d69
Compare
Type of change
Description of change
Updated the Freedom Ad Network adapter to speak OpenRTB directly instead of the old proprietary protocol. Now every bid request is built as a standard OpenRTB 2.x JSON payload (impressions, device, user, etc.), and every response is parsed from an OpenRTB seatbid/bid structure. It uses the recommended Prebid.js ORTB converter and follows best practices from Prebid.js.
Automated tests were also updated cover the new OpenRTB flows, adding unit tests that verify correct construction of imp[] objects, parsing of seatbid responses, and proper routing to each FAN sub‑network. In addition, we implemented user synchronization URLs (syncUrls) so that Prebid can load pixel or iframe sync endpoints for each FAN segment. Finally, consent handling was improved by mapping GDPR and CCPA signals into the OpenRTB regs and user.ext blocks, so the adapter now respects publisher‑provided consent strings and only bids when allowed.