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

Adding Events support in bid responses (WIP) PBID-414, PBID-413, PBID-958 #10

Closed
wants to merge 20 commits into from

Conversation

laurb9
Copy link

@laurb9 laurb9 commented Nov 24, 2020

This draft tracks prebid#1597

Implemented wurl insertion in cached bids, vast rewriting and bid.ext.prebid.events for prebid#1015
Updated and refactored auction_test unit tests for cached bids
Updated exchange_test for bid.ext.prebid.events and vast

@laurb9 laurb9 changed the title Adding Events (WIP) PBID-414, PBID-413, PBID-958 Adding Events support in bid responses (WIP) PBID-414, PBID-413, PBID-958 Nov 24, 2020
@laurb9 laurb9 marked this pull request as draft November 24, 2020 18:15
@laurb9 laurb9 force-pushed the events branch 3 times, most recently from 04f7d0c to 1849877 Compare November 25, 2020 19:03
@laurb9 laurb9 force-pushed the events branch 2 times, most recently from cfc30bc to b829081 Compare December 1, 2020 21:26
- wurl insertion in cached bids
- vast modifying in video bids
This avoids unnecessary conversions between json and string

ok  	github.com/prebid/prebid-server/endpoints/events	0.034s	coverage: 96.1% of statements
- Fixed comments
- Removed redundant types in func proto
- Add bool parameter to `ModifyVastXmlString()` to indicate string was changed
- Decode RawMessage instead of casting to string (to handle encoded escapes)

> ok github.com/prebid/prebid-server/endpoints/events	0.039s	coverage: 97.4% of statements
When the VAST is modified to insert the event tracking tag,
the modified creative is also returned in the bid response, in addition to being cached.

Behavior currently implemented requires targeting enabled.

Also renamed eventsData->eventTracking
- all bids have vast modified if account and bidder enabled, not just winning
- all NON-VIDEO bids have events if account or request enabled
- all cached NON-VIDEO bids have wurl patched in if account or request enabled.

prebid#1015 (comment)
prebid#1015 (comment)

- all VIDEO bids, cached and returned, have modified VAST if account and bidder enabled - not just winning cached bids.
- all NON-VIDEO returned bids have `ext.prebid.events` if account or request enabled
- all cached NON-VIDEO bids have `wurl` patched in if account or request enabled.
# Conflicts:
#	openrtb_ext/request.go
@laurb9 laurb9 closed this Feb 25, 2021
@laurb9 laurb9 deleted the events branch February 25, 2021 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant