forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UOE-6525: In-app OTT Add Support for dctr and pmzoneid (#170)
* Url decoding value of keywords * Refactored code to rename dctr to key_val * Added pmzoneid support in keywords * Refactored code with removing single statement function * Refactored code, renaming variables * Refactored code: Removed size argument to make for impExtMap * Added test case for URL encoded dctr value * Added omitempty for fields in ExtImpPubmatic
- Loading branch information
1 parent
6c8508d
commit 4ec85b0
Showing
14 changed files
with
549 additions
and
13 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
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 |
---|---|---|
|
@@ -76,7 +76,7 @@ | |
"maxbitrate": 10 | ||
}, | ||
"ext": { | ||
"pmZoneID": "Zone1,Zone2", | ||
"pmZoneId": "Zone1,Zone2", | ||
"reward": 1 | ||
} | ||
} | ||
|
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 |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
"maxbitrate": 10 | ||
}, | ||
"ext": { | ||
"pmZoneID": "Zone1,Zone2" | ||
"pmZoneId": "Zone1,Zone2" | ||
} | ||
} | ||
], | ||
|
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
162 changes: 162 additions & 0 deletions
162
adapters/pubmatic/pubmatictest/supplemental/dctrAndPmZoneID.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,162 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"adSlot": "AdTag_Div1@300x250", | ||
"publisherId": " 999 ", | ||
"pmzoneid": "drama,sport", | ||
"dctr": "abBucket=4|adType=page|entity=|paidByCategory=|sku=|userLevel=free|platform=android|majorVersion=3.54|version=3.54.0|mobileApplication=true|showId=20166|show=Kisah Untuk Geri|genre=Drama|contentUrl=https://www.iflix.com/title/show/20166|rating=TV-MA|contentLanguage=id", | ||
"keywords": [ | ||
{ | ||
"key": "pmZoneID", | ||
"value": [ | ||
"Zone1", | ||
"Zone2" | ||
] | ||
}, | ||
{ | ||
"key": "preference", | ||
"value": [ | ||
"sports", | ||
"movies" | ||
] | ||
} | ||
], | ||
"wrapper": { | ||
"version": 1, | ||
"profile": 5123 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"device": { | ||
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" | ||
}, | ||
"site": { | ||
"id": "siteID", | ||
"publisher": { | ||
"id": "1234" | ||
} | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://hbopenbid.pubmatic.com/translator?source=prebid-server", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"tagid": "AdTag_Div1", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
], | ||
"h": 250, | ||
"w": 300 | ||
}, | ||
"ext": { | ||
"key_val": "abBucket=4|adType=page|entity=|paidByCategory=|sku=|userLevel=free|platform=android|majorVersion=3.54|version=3.54.0|mobileApplication=true|showId=20166|show=Kisah Untuk Geri|genre=Drama|contentUrl=https://www.iflix.com/title/show/20166|rating=TV-MA|contentLanguage=id", | ||
"pmZoneId": "drama,sport", | ||
"preference": "sports,movies" | ||
} | ||
} | ||
], | ||
"device": { | ||
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" | ||
}, | ||
"site": { | ||
"id": "siteID", | ||
"publisher": { | ||
"id": "999" | ||
} | ||
}, | ||
"ext": { | ||
"wrapper": { | ||
"profile": 5123, | ||
"version": 1 | ||
} | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"seat": "958", | ||
"bid": [ | ||
{ | ||
"id": "7706636740145184841", | ||
"impid": "test-imp-id", | ||
"price": 0.500000, | ||
"adid": "29681110", | ||
"adm": "some-test-ad", | ||
"adomain": [ | ||
"pubmatic.com" | ||
], | ||
"crid": "29681110", | ||
"h": 250, | ||
"w": 300, | ||
"dealid": "test deal", | ||
"ext": { | ||
"dspid": 6, | ||
"deal_channel": 1 | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"bidid": "5778926625248726496", | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "7706636740145184841", | ||
"impid": "test-imp-id", | ||
"price": 0.5, | ||
"adid": "29681110", | ||
"adm": "some-test-ad", | ||
"adomain": [ | ||
"pubmatic.com" | ||
], | ||
"crid": "29681110", | ||
"w": 300, | ||
"h": 250, | ||
"dealid": "test deal", | ||
"ext": { | ||
"dspid": 6, | ||
"deal_channel": 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
Oops, something went wrong.