Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Triplelift: Add SRA Support (prebid#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Ling authored Jun 11, 2020
1 parent 1644fd1 commit 86e3eb6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion adapters/triplelift/triplelift_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
)

func TestJsonSamples(t *testing.T) {
adapterstest.RunJSONBidderTest(t, "triplelifttest", NewTripleliftBidder(nil, "http://tlx.3lift.net/s2s/auction?supplier_id=20"))
adapterstest.RunJSONBidderTest(t, "triplelifttest", NewTripleliftBidder(nil, "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"uri": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"body": {
"id": "test-request-id",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"uri": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"body": {
"id": "test-request-id",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"uri": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"body": {
"id": "test-request-id",
"imp": [
Expand Down Expand Up @@ -85,7 +85,7 @@
"adomain": [
"foo.com"
],
"iurl": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"iurl": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"cid": "958",
"crid": "29681110",
"h": 250,
Expand Down Expand Up @@ -122,7 +122,7 @@
"adomain": [
"foo.com"
],
"iurl": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"iurl": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"cid": "958",
"crid": "29681110",
"w": 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"uri": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"body": {
"id": "test-request-id",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"uri": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"body": {
"id": "test-request-id",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://tlx.3lift.net/s2s/auction?supplier_id=20",
"uri": "http://tlx.3lift.net/s2s/auction?sra=1&supplier_id=20",
"body": {
"id": "test-request-id",
"imp": [
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ func SetupViper(v *viper.Viper, filename string) {
v.SetDefault("adapters.telaria.endpoint", "https://ads.tremorhub.com/ad/rtb/prebid")
v.SetDefault("adapters.triplelift_native.disabled", true)
v.SetDefault("adapters.triplelift_native.extra_info", "{\"publisher_whitelist\":[]}")
v.SetDefault("adapters.triplelift.endpoint", "https://tlx.3lift.com/s2s/auction?supplier_id=20")
v.SetDefault("adapters.triplelift.endpoint", "https://tlx.3lift.com/s2s/auction?sra=1&supplier_id=20")
v.SetDefault("adapters.ucfunnel.endpoint", "http://apac-hk-adx.aralego.com/prebid")
v.SetDefault("adapters.unruly.endpoint", "http://targeting.unrulymedia.com/openrtb/2.2")
v.SetDefault("adapters.valueimpression.endpoint", "https://rtb.valueimpression.com/endpoint")
Expand Down

0 comments on commit 86e3eb6

Please sign in to comment.