forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tappx User Syncer + Site Update (prebid#1674)
Co-authored-by: ubuntu <ahernandez@tappx.com> Co-authored-by: Albert Grandes <agrandes@tappx.com>
- Loading branch information
1 parent
615608a
commit 1ee9957
Showing
22 changed files
with
361 additions
and
48 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
124 changes: 124 additions & 0 deletions
124
adapters/tappx/tappxtest/exemplary/single-banner-site.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,124 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "0000000000001", | ||
"test": 1, | ||
"imp": [ | ||
{ | ||
"id": "adunit-1", | ||
"banner": { | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"tappxkey": "pub-12345-site-9876", | ||
"endpoint": "ZZ123456PS", | ||
"host": "testing.ssp.tappx.com/rtb/v2/" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"id": "102855", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "www.tappx.com", | ||
"page": "https://www.tappx.com/example.html ", | ||
"publisher": { | ||
"id": "8953", "name": "publisher.com", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "publisher.com" | ||
} | ||
}, | ||
"user": { | ||
"buyeruid": "A-38327932832" | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://testing.ssp.tappx.com/rtb/v2/ZZ123456PS?tappxkey=pub-12345-site-9876&type_cnn=prebid&v=1.1", | ||
"body": { | ||
"id": "0000000000001", | ||
"test": 1, | ||
"imp": [ | ||
{ | ||
"id": "adunit-1", | ||
"banner": { | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"tappxkey": "pub-12345-site-9876", | ||
"endpoint": "ZZ123456PS", | ||
"host": "testing.ssp.tappx.com/rtb/v2/" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"id": "102855", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "www.tappx.com", | ||
"page": "https://www.tappx.com/example.html ", | ||
"publisher": { | ||
"id": "8953", "name": "publisher.com", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "publisher.com" | ||
} | ||
}, | ||
"user": { | ||
"buyeruid": "A-38327932832" | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "75472df2-1cb3-4f8e-9a28-10cb95fe05a4", | ||
"seatbid": [{ | ||
"bid": [{ | ||
"id": "wehM-93KGr0_0_0", | ||
"impid": "adunit-1", | ||
"price": 0.5, | ||
"cid": "3706", | ||
"crid": "19005", | ||
"adid": "19005", | ||
"adm": "<!-- admarkup -->", | ||
"cat": ["IAB2"], | ||
"adomain": ["test.com"], | ||
"h": 250, | ||
"w": 300 | ||
}] | ||
}], | ||
"bidid": "wehM-93KGr0" | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "wehM-93KGr0_0_0", | ||
"impid": "adunit-1", | ||
"price": 0.5, | ||
"adm": "<!-- admarkup -->", | ||
"adid": "19005", | ||
"adomain": ["test.com"], | ||
"cid": "3706", | ||
"crid": "19005", | ||
"w": 300, | ||
"h": 250, | ||
"cat": ["IAB2"] | ||
}, | ||
"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
136 changes: 136 additions & 0 deletions
136
adapters/tappx/tappxtest/exemplary/single-video-site.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,136 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "0000000000001", | ||
"test": 1, | ||
"imp": [ | ||
{ | ||
"id": "video-adunit-2", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"w": 640, | ||
"h": 480 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"tappxkey": "pub-12345-site-9876", | ||
"endpoint": "VZ123456PS", | ||
"host": "testing.ssp.tappx.com/rtb/v2/" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"id": "102855", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "www.tappx.com", | ||
"page": "https://www.tappx.com/example.html ", | ||
"publisher": { | ||
"id": "8953", "name": "publisher.com", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "publisher.com" | ||
} | ||
}, | ||
"user": { | ||
"buyeruid": "A-38327932832" | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://testing.ssp.tappx.com/rtb/v2/VZ123456PS?tappxkey=pub-12345-site-9876&type_cnn=prebid&v=1.1", | ||
"body": { | ||
"id": "0000000000001", | ||
"test": 1, | ||
"imp": [ | ||
{ | ||
"id": "video-adunit-2", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"w": 640, | ||
"h": 480 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"endpoint": "VZ123456PS", | ||
"host": "testing.ssp.tappx.com/rtb/v2/", | ||
"tappxkey": "pub-12345-site-9876" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"id": "102855", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "www.tappx.com", | ||
"page": "https://www.tappx.com/example.html ", | ||
"publisher": { | ||
"id": "8953", "name": "publisher.com", | ||
"cat": [ "IAB3-1" ], | ||
"domain": "publisher.com" | ||
} | ||
}, | ||
"user": { | ||
"buyeruid": "A-38327932832" | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "75472df2-1cb3-4f8e-9a28-10cb95fe05a4", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "bid02", | ||
"impid": "video-adunit-2", | ||
"price": 2.25, | ||
"cid": "1001", | ||
"crid": "2002", | ||
"adid": "2002", | ||
"adm": "<!-- vast wrapper -->", | ||
"cat": [ | ||
"IAB2" | ||
], | ||
"adomain": [ | ||
"video-example.com" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"bidid": "wehM-93KGr0" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "bid02", | ||
"impid": "video-adunit-2", | ||
"price": 2.25, | ||
"adm": "<!-- vast wrapper -->", | ||
"adomain": [ | ||
"video-example.com" | ||
], | ||
"cid": "1001", | ||
"adid": "2002", | ||
"crid": "2002", | ||
"cat": [ | ||
"IAB2" | ||
] | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"tappxkey": "pub-12345-android-9876", | ||
"endpoint": "PREBIDTEMPLATE", | ||
"host": "test.tappx.com" | ||
"endpoint": "ZZ123456PS", | ||
"host": "testing.ssp.tappx.com/rtb/v2/" | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"tappxkey": "pub-12345-android-9876", | ||
"endpoint": "PREBIDTEMPLATE", | ||
"host": "test.tappx.com" | ||
"endpoint": "VZ123456PS", | ||
"host": "testing.ssp.tappx.com/rtb/v2/" | ||
} |
Oops, something went wrong.