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

OTT-1990: select Valid Inline and banner creatives in case of VAST unwrap is enabled for given profile #912

Open
wants to merge 27 commits into
base: ci
Choose a base branch
from

Conversation

Pubmatic-Supriya-Patil
Copy link
Collaborator

@Pubmatic-Supriya-Patil Pubmatic-Supriya-Patil commented Sep 19, 2024

Description

Please add change description or link to ticket, docs, etc.

Checklist:

  • PR commit list is unique (rebase/pull with the origin branch to keep master clean).
  • JIRA number is added in the PR title and the commit message.
  • Updated the header-bidding repo with appropiate commit id.
  • Documented the new changes.

For Prebid upgrade, refer: https://inside.pubmatic.com:8443/confluence/display/Products/Prebid-server+upgrade

AvinashKapre and others added 22 commits August 30, 2024 11:50
…e not consuming PublisherID Configured at Partner Account Level (#885)
)

* updated kgpv for regex

* added test cases

* resolved comments

* added test cases

* changed adslot logic for testvalue=2

* check for empty kgpv in logger

* resolved review comments
…rap module (#874)

* OTT-1807: discard emptyVAST and invalidVAST bids
OTT-1824: using fastxml for video event injection
RE-3733: Release 12th_Sept_2024
Downmerge 12th September release
* stat for bid recovery

* change buckets

* introduce new stat
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",
Copy link
Collaborator

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

  1. VAST Unwrap disabled with Video Creative only
  2. VAST Unwrap disabled with Video, Banner Creative
  3. VAST Unwrap disabled with Banner Creative only
  4. VAST Unwrap enabled with Video Creative only
  5. VAST Unwrap enabled with Video, Banner Creative
  6. VAST Unwrap enabled with Banner Creative only
  7. VAST Unwrap enabled with Invalid Video Creative only
  8. VAST Unwrap enabled with Invalid Video, Banner Creative
  9. VAST Unwrap enabled with Banner Creative only

Copy link
Collaborator Author

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

Copy link
Collaborator

@pm-viral-vala pm-viral-vala left a 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",
Copy link
Collaborator

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.

Copy link
Collaborator Author

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",
Copy link
Collaborator

@pm-jaydeep-mohite pm-jaydeep-mohite Sep 20, 2024

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

Copy link
Collaborator Author

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,
Copy link
Collaborator

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,

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@pm-jaydeep-mohite pm-jaydeep-mohite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Pubmatic-Supriya-Patil Pubmatic-Supriya-Patil dismissed stale reviews from Pubmatic-Dhruv-Sonone and pm-jaydeep-mohite September 26, 2024 12:19

The merge-base changed after approval.

@pm-viral-vala pm-viral-vala force-pushed the ci branch 2 times, most recently from 1eadcd8 to bcc32d1 Compare September 26, 2024 13:01
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.

10 participants