-
Notifications
You must be signed in to change notification settings - Fork 5
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
OTT-1990: select Valid Inline and banner creatives in case of VAST unwrap is enabled for given profile #912
base: ci
Are you sure you want to change the base?
Conversation
…e not consuming PublisherID Configured at Partner Account Level (#885)
…rap module (#874) * OTT-1807: discard emptyVAST and invalidVAST bids
OTT-1824: using fastxml for video event injection
…jetc from the signal regs.ext (#893)
Downmerge Master to Ci
RE-3733: Release 12th_Sept_2024
Downmerge 12th September release
* stat for bid recovery * change buckets * introduce new stat
…wrap is enabled for given profile
args: args{ | ||
module: OpenWrap{}, | ||
}, | ||
wantResult: hookstage.HookResult[hookstage.RawBidderResponsePayload]{DebugMessages: []string{"error: request-ctx not found in handleRawBidderResponseHook()"}}, | ||
}, | ||
{ | ||
name: "Set Vast Unwrapper to false in request context with type video", | ||
name: "Set_Vast_Unwrapper_to_false_in_request_context_with_type_video", |
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.
Can we make sure below scenarios are covered
- VAST Unwrap disabled with Video Creative only
- VAST Unwrap disabled with Video, Banner Creative
- VAST Unwrap disabled with Banner Creative only
- VAST Unwrap enabled with Video Creative only
- VAST Unwrap enabled with Video, Banner Creative
- VAST Unwrap enabled with Banner Creative only
- VAST Unwrap enabled with Invalid Video Creative only
- VAST Unwrap enabled with Invalid Video, Banner Creative
- VAST Unwrap enabled with Banner Creative only
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.
Added unit test cases to cover all scenarios
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.
Can you please also fix below error in checks of PR?
Error: modules/pubmatic/openwrap/hook_raw_bidder_response_test.go:625:5: missing ',' before newline in composite literal
@@ -80,7 +81,7 @@ func TestHandleRawBidderResponseHook(t *testing.T) { | |||
wantResult: hookstage.HookResult[hookstage.RawBidderResponsePayload]{Reject: false}, | |||
}, | |||
{ | |||
name: "Set Vast Unwrapper to false in request context with type video, stats enabled true", | |||
name: "Set_Vast_Unwrapper_to_false_in_request_context_with_type_video,_stats_enabled_true", |
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 can may not be required as we are not capturing only stats.
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.
Removed test case
}, | ||
{ | ||
name: "Set Vast Unwrapper to true in request context with type video", | ||
name: "Set_Vast_Unwrapper_to_true_in_request_context_with_type_video", |
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.
Can we update test case names like
VASTUnwrap_Enabled_Single_Video_bid
VASTUnwrap_Enabled_Multiple_Video_bids
VASTUnwrap_Enabled_Baner_Video_bids
VASTUnwrap_Disabled_Single_Video_bid
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.
Updated
@@ -39,6 +39,9 @@ func (m OpenWrap) handleRawBidderResponseHook( | |||
// send bids for unwrap | |||
for _, bid := range payload.BidderResponse.Bids { | |||
if !isEligibleForUnwrap(bid) { | |||
unwrappedBids = append(unwrappedBids, bid) | |||
result.DebugMessages = append(result.DebugMessages, |
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.
We can remove this printing and add details like total bids, total unwrapping, total success unwrapping counts in debugLog at
result.DebugMessages = append(result.DebugMessages, |
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.
Done
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
The merge-base changed after approval.
1eadcd8
to
bcc32d1
Compare
Description
Please add change description or link to ticket, docs, etc.
Checklist:
header-bidding
repo with appropiate commit id.For Prebid upgrade, refer: https://inside.pubmatic.com:8443/confluence/display/Products/Prebid-server+upgrade