Skip to content

Commit

Permalink
Smarthub: renaming Smarthub to Attekmi (#12432)
Browse files Browse the repository at this point in the history
* update adapter SmartHub: add aliases

* Smarthub: renaming Smarthub to Attekmi

* fix tests

* add attekmi alias

---------

Co-authored-by: Victor <[email protected]>
  • Loading branch information
SmartHubSolutions and Victor authored Nov 14, 2024
1 parent 1c6318e commit b941544
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions modules/smarthubBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ import {

const BIDDER_CODE = 'smarthub';
const ALIASES = [
{code: 'attekmi', skipPbsAliasing: true},
{code: 'markapp', skipPbsAliasing: true},
{code: 'jdpmedia', skipPbsAliasing: true},
{code: 'tredio', skipPbsAliasing: true},
{code: 'felixads', skipPbsAliasing: true},
{code: 'vimayx', skipPbsAliasing: true},
];
const BASE_URLS = {
smarthub: 'https://prebid.smart-hub.io/pbjs',
markapp: 'https://markapp-prebid.smart-hub.io/pbjs',
jdpmedia: 'https://jdpmedia-prebid.smart-hub.io/pbjs',
tredio: 'https://tredio-prebid.smart-hub.io/pbjs',
felixads: 'https://felixads-prebid.smart-hub.io/pbjs',
vimayx: 'https://vimayx-prebid.smart-hub.io/pbjs',
attekmi: 'https://prebid.attekmi.com/pbjs',
smarthub: 'https://prebid.attekmi.com/pbjs',
markapp: 'https://markapp-prebid.attekmi.com/pbjs',
jdpmedia: 'https://jdpmedia-prebid.attekmi.com/pbjs',
tredio: 'https://tredio-prebid.attekmi.com/pbjs',
felixads: 'https://felixads-prebid.attekmi.com/pbjs',
vimayx: 'https://vimayx-prebid.attekmi.com/pbjs',
};

const _getUrl = (partnerName) => {
Expand Down
10 changes: 5 additions & 5 deletions modules/smarthubBidAdapter.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Overview

```
Module Name: SmartHub Bidder Adapter
Module Type: SmartHub Bidder Adapter
Maintainer: [email protected]
Module Name: Attekmi Bidder Adapter
Module Type: Attekmi Bidder Adapter
Maintainer: [email protected]
```

# Description

Connects to SmartHub exchange for bids.
Connects to Attekmi exchange for bids.

SmartHub bid adapter supports Banner, Video (instream and outstream) and Native.
Attekmi bid adapter supports Banner, Video (instream and outstream) and Native.

# Test Parameters
```
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/smarthubBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ describe('SmartHubBidAdapter', function () {
});

it('Returns valid URL', function () {
expect(serverRequest.url).to.equal(`https://prebid.smart-hub.io/pbjs?partnerName=testname`);
expect(serverRequest.url).to.equal(`https://prebid.attekmi.com/pbjs?partnerName=testname`);
});

it('Returns valid URL if alias', function () {
expect(requestAlias.url).to.equal(`https://${bidderAlias}-prebid.smart-hub.io/pbjs`);
expect(requestAlias.url).to.equal(`https://${bidderAlias}-prebid.attekmi.com/pbjs`);
});

it('Returns general data valid', function () {
Expand Down

0 comments on commit b941544

Please sign in to comment.