-
Notifications
You must be signed in to change notification settings - Fork 2k
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
MobianRtdModule: Add more signals from API endpoint to first-party data #11999
MobianRtdModule: Add more signals from API endpoint to first-party data #11999
Conversation
modules/mobianRtdProvider.js
Outdated
/** | ||
* This module adds the Mobian RTD provider to the real time data module | ||
* The {@link module:modules/realTimeData} module is required | ||
* @module modules/anonymisedRtdProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you from idward / anonymised? do you mean to import their type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no -- that's embarrassing. I've had trouble getting the build to include the real time data module without including it explicitly, and hoped that typing would help. Will remove...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add yourself to .submodules.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prebid.js/modules/.submodules.json
Line 88 in dc6c0c3
"medianetRtdProvider", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submodules file reference is missing
(Thanks -- fixed!! In the last commit, we've fixed another bug where the browser interprets the API response as a string, in which case we need to call |
modules/mobianRtdProvider.js
Outdated
@@ -24,6 +22,21 @@ export const mobianBrandSafetySubmodule = { | |||
function init() { | |||
return true; | |||
} | |||
|
|||
function safeJSONParse(input) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you import this?
Line 1107 in 465096c
export function safeJSONParse(data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll just import this, I haven't got any reason to believe that in fact the API response ever came in pre-parsed. It'll be a bit cause I need to fix the tests.
Type of change
Description of change
In addition to adding Mobian's determination of brand safety to the first party data, we now also add its
determination of sentiment, emotion, and garm risk categories.