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

GAM Video Module: make hook to category translation dependent on config #6464

Merged

Conversation

patmmccann
Copy link
Collaborator

@patmmccann patmmccann commented Mar 23, 2021

This would add a requirement that getConfig('brandCategoryTranslation.translationFile') exists for the hook to the translation module to occur, solving #4048

This is technically a breaking change, as publishers that want this hook to occur from dfp video module would have to define this config, however I think there are zero affected pubs, because the default translation file is for freewheel, so it wouldn't make any sense not to have the config if you are using dfp video module. As such, I don't think it actually requires a doc change on prebid.org, but I added one just in case.

This would add a requirement that getConfig('brandCategoryTranslation.translationFile') exists for the hook to the translation module to occur, solving prebid#4048

This is technically a breaking change, as publishers that want this hook to occur from dfp would have to define this config, however I think there are zero affected pubs, because the default translation file is for freewheel, so the it wouldn't make any sense not to have the config.
@patmmccann patmmccann changed the title Update dfpAdServerVideo.js dfpAdServerVideo.js: make hook to category translation dependent on config Mar 23, 2021
@patmmccann patmmccann added 5.0 API Change minor needs 2nd review Core module updates require two approvals from the core team needs review video labels Mar 23, 2021
@jsnellbaker jsnellbaker self-requested a review March 26, 2021 18:34
@jsnellbaker jsnellbaker self-assigned this Mar 26, 2021
@patmmccann
Copy link
Collaborator Author

@jsnellbaker any updates on this?

@patmmccann patmmccann requested a review from snapwich April 27, 2021 16:18
@jsnellbaker
Copy link
Collaborator

So in looking through this change and the code within the modules/categoryTranslation.js file, it should be technically fine for now, but it may cause some headache later.

At the moment, the categoryTranslation module only has 'default' functionality for the freeWheel adserver. If we ever wanted to setup a default translation file for dfp, then this change would require the publisher to specifically include the setConfig setup and list the 'default' file - or else this hook would never execute. But specifying the setConfig, it would trigger the call for the file anyway (which is the other way to use the categoryTranslation module).

While I'm not sure how I feel about that point, I'm not sure of another alternative to suppress the warning message.

@snapwich Do you have any thoughts about the above or any other alternatives that may be open?

@patmmccann
Copy link
Collaborator Author

patmmccann commented May 4, 2021 via email

@gglas
Copy link

gglas commented May 7, 2021

@snapwich Hey rich - have you had a chance to look at Jason's question?

@snapwich
Copy link
Collaborator

personally i'd just accept the warning being present and have people ignore it. that's why i created it as a warning and not an error because it's only there to signal a possible misconfiguration. but if we really want to put the hook behind a config flag i'm not opposed to that idea.

i'm not familiar enough with the dfpAdServerVideo module to say if that's a good or bad idea so i'll have to defer to @jsnellbaker's expertise.

@patmmccann
Copy link
Collaborator Author

patmmccann commented May 10, 2021 via email

@patmmccann patmmccann added major and removed needs 2nd review Core module updates require two approvals from the core team minor labels May 11, 2021
@patmmccann patmmccann changed the title dfpAdServerVideo.js: make hook to category translation dependent on config GAM Video Module: make hook to category translation dependent on config May 26, 2021
@patmmccann patmmccann merged commit 5370746 into prebid:prebid-5.0 Jun 4, 2021
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.

5 participants