-
Notifications
You must be signed in to change notification settings - Fork 765
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
Admatic: Add headers #4083
Merged
Merged
Admatic: Add headers #4083
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
d7218f0
admatic s2s
bakicam 594a808
Merge branch 'prebid:master' into master
bakicam 546cda3
Update admatic.go
bakicam 435b598
formatted jsons
bakicam dbec2de
fmt
bakicam c05d833
Merge branch 'prebid:master' into master
farukcam 094bd52
Update admatic.go
bakicam 87dd911
Merge branch 'master' of https://github.com/Admatic-Sofware/prebid-se…
bakicam 49b9c49
Merge branch 'prebid:master' into master
farukcam bc0468f
impIDs
bakicam f6caf06
Merge branch 'master' of https://github.com/Admatic-Sofware/prebid-se…
bakicam 801a99c
Merge branch 'prebid:master' into master
farukcam 60a434c
Update admatic.json
bakicam 331f4f0
Merge branch 'master' of https://github.com/Admatic-Sofware/prebid-se…
bakicam 4fb522c
Merge branch 'prebid:master' into master
farukcam ac61d1c
Update admatic.go
bakicam f978cf0
Update admatic.go
bakicam f025b87
Update admatic.yaml
bakicam b02724b
Update admatic.go
bakicam 63387d3
Update admatic.go
bakicam 6754f16
Merge branch 'prebid:master' into master
farukcam c5a8a1e
Merge branch 'prebid:master' into master
farukcam 61369b4
Merge branch 'prebid:master' into master
farukcam 41258e8
Merge branch 'prebid:master' into master
farukcam 6d11972
Merge branch 'prebid:master' into master
farukcam fbb1c27
Merge branch 'prebid:master' into master
farukcam 186ce42
Merge branch 'prebid:master' into master
farukcam a3c2dd9
Merge branch 'prebid:master' into master
farukcam ac73568
Merge branch 'prebid:master' into master
farukcam 6577bc0
Merge branch 'prebid:master' into master
farukcam af62418
Merge branch 'prebid:master' into master
farukcam 81e7c20
Merge branch 'prebid:master' into master
farukcam 4d10b47
Merge branch 'prebid:master' into master
farukcam d1dfaef
Update admatic.go
bakicam 83b23a1
Merge branch 'prebid:master' into master
farukcam 6198a7b
Merge branch 'prebid:master' into master
farukcam 6558291
solved problems
bakicam 9fe986d
Update server-error.json
bakicam 3dced1b
update server error
bakicam fa1bbba
Create bad-request.json
bakicam c2655e5
Merge branch 'prebid:master' into master
farukcam 5fc719d
solved problems
bakicam 06a91e3
Create multiple-imps-with-error.json
bakicam 9d10bdd
Update multiple-imps-with-error.json
bakicam 1df070a
Create multiple-imps.json
bakicam d20bbb8
Update multiple-imps.json
bakicam 11629c5
Merge branch 'prebid:master' into master
farukcam 429bc6c
Merge branch 'prebid:master' into master
farukcam 1541bc0
Merge branch 'prebid:master' into master
bakicam 8cc81a7
add adapter headers
bakicam e7b6f38
Merge branch 'master' of https://github.com/Admatic-Sofware/prebid-se…
bakicam 26e50b2
pretty file
bakicam 95057fa
Merge branch 'prebid:master' into master
farukcam 313c6a1
add test headers to test json
bakicam b46d969
add device object to test json
bakicam c10cd11
Update server-error.json
bakicam 2e17308
Merge branch 'prebid:master' into master
farukcam 686ebd0
Merge branch 'prebid:master' into master
farukcam 2f962c9
Merge branch 'prebid:master' into master
farukcam 13ec60c
Merge branch 'prebid:master' into master
farukcam f41426b
Merge branch 'prebid:master' into master
farukcam 5127e2f
Merge branch 'prebid:master' into master
farukcam 981b35e
Merge branch 'prebid:master' into master
farukcam fe786a5
Merge branch 'prebid:master' into master
farukcam 6e30190
added ipv6
bakicam 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
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
122 changes: 122 additions & 0 deletions
122
adapters/admatic/admatictest/exemplary/headers_ipv4.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,122 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id-banner", | ||
"device": { | ||
"ua": "test-user-agent", | ||
"ip": "123.123.123.123", | ||
"language": "en", | ||
"dnt": 0 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"host": "layer.serve.admatic.com.tr", | ||
"networkId": 12345 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"headers": { | ||
"Content-Type": [ | ||
"application/json;charset=utf-8" | ||
], | ||
"Accept": [ | ||
"application/json" | ||
], | ||
"User-Agent": [ | ||
"test-user-agent" | ||
], | ||
"X-Forwarded-For": [ | ||
"123.123.123.123" | ||
] | ||
}, | ||
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", | ||
"body": { | ||
"id": "test-request-id-banner", | ||
"device": { | ||
"ua": "test-user-agent", | ||
"ip": "123.123.123.123", | ||
"language": "en", | ||
"dnt": 0 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"host": "layer.serve.admatic.com.tr", | ||
"networkId": 12345 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"impIDs": ["test-imp-id-banner"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id-banner", | ||
"seatbid": [ | ||
{ | ||
"seat": "admatic", | ||
"bid": [ | ||
{ | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.5, | ||
"adm": "some-test-ad-banner", | ||
"crid": "crid_10", | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.5, | ||
"adm": "some-test-ad-banner", | ||
"crid": "crid_10", | ||
"w": 728, | ||
"h": 90 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
123 changes: 123 additions & 0 deletions
123
adapters/admatic/admatictest/exemplary/headers_ipv6.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,123 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id-banner", | ||
"device": { | ||
"ua": "test-user-agent", | ||
"ipv6": "2607:fb90:f27:4512:d800:cb23:a603:e245", | ||
"language": "en", | ||
"dnt": 0 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"host": "layer.serve.admatic.com.tr", | ||
"networkId": 12345 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"headers": { | ||
"Content-Type": [ | ||
"application/json;charset=utf-8" | ||
], | ||
"Accept": [ | ||
"application/json" | ||
], | ||
"User-Agent": [ | ||
"test-user-agent" | ||
], | ||
"X-Forwarded-For": [ | ||
"2607:fb90:f27:4512:d800:cb23:a603:e245" | ||
] | ||
}, | ||
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", | ||
"body": { | ||
"id": "test-request-id-banner", | ||
"device": { | ||
"ua": "test-user-agent", | ||
"ipv6": "2607:fb90:f27:4512:d800:cb23:a603:e245", | ||
"language": "en", | ||
"dnt": 0 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"host": "layer.serve.admatic.com.tr", | ||
"networkId": 12345 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"impIDs": ["test-imp-id-banner"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id-banner", | ||
"seatbid": [ | ||
{ | ||
"seat": "admatic", | ||
"bid": [ | ||
{ | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.5, | ||
"adm": "some-test-ad-banner", | ||
"crid": "crid_10", | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.5, | ||
"adm": "some-test-ad-banner", | ||
"crid": "crid_10", | ||
"w": 728, | ||
"h": 90 | ||
}, | ||
"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
Oops, something went wrong.
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 JSON test coverage for this logic by adding and/or updating 2 JSON tests, one where device is nil and one where device is not nil with
ua
,ip
andipv6
set. You can verify the headers are set correctly by including the following in your 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.
Hi,
We added this.
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.
Can you add coverage for the case where
IPv6
is set?