-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a36178
commit 4ad946b
Showing
6 changed files
with
292 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
adapters/adnuntius/adnuntiustest/supplemental/check-gross-bids.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"user": { | ||
"id": "1kjh3429kjh295jkl" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"auId": "123", | ||
"bidType": "gross" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://whatever.url?format=json&tzo=0", | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "123", | ||
"targetId": "123-test-imp-id", | ||
"dimensions": [[300,250],[300,600]] | ||
} | ||
], | ||
"metaData": { | ||
"usi": "1kjh3429kjh295jkl" | ||
}, | ||
"context": "unknown" | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "0000000000000123", | ||
"targetId": "123-test-imp-id", | ||
"html": "<ADCODE>", | ||
"responseId": "adn-rsp-900646517", | ||
"ads": [ | ||
{ | ||
"destinationUrls": { | ||
"url": "http://www.google.com" | ||
}, | ||
"bid": { "amount": 20.0, "currency": "NOK" }, | ||
"grossBid": {"amount": 0.1, "currency": "NOK"}, | ||
"netBid": {"amount": 0.075, "currency": "NOK"}, | ||
"adId": "adn-id-1559784094", | ||
"creativeWidth": "980", | ||
"creativeHeight": "240", | ||
"creativeId": "jn9hpzvlsf8cpdmm", | ||
"lineItemId": "q7y9qm5b0xt9htrv" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "adn-id-1559784094", | ||
"impid": "test-imp-id", | ||
"price": 100, | ||
"adm": "<ADCODE>", | ||
"adid": "adn-id-1559784094", | ||
"adomain": [ | ||
"google.com" | ||
], | ||
"cid": "q7y9qm5b0xt9htrv", | ||
"crid": "jn9hpzvlsf8cpdmm", | ||
"w": 980, | ||
"h": 240 | ||
}, | ||
"type": "banner" | ||
} | ||
], | ||
"currency": "NOK" | ||
} | ||
] | ||
} |
103 changes: 103 additions & 0 deletions
103
adapters/adnuntius/adnuntiustest/supplemental/check-net-bids.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"user": { | ||
"id": "1kjh3429kjh295jkl" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"auId": "123", | ||
"bidType": "net" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://whatever.url?format=json&tzo=0", | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "123", | ||
"targetId": "123-test-imp-id", | ||
"dimensions": [[300,250],[300,600]] | ||
} | ||
], | ||
"metaData": { | ||
"usi": "1kjh3429kjh295jkl" | ||
}, | ||
"context": "unknown" | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "0000000000000123", | ||
"targetId": "123-test-imp-id", | ||
"html": "<ADCODE>", | ||
"responseId": "adn-rsp-900646517", | ||
"ads": [ | ||
{ | ||
"destinationUrls": { | ||
"url": "http://www.google.com" | ||
}, | ||
"bid": { "amount": 20.0, "currency": "NOK" }, | ||
"grossBid": {"amount": 0.1, "currency": "NOK"}, | ||
"netBid": {"amount": 0.075, "currency": "NOK"}, | ||
"adId": "adn-id-1559784094", | ||
"creativeWidth": "980", | ||
"creativeHeight": "240", | ||
"creativeId": "jn9hpzvlsf8cpdmm", | ||
"lineItemId": "q7y9qm5b0xt9htrv" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "adn-id-1559784094", | ||
"impid": "test-imp-id", | ||
"price": 75, | ||
"adm": "<ADCODE>", | ||
"adid": "adn-id-1559784094", | ||
"adomain": [ | ||
"google.com" | ||
], | ||
"cid": "q7y9qm5b0xt9htrv", | ||
"crid": "jn9hpzvlsf8cpdmm", | ||
"w": 980, | ||
"h": 240 | ||
}, | ||
"type": "banner" | ||
} | ||
], | ||
"currency": "NOK" | ||
} | ||
] | ||
} |
38 changes: 38 additions & 0 deletions
38
adapters/adnuntius/adnuntiustest/supplemental/check-price-type-error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"user": { | ||
"id": "1kjh3429kjh295jkl" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"auId": "123", | ||
"bidType": 123 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [], | ||
"expectedMakeRequestsErrors": [ | ||
{ | ||
"value": "Error unmarshalling ExtImpValues: json: cannot unmarshal number into Go struct field ImpExtAdnunitus.bidType of type string", | ||
"comparison": "literal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters