-
Notifications
You must be signed in to change notification settings - Fork 801
Beachfront: Add schain support #1844
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a525e6a
the banner request to beachfront now includes the schain object
b357700
changed test file schain values
2e5b109
corrected error check for unmarshal
35eb275
corrected error check for unmarshal better
9a0bc46
removed superfluous conditional
7ee4a13
no need to name the unmarshall
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 hidden or 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 hidden or 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
158 changes: 158 additions & 0 deletions
158
adapters/beachfront/beachfronttest/supplemental/adm-video-schain.json
This file contains hidden or 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,158 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "adm-video", | ||
"imp": [ | ||
{ | ||
"id": "video1", | ||
"ext": { | ||
"bidder": { | ||
"bidfloor": 3.01, | ||
"appId": "videoAppId1" | ||
} | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"context": "instream", | ||
"w": 300, | ||
"h": 250 | ||
} | ||
} | ||
], | ||
"site": { | ||
"page": "https://some.domain.us/some/page.html" | ||
}, | ||
"device":{ | ||
"ip":"192.168.168.168" | ||
}, | ||
"source": { | ||
"fd": 1, | ||
"ext": { | ||
"schain": { | ||
"complete": 1, | ||
"ver": "1.0", | ||
"nodes": [ | ||
{ | ||
"asi": "somenode.com", | ||
"sid": "some-sid", | ||
"rid": "some-rid", | ||
"hp": 1 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://qa.beachrtb.com/bid.json?exchange_id=videoAppId1", | ||
"body": { | ||
"id": "adm-video", | ||
"imp": [ | ||
{ | ||
"video": { | ||
"w": 300, | ||
"h": 250, | ||
"mimes": [ | ||
"video/mp4" | ||
] | ||
}, | ||
"bidfloor": 3.01, | ||
"id": "video1", | ||
"secure": 1 | ||
} | ||
], | ||
"site": { | ||
"page": "https://some.domain.us/some/page.html", | ||
"domain": "some.domain.us" | ||
}, | ||
"cur": [ | ||
"USD" | ||
], | ||
"device":{ | ||
"devicetype": 2, | ||
"ip":"192.168.168.168" | ||
}, | ||
"source": { | ||
"fd": 1, | ||
"ext": { | ||
"schain": { | ||
"complete": 1, | ||
"ver": "1.0", | ||
"nodes": [ | ||
{ | ||
"asi": "somenode.com", | ||
"sid": "some-sid", | ||
"rid": "some-rid", | ||
"hp": 1 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "adm-video", | ||
"seatBid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "5fd7c8a6ff2f1f0d42ee6427", | ||
"impid": "video1", | ||
"price": 20, | ||
"adm": "<VAST version=\"2.0\"><Ad><Wrapper>http://example.com/vast.xml</Wrapper></Ad></VAST>", | ||
"adid": "1088", | ||
"adomain": [ | ||
"beachfront.io" | ||
], | ||
"cid": "277", | ||
"crid": "532", | ||
"w": 300, | ||
"h": 250, | ||
"ext": { | ||
"duration": 30 | ||
} | ||
} | ||
], | ||
"seat": "bfio-s-1" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "video1AdmVideo", | ||
"impid": "video1", | ||
"price": 20, | ||
"adm": "<VAST version=\"2.0\"><Ad><Wrapper>http://example.com/vast.xml</Wrapper></Ad></VAST>", | ||
"adid": "1088", | ||
"adomain": [ | ||
"beachfront.io" | ||
], | ||
"cid": "277", | ||
"crid": "532", | ||
"w": 300, | ||
"h": 250, | ||
"ext": { | ||
"duration": 30 | ||
} | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Nice catch.