Skip to content

Commit

Permalink
Merge pull request #48 from gladly-team/kevin/disable-emx
Browse files Browse the repository at this point in the history
Remove EMX Digital for late, unpaid receivables
  • Loading branch information
kmjennison committed Oct 19, 2022
2 parents 0b5caa5 + ba72f0c commit 59e8446
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 34 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ Here's what to check for each partner, assuming the iframed page is `https://exa

| Partner | Request URL | What to check |
| ------------- | ------------- | ------------- |
| EMX Digital | `hb.emxdgt.com` | Payload `site.domain` is `example.com`; `site.page` and `site.ref` are both `https://example.com/newtab/` |
[//]: # Disabled EMX Oct 19, 2022, for unpaid receivables.
[//]: # (| EMX Digital | `hb.emxdgt.com` | Payload `site.domain` is `example.com`; `site.page` and `site.ref` are both `https://example.com/newtab/` |)
| Magnite | `https://fastlane.rubiconproject.com/a/api/fastlane.json` | Query param `rf` is `https://example.com/newtab/` |
| Media.net | `https://prebid.media.net/rtb/prebid` | Payload `site.domain` is `example.com` and `site.page` is `https://example.com/newtab/` |
| OpenX | `https://tabforacause-d.openx.net/w/1.0/arj` | Query param `ju` is `https://example.com/newtab/` |
Expand Down
7 changes: 2 additions & 5 deletions src/providers/prebid/__tests__/prebidBidder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ describe('prebidBidder: fetchBids', () => {
const adUnitConfig = pbjs.addAdUnits.mock.calls[0][0]

expect(adUnitConfig[0].bids.map((bid) => bid.bidder).sort()).toEqual([
'emx_digital',
'medianet',
'openx',
'pulsepoint',
Expand All @@ -202,7 +201,6 @@ describe('prebidBidder: fetchBids', () => {
'yahoossp',
])
expect(adUnitConfig[1].bids.map((bid) => bid.bidder).sort()).toEqual([
'emx_digital',
'medianet',
'openx',
'pulsepoint',
Expand All @@ -213,7 +211,6 @@ describe('prebidBidder: fetchBids', () => {
'yahoossp',
])
expect(adUnitConfig[2].bids.map((bid) => bid.bidder).sort()).toEqual([
// 'emx_digital',
'medianet',
'openx',
'pulsepoint',
Expand Down Expand Up @@ -451,7 +448,7 @@ describe('prebidBidder: fetchBids', () => {
{
adId: 'div-gpt-ad-1464385677836-0',
revenue: 0.19 / 1000,
advertiserName: 'emxdigital',
advertiserName: 'unruly',
adSize: '728x90',
encodedRevenue: null,
},
Expand Down Expand Up @@ -510,7 +507,7 @@ describe('prebidBidder: fetchBids', () => {
{
adId: 'div-gpt-ad-1464385677836-0',
revenue: 0.19 / 1000,
advertiserName: 'emxdigital',
advertiserName: 'unruly',
adSize: '728x90',
encodedRevenue: null,
},
Expand Down
27 changes: 13 additions & 14 deletions src/providers/prebid/built/pb.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/providers/prebid/modules.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
"consentManagement",
"consentManagementUsp",
"emx_digitalBidAdapter",
"medianetBidAdapter",
"openxBidAdapter",
"rubiconBidAdapter",
Expand Down
28 changes: 16 additions & 12 deletions src/providers/prebid/prebidBidder.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,16 @@ const getPrebidAdUnit = (tabAdUnit, config) => {
delDomain: 'tabforacause-d.openx.net',
},
},
// Disabled EMX Oct 19, 2022, for unpaid receivables.
// If reenabling, be sure to add their adapter back in.
// EMX Digital was formerly brealtime.
// http://prebid.org/dev-docs/bidders.html#emx_digital
{
bidder: 'emx_digital',
params: {
tagid: '29672',
},
},
// {
// bidder: 'emx_digital',
// params: {
// tagid: '29672',
// },
// },
{
bidder: 'unruly',
params: {
Expand Down Expand Up @@ -152,12 +154,14 @@ const getPrebidAdUnit = (tabAdUnit, config) => {
delDomain: 'tabforacause-d.openx.net',
},
},
{
bidder: 'emx_digital',
params: {
tagid: '29673',
},
},
// Disabled EMX Oct 19, 2022, for unpaid receivables.
// If reenabling, be sure to add their adapter back in.
// {
// bidder: 'emx_digital',
// params: {
// tagid: '29673',
// },
// },
{
bidder: 'unruly',
params: {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const mockPrebidBidResponses = () => ({
height: 90,
}),
mockPrebidBid({
bidder: 'emxdigital',
bidder: 'unruly',
cpm: 0.19,
width: 728,
height: 90,
Expand Down

0 comments on commit 59e8446

Please sign in to comment.