-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add all currencies to JSON schema #126
Conversation
@dshore any chance to get this merged? this should be a minor change but help lots of international developers. |
@dlackty See: https://docs.prebid.org/dev-docs/modules/currency.html
This is the list in the schema validation file. I am going to close this PR but I will allow CLI option to provide your own schema. |
Hi @dshore, I'm aware of the currency module and previously attempted to add TWD to the list of currencies in the current file a few years ago (see pull request). However, according to @bretg's comment at the time:
As a result, we started maintaining our own version of the currency file for Prebid, specifically for the Taiwan market. Many publishers and adtech vendors are using this file (link to repository). For this case, it seems that for those unsupported currencies, we need to use customization everywhere from currency module file to line-item-manager. It actually adds so many obstacles for people adopting Prebid.js here but I understood your situation. However, I still believe that the line-item-manager project should support all the currencies available in Google Ad Manager. Some publishers use only local bidders that place bids in TWD (e.g., clickforce/appier) and send the auction results to their GAM in TWD without requiring any currency conversions. In such cases, they are not using currency conversions and they're still unable to use line-item-manager without a custom schema. I believe this is a common and valid use case. I understand that this may be a minor topic, but it holds significant importance for those countries and currencies that are currently unsupported. Thank you for taking the time to read and consider this matter. |
@dshore - FWIW, I'm in favor of allowing the line item manager to recognize currencies not on the main Prebid conversion file.
What does 'schema' mean here? |
@bretg The new CLI setting easily allows for a custom validation list. But if we want to merge all these currencies into the default I am fine with that as well, just seems we are creating a Prebid tool and not an explicit GAM tool. |
@bretg Yes it only works with GAM, but code was structured to add other management services |
@dlackty You can try #138 as a dev release:
|
@dshore Yes, I can confirm that this works. Thank you! I understand the motivation to make it a Prebid tool but not a GAM tool. Prebid.js now have lots of bidders that supports various currencies, and some of the currencies are not supported by this tool. However, publishers should be able to use these bidders with this tool, without currencies conversions, if their ad server does support bidder's currency, right? |
@bretg Looks like @dlackty Is successfully using the custom schema support. But to close out this issue can we agree on what the default supported list of currencies should be for this tool? The list exists in the schema to support user validation, which can be helpful in finding errors in configuration. |
I think the tool should support whatever the ad server supports. But as long as there's a way to make it work and it's reasonably documented, all good. |
@bretg That is the change I will make, i.e. I will move the validation to reflect it is an ad server constraint, and not a prebid constraint. |
I pull the currency list from Google Ad Managers's setting UI.