forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AppNexus: Make Ad Pod Id Optional (prebid#1792)
- Loading branch information
1 parent
31f1f97
commit b1de4d4
Showing
8 changed files
with
299 additions
and
8 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
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
94 changes: 94 additions & 0 deletions
94
adapters/appnexus/appnexustest/video/video-no-adpodid-two-imps-different-pod.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,94 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "1_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "2_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://ib.adnxs.com/openrtb2", | ||
"body": { | ||
"id": "test-request-id", | ||
"ext": { | ||
"appnexus": { | ||
"hb_source": 6 | ||
}, | ||
"prebid": {} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "1_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placement_id": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "2_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placement_id": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": {} | ||
} | ||
} | ||
] | ||
} |
97 changes: 97 additions & 0 deletions
97
adapters/appnexus/appnexustest/video/video-same-adpodid-two-imps-same-pod.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,97 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "1_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1, | ||
"generate_ad_pod_id": true | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1_2", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1, | ||
"generate_ad_pod_id": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://ib.adnxs.com/openrtb2", | ||
"body": { | ||
"id": "test-request-id", | ||
"ext": { | ||
"appnexus": { | ||
"adpod_id": "5577006791947779410", | ||
"hb_source": 6 | ||
}, | ||
"prebid": {} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "1_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placement_id": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1_2", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placement_id": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": {} | ||
} | ||
} | ||
] | ||
} |
48 changes: 48 additions & 0 deletions
48
...nexus/appnexustest/videosupplemental/video-different-adpodid-two-imps-different-pods.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,48 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "1_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1, | ||
"generate_ad_pod_id": false | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "2_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1, | ||
"generate_ad_pod_id": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
{ | ||
"value": "generate ad pod option should be same for all pods in request", | ||
"comparison": "literal" | ||
} | ||
] | ||
} |
48 changes: 48 additions & 0 deletions
48
...rs/appnexus/appnexustest/videosupplemental/video-different-adpodid-two-imps-same-pod.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,48 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "1_1", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1, | ||
"generate_ad_pod_id": false | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1_2", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"minduration": 15, | ||
"maxduration": 30, | ||
"protocols": [2, 3, 5, 6, 7, 8], | ||
"w": 940, | ||
"h": 560 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placement_id": 1, | ||
"generate_ad_pod_id": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
{ | ||
"value": "generate ad pod option should be same for all pods in request", | ||
"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