-
Notifications
You must be signed in to change notification settings - Fork 753
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
CWire: Add domainId param and app capability #4107
Open
roarc0
wants to merge
5
commits into
prebid:master
Choose a base branch
from
c-wire:update-cwire-adapter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b835e56
ImpExtCWire: add new domainId field
roarc0 521c245
cwire.yaml: add app capabilities
roarc0 ab62930
CWire adapter: add test cases for domainId
roarc0 fc57547
CWire: add domainId parameter to cwire.json
roarc0 61a49fc
CWire: add exemplary simple app JSON tests
roarc0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22", | ||
"cur": [ | ||
"CHF" | ||
], | ||
"imp": [ | ||
{ | ||
"id": "102", | ||
"banner": { | ||
"h": 250, | ||
"w": 300, | ||
"pos": 0 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"cwcreative": "9999", | ||
"placementId": 15, | ||
"domainId": 42 | ||
} | ||
} | ||
} | ||
], | ||
"app": { | ||
"publisher": { | ||
"id": "123456789" | ||
}, | ||
"cat": [ | ||
"IAB22-1" | ||
], | ||
"bundle": "com.app.awesome", | ||
"name": "Awesome App", | ||
"domain": "awesomeapp.com", | ||
"id": "123456789" | ||
}, | ||
"device": { | ||
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0" | ||
}, | ||
"user": { | ||
"id": "55816b39711f9b5acf3b90e313ed29e51665623f", | ||
"geo": { | ||
"country": "ch", | ||
"region": "basel-stadt", | ||
"city": "basel" | ||
} | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://cwi.re/prebid/adapter-endpoint", | ||
"headers": { | ||
"Content-Type": [ | ||
"application/json;charset=utf-8" | ||
], | ||
"Accept": [ | ||
"application/json" | ||
] | ||
}, | ||
"body": { | ||
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22", | ||
"cur": [ | ||
"CHF" | ||
], | ||
"imp": [ | ||
{ | ||
"id": "102", | ||
"banner": { | ||
"h": 250, | ||
"w": 300, | ||
"pos": 0 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"cwcreative": "9999", | ||
"placementId": 15, | ||
"domainId": 42 | ||
} | ||
} | ||
} | ||
], | ||
"app": { | ||
"publisher": { | ||
"id": "123456789" | ||
}, | ||
"cat": [ | ||
"IAB22-1" | ||
], | ||
"bundle": "com.app.awesome", | ||
"name": "Awesome App", | ||
"domain": "awesomeapp.com", | ||
"id": "123456789" | ||
}, | ||
"device": { | ||
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0" | ||
}, | ||
"user": { | ||
"id": "55816b39711f9b5acf3b90e313ed29e51665623f", | ||
"geo": { | ||
"country": "ch", | ||
"region": "basel-stadt", | ||
"city": "basel" | ||
} | ||
} | ||
}, | ||
"impIDs": [ | ||
"102" | ||
] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"headers": {}, | ||
"body": { | ||
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22", | ||
"cur": "CHF", | ||
"seatbid": [ | ||
{ | ||
"seat": "cwire", | ||
"group": 0, | ||
"bid": [ | ||
{ | ||
"id": "333", | ||
"impid": "102", | ||
"price": 8.00, | ||
"crid": "9999", | ||
"adm": "<h3>Example Ad</h3>", | ||
"w": 1, | ||
"h": 1, | ||
"nurl": "https://embed.cwi.re/delivery/prebid-server/win/333", | ||
"mtype": 1 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "CHF", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "333", | ||
"impid": "102", | ||
"price": 8.00, | ||
"crid": "9999", | ||
"adm": "<h3>Example Ad</h3>", | ||
"w": 1, | ||
"h": 1, | ||
"nurl": "https://embed.cwi.re/delivery/prebid-server/win/333", | ||
"mtype": 1 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,146 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22", | ||
"cur": [ | ||
"CHF" | ||
], | ||
"imp": [ | ||
{ | ||
"id": "102", | ||
"banner": { | ||
"h": 250, | ||
"w": 300, | ||
"pos": 0 | ||
} | ||
} | ||
], | ||
"app": { | ||
"publisher": { | ||
"id": "123456789" | ||
}, | ||
"cat": [ | ||
"IAB22-1" | ||
], | ||
"bundle": "com.app.awesome", | ||
"name": "Awesome App", | ||
"domain": "awesomeapp.com", | ||
"id": "123456789" | ||
}, | ||
"device": { | ||
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0" | ||
}, | ||
"user": { | ||
"id": "55816b39711f9b5acf3b90e313ed29e51665623f", | ||
"geo": { | ||
"country": "ch", | ||
"region": "basel-stadt", | ||
"city": "basel" | ||
} | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://cwi.re/prebid/adapter-endpoint", | ||
"headers": { | ||
"Content-Type": [ | ||
"application/json;charset=utf-8" | ||
], | ||
"Accept": [ | ||
"application/json" | ||
] | ||
}, | ||
"body": { | ||
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22", | ||
"cur": [ | ||
"CHF" | ||
], | ||
"imp": [ | ||
{ | ||
"id": "102", | ||
"banner": { | ||
"h": 250, | ||
"w": 300, | ||
"pos": 0 | ||
} | ||
} | ||
], | ||
"app": { | ||
"publisher": { | ||
"id": "123456789" | ||
}, | ||
"cat": [ | ||
"IAB22-1" | ||
], | ||
"bundle": "com.app.awesome", | ||
"name": "Awesome App", | ||
"domain": "awesomeapp.com", | ||
"id": "123456789" | ||
}, | ||
"device": { | ||
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0" | ||
}, | ||
"user": { | ||
"id": "55816b39711f9b5acf3b90e313ed29e51665623f", | ||
"geo": { | ||
"country": "ch", | ||
"region": "basel-stadt", | ||
"city": "basel" | ||
} | ||
} | ||
}, | ||
"impIDs": [ | ||
"102" | ||
] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"headers": {}, | ||
"body": { | ||
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22", | ||
"cur": "CHF", | ||
"seatbid": [ | ||
{ | ||
"seat": "cwire", | ||
"group": 0, | ||
"bid": [ | ||
{ | ||
"id": "333", | ||
"impid": "102", | ||
"price": 8.00, | ||
"crid": "4321", | ||
"adm": "<h3>Example Ad</h3>", | ||
"w": 1, | ||
"h": 1, | ||
"nurl": "https://embed.cwi.re/delivery/prebid-server/win/333", | ||
"mtype": 1 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "CHF", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "333", | ||
"impid": "102", | ||
"price": 8.00, | ||
"crid": "4321", | ||
"adm": "<h3>Example Ad</h3>", | ||
"w": 1, | ||
"h": 1, | ||
"nurl": "https://embed.cwi.re/delivery/prebid-server/win/333", | ||
"mtype": 1 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please add an exemplary simple app JSON test.
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.
ok!
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.
I added two JSONs containing OpenRTB app request and also the additional domainId field.