-
Notifications
You must be signed in to change notification settings - Fork 758
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
Showing
7 changed files
with
166 additions
and
2 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
27 changes: 27 additions & 0 deletions
27
adapters/lockerdome/lockerdometest/supplemental/empty_adUnitId_param.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,27 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"adUnitId": "" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
"ext.bidder.adUnitId is empty." | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
adapters/lockerdome/lockerdometest/supplemental/empty_imps.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,10 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
"No valid impressions in the bid request." | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
adapters/lockerdome/lockerdometest/supplemental/no_adUnitId_param.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,23 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": {} | ||
} | ||
] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
"ext.bidder.adUnitId was not provided." | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
adapters/lockerdome/lockerdometest/supplemental/no_ext.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,22 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
"ext was not provided." | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
adapters/lockerdome/lockerdometest/supplemental/unsupported_imp_type.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,27 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"video": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"adUnitId": "LD9434769725128806" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
"LockerDome does not currently support non-banner types." | ||
] | ||
} |
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,7 @@ | ||
package openrtb_ext | ||
|
||
// ExtImpLockerDome defines the contract for bidrequest.imp[i].ext.lockerdome | ||
type ExtImpLockerDome struct { | ||
// LockerDome params | ||
AdUnitId string `json:"adUnitId"` | ||
} |