Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Extend Mode #11
Extend Mode #11
Changes from 3 commits
87375b8
ad32f2c
3f6367c
773fa0e
9a43468
3e8a83b
9ef6c8b
520f6a7
030e1e2
a22e792
bf293e2
99972e1
90410c6
a603dfa
4f61b3a
1ce45c7
4779fae
a43e042
73ed956
18e3eec
9cdac9a
605e613
70a1305
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This logic is wrong for several reasons:
The logic should be like this: if pbs mode == true and iframe enabled => run iframe sync. else if pixelenabled, run the non-PBS logic.
You can store pbs mode value in buildRequests in a syncStore like bluebilly has it. It is enough if one ad unit has pbs enable to set pbs=true in the syncStore.
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.
pbsConfig method is redundant. It's not an object, we just need a simple pbs boolean and pass this boolean as param to other methods. Why would we need an object here after the publisherId was removed?
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.
Overriding the global PBS mode from ad-unit param. Let me know your feedback.