Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

122 bid won event #35

Merged
merged 2 commits into from
Jun 15, 2018
Merged

122 bid won event #35

merged 2 commits into from
Jun 15, 2018

Conversation

jeteve
Copy link

@jeteve jeteve commented Jun 14, 2018

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).

@jeteve jeteve force-pushed the 122-bidWon-event branch 2 times, most recently from 2bc0375 to a0ef504 Compare June 14, 2018 15:22
Copy link

@katebee katebee left a 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 });
Copy link
Member

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 = {
Copy link
Member

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] ) {
Copy link
Member

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
);
Copy link
Member

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.

Copy link
Author

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 :)

@jeteve jeteve force-pushed the 122-bidWon-event branch from a0ef504 to f6fe1e5 Compare June 15, 2018 12:51
@jeteve jeteve merged commit afa827a into master Jun 15, 2018
arelra pushed a commit that referenced this pull request Feb 5, 2024
* 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]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants