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

Collect data about native + minor changes #4807

Merged
merged 35 commits into from
Feb 5, 2020
Merged

Collect data about native + minor changes #4807

merged 35 commits into from
Feb 5, 2020

Conversation

bjorn-lw
Copy link
Contributor

@bjorn-lw bjorn-lw commented Feb 1, 2020

Type of change

  • Feature
  • Refactoring (no functional changes, no api changes)

Description of change

Support collection of native analytics data (video not yet supported), setting endpoint of analytics call + some minor refactorings as suggested from previous PR.

The endpoint property is intended for internal use and is therefore not included in the documentation.

Make it possible to pass dynamic parameters to adapter
Pass metadata from adapter
@bjorn-lw
Copy link
Contributor Author

bjorn-lw commented Feb 1, 2020

Seems like the ci/circleci tests fails every time a PR is made nowadays. I'm adding a comment to #4348

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

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

LGTM, just the one comment which is not a blocker.

Will merge before next Prebid Release (Scheduled for tomorrow 2/5)

@@ -60,6 +60,7 @@ let livewrappedAnalyticsAdapter = Object.assign(adapter({EMPTYURL, ANALYTICSTYPE
bidResponse.cpm = args.cpm;
bidResponse.ttr = args.timeToRespond;
bidResponse.readyToSend = 1;
bidResponse.mediaType = args.mediaType == 'native' ? 2 : 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

args.mediaType == 'native' can probably use strict compare ===

@robertrmartinez robertrmartinez merged commit 1964f27 into prebid:master Feb 5, 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.

3 participants