-
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
AdbreakId support for smaato bidder #986
base: ci
Are you sure you want to change the base?
Changes from 1 commit
5244c1c
d33de53
fcfc666
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2045,7 +2045,7 @@ func TestPrepareBidParamJSONForPartnerSmaato(t *testing.T) { | |
want: nil, | ||
}, | ||
{ | ||
name: "All params are present", | ||
name: "publisherId_adspaceId_both_are_present", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Pubmatic-Supriya-Patil : What is the change in this test case? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously all params means publisher Id and adspace Id. now we added adbreakId as new field so just renamed test case name accordingly. |
||
args: args{ | ||
|
||
width: nil, | ||
|
@@ -2060,6 +2060,66 @@ func TestPrepareBidParamJSONForPartnerSmaato(t *testing.T) { | |
}, | ||
want: json.RawMessage(`{"publisherId": "1234","adspaceId": "3456"}`), | ||
}, | ||
{ | ||
name: "All_params_are_present", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Pubmatic-Supriya-Patil : why have we introduced new test case. The test case with this name was present before, as per last review comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This new test case is for publisherId, adspaceId and adbreakId. Previous one was only for publisherId and adspaceId |
||
args: args{ | ||
width: nil, | ||
height: nil, | ||
fieldMap: map[string]interface{}{ | ||
"publisherId": "1234", | ||
"adspaceId": "3456", | ||
"adbreakId": "7899", | ||
}, | ||
slotKey: "", | ||
adapterName: string(openrtb_ext.BidderSmaato), | ||
bidderCode: string(openrtb_ext.BidderSmaato), | ||
}, | ||
want: json.RawMessage(`{"publisherId": "1234","adspaceId": "3456","adbreakId": "7899"}`), | ||
}, | ||
{ | ||
name: "publisherId_and_adbreakId_present", | ||
args: args{ | ||
width: nil, | ||
height: nil, | ||
fieldMap: map[string]interface{}{ | ||
"publisherId": "1234", | ||
"adbreakId": "7899", | ||
}, | ||
slotKey: "", | ||
adapterName: string(openrtb_ext.BidderSmaato), | ||
bidderCode: string(openrtb_ext.BidderSmaato), | ||
}, | ||
want: nil, | ||
}, | ||
{ | ||
name: "adspaceId_and_adbreakId_present", | ||
args: args{ | ||
width: nil, | ||
height: nil, | ||
fieldMap: map[string]interface{}{ | ||
"adspaceId": "1234", | ||
"adbreakId": "7899", | ||
}, | ||
slotKey: "", | ||
adapterName: string(openrtb_ext.BidderSmaato), | ||
bidderCode: string(openrtb_ext.BidderSmaato), | ||
}, | ||
want: nil, | ||
}, | ||
{ | ||
name: "adbreakId_present", | ||
args: args{ | ||
width: nil, | ||
height: nil, | ||
fieldMap: map[string]interface{}{ | ||
"adbreakId": "7899", | ||
}, | ||
slotKey: "", | ||
adapterName: string(openrtb_ext.BidderSmaato), | ||
bidderCode: string(openrtb_ext.BidderSmaato), | ||
}, | ||
want: nil, | ||
}, | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
|
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.
@Pubmatic-Supriya-Patil : Have we checked on impact if both
adbreakid
andadspaceid
are passed on toSmaato
adapter in adapter code? Whether both are passed to bidder?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.
As discussed , only one field will be used based on type of request.