-
Notifications
You must be signed in to change notification settings - Fork 213
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
Ad data on resolving events #420
Conversation
src/parser/vast_parser.js
Outdated
* @emits VASTParser#VAST-resolving | ||
* @emits VASTParser#VAST-resolved | ||
* @return {Promise} | ||
*/ | ||
fetchVAST(url, wrapperDepth = 0, previousUrl = null) { | ||
fetchVAST(url, wrapperDepth = 0, previousUrl = null, ad = null) { |
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.
What do you think about renaming ad
to wrapperAd
to make it more explicit (especially on the markdown documentation)
fetchVAST(url, wrapperDepth = 0, previousUrl = null, ad = null) { | |
fetchVAST(url, wrapperDepth = 0, previousUrl = null, wrapperAd = null) { |
src/parser/vast_parser.js
Outdated
@@ -129,6 +130,7 @@ export class VASTParser extends EventEmitter { | |||
wrapperDepth, | |||
maxWrapperDepth: this.maxWrapperDepth, | |||
timeout: this.fetchingOptions.timeout, | |||
ad, |
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.
not sure if we should call it ad or parentAd or something WDYT?
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.
Wow 1 sec between our comments, ok I'll change it
79285ce
to
2e6f562
Compare
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.
LGTM ! 🚀
Description
In order to troubleshoot ad performances, we need to have some information on the current ad node being resolved
Type