-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
2bc0375
to
a0ef504
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.
👍 🏅
let ev = analyticsAdapter.context.queue.peekAll(); | ||
expect(ev).to.have.length(0); // The queue has been flushed. | ||
ev = JSON.parse(ajaxStub.firstCall.args[2]).hb_ev; | ||
expect(ev[0]).to.be.eql({ev: 'bidwon', aid: '5018eb39-f900-4370-b71e-3bb5b48d324f', bid: BIDONE.bidId , sid: BIDONE.adUnitCode }); |
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.
Do we need the ad unit code?
}], | ||
}; | ||
|
||
const REQUEST1 = { |
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 why these are in uppercase. Perhaps I copied it from somewhere.
} | ||
if (handler) { | ||
let events = handler(args); | ||
if (events && analyticsAdapter.context.queue) { | ||
analyticsAdapter.context.queue.push(events); | ||
} | ||
if (eventType === CONSTANTS.EVENTS.AUCTION_END) { | ||
if ( SENDALL_ON[eventType] ) { |
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.
Nice optimisation.
undefined, // timeToRespond | ||
undefined, // startTime | ||
args.bidId | ||
); |
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.
I think we only need 'bidWon', auctionId and bidId.
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.
Yep. I will remove all the other stuff :)
* add Rise adapter * fixes * change param isOrg to org * Rise adapter * change email for rise * fix circle failed * bump * bump * bump * remove space * Upgrade Rise adapter to 5.0 * added isWrapper param * addes is_wrapper parameter to documentation * added is_wrapper to test * removed isWrapper * Rise Bid Adapter: support Coppa param (#24) * MinuteMedia Bid Adapter: support Coppa param (#25) * Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26) This reverts commit 66c4e7b. * bump * update coppa fetch * setting coppa param update * update Coppa tests * update test naming * Rise Bid Adapter: support plcmt and sua (#27) * update minuteMediaBidAdapter - support missing params (#29) * RIseBidAdapter: support currency (#35) --------- Co-authored-by: Noam Tzuberi <[email protected]> Co-authored-by: noamtzu <[email protected]> Co-authored-by: Noam Tzuberi <[email protected]> Co-authored-by: Laslo Chechur <[email protected]> Co-authored-by: OronW <[email protected]> Co-authored-by: lasloche <[email protected]> Co-authored-by: inna <[email protected]> Co-authored-by: YakirLavi <[email protected]>
This is the guAnalytics side of https://trello.com/c/d6JaB1Jh
It sends the BidWon event (so when the winning bid effectively fills the Ad slot instead of Google) on its own to be later processed by the Prebid ETL job(s).