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

JW Player Real Time Data Provider #5537

Merged
merged 51 commits into from
Aug 20, 2020
Merged

Conversation

karimMourra
Copy link
Collaborator

@karimMourra karimMourra commented Jul 23, 2020

Type of change

  • Feature

Description of change

Adds the jwplayer RTD Provider module which allows Ad Bidders to obtain JW Player's Video Ad Targeting information.
It is a submodule of the RTD Module.
The module will fetch segments for the media ids present in the prebid config when the module loads. When bid requests are made, it will check for params in the AdUnit set by the publisher and will set the corresponding targeting information to the real time data returned in getData.

Other information

The base branch of this PR is #5519 and should be merged after it. The only changes made to it are the addition of jwplayerRtdProvider.js and jwplayerRtdProvider_spec.js, and the modification of .submodules.json

@lgtm-com
Copy link

lgtm-com bot commented Jul 23, 2020

This pull request introduces 1 alert when merging 6c96794 into eb467f4 - view on LGTM.com

new alerts:

  • 1 for Expression has no effect

@lgtm-com
Copy link

lgtm-com bot commented Jul 24, 2020

This pull request introduces 1 alert when merging 34b9f9b into c933c4f - view on LGTM.com

new alerts:

  • 1 for Expression has no effect

@lgtm-com
Copy link

lgtm-com bot commented Jul 25, 2020

This pull request introduces 1 alert when merging 00f32e3 into c933c4f - view on LGTM.com

new alerts:

  • 1 for Expression has no effect

fetchTargetingInformation(params);
});

submodule('realTimeData', jwplayerSubmodule);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patmmccann this is the line where we register as an RTD submodule

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty! how do you like this format?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean how do I like having the jwplayer module be a submodule of an existing module ? I think it's great for reusability and consistency across all rtd providers. Thank you for suggesting this approach.

@stale
Copy link

stale bot commented Aug 16, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 16, 2020
@stale stale bot removed the stale label Aug 17, 2020
@lgtm-com
Copy link

lgtm-com bot commented Aug 17, 2020

This pull request introduces 1 alert when merging e444781 into db02d8a - view on LGTM.com

new alerts:

  • 1 for Expression has no effect

@karimMourra
Copy link
Collaborator Author

@idettman the PR that was blocking this PR has been merged. Could you please review ?

@karimMourra
Copy link
Collaborator Author

@robertrmartinez Could you please review this PR ? It was blocked by #5519

@idettman idettman merged commit 494015f into prebid:master Aug 20, 2020
BrightMountainMediaInc pushed a commit to BrightMountainMediaInc/Prebid.js that referenced this pull request Sep 14, 2020
* [AD-469] Add player vendor.

* ssets up targeting module

* implements getTargeting

* implements getPlayer

* blocks bids until all targeting requests complete

* makes getTarget more resilient

* enables mdule hook

* replaces triple dot notation

* Revert "replaces triple dot notation"

This reverts commit 7a76ea6.

* Revert "Revert "replaces triple dot notation""

This reverts commit 130aa2a.

* checks current item only if mediaid is missing

* adds unit tests

* completes test cases

* stores segments for current item

* renames jwp targeting

* refactors fetch tests

* refactors get targeting tests

* refactors blocking tests

* renames module

* cleans changes made to app nexus

* removes setup and player utilities

* renames onFetchCompletion

* renames onFetchCOmpletion in unti tests

* throws instead of early return

* reduces timeout and introduces override

* targeting timeout supersedes

* renames feed fetch timeout

* adds inline doc

* uses find util

* adds jwplayer rtd provider

* implements targeting retrieval

* ensures provider is found

* implements init

* jwTargeting is object

* commits test file

* adds file extension

* adds tests

* fixes test for proper structure

* uses default clock mock

* ends reqs before rtd module timeout

* removes obsolete export

* request counts updates in aggregate

* cleans server mock after each test

* deletes jwplayer targeting

* includes content id

* adds test for missing segment

* getSegments is nullable

* replaces condition with guard

* updates doc

* adds md file

* adds example page

Co-authored-by: vseventer <[email protected]>
Co-authored-by: karimJWP <[email protected]>
BrightMountainMediaInc pushed a commit to BrightMountainMediaInc/Prebid.js that referenced this pull request Sep 14, 2020
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